Remove AM status from title (#5261)

This commit is contained in:
Innokentii Konstantinov 2024-11-22 11:45:03 +08:00 committed by GitHub
parent 67604c6902
commit 1b4cca9d03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ web_title = """\
{% set alertname = groupLabels.pop("alertname", "") -%} {% set alertname = groupLabels.pop("alertname", "") -%}
{% endif -%} {% endif -%}
[{{ payload.status }}{% if payload.status == 'firing' and payload.numFiring %}:{{ payload.numFiring }}{% endif %}] {{ alertname }} {% if groupLabels | length > 0 %}({{ groupLabels.values()|join(", ") }}){% endif %} {{ alertname }} {% if groupLabels | length > 0 %}({{ groupLabels.values()|join(", ") }}){% endif %}
""" # noqa """ # noqa
web_message = """\ web_message = """\

View file

@ -33,7 +33,7 @@ web_title = """\
{% set alertname = groupLabels.pop("alertname", "") -%} {% set alertname = groupLabels.pop("alertname", "") -%}
{% endif -%} {% endif -%}
[{{ payload.status }}{% if payload.status == 'firing' and payload.numFiring %}:{{ payload.numFiring }}{% endif %}] {{ alertname }} {% if groupLabels | length > 0 %}({{ groupLabels.values()|join(", ") }}){% endif %} {{ alertname }} {% if groupLabels | length > 0 %}({{ groupLabels.values()|join(", ") }}){% endif %}
""" # noqa """ # noqa
web_message = """\ web_message = """\