2022-06-03 08:09:47 -06:00
|
|
|
# Main
|
|
|
|
|
enabled = True
|
2022-06-09 23:27:40 +03:00
|
|
|
title = "Elastalert"
|
|
|
|
|
slug = "elastalert"
|
|
|
|
|
short_description = "Elastic"
|
|
|
|
|
is_displayed_on_web = True
|
2022-06-03 08:09:47 -06:00
|
|
|
description = None
|
|
|
|
|
is_featured = False
|
|
|
|
|
is_able_to_autoresolve = True
|
|
|
|
|
is_demo_alert_enabled = True
|
|
|
|
|
|
2022-06-09 23:27:40 +03:00
|
|
|
description = None
|
|
|
|
|
|
2022-06-03 08:09:47 -06:00
|
|
|
# Default templates
|
|
|
|
|
slack_title = """\
|
|
|
|
|
*<{{ grafana_oncall_link }}|#{{ grafana_oncall_incident_id }} Incident>* via {{ integration_name }}
|
|
|
|
|
{% if source_link %}
|
|
|
|
|
(*<{{ source_link }}|source>*)
|
2022-06-09 23:27:40 +03:00
|
|
|
{%- endif %}"""
|
2022-06-03 08:09:47 -06:00
|
|
|
|
|
|
|
|
slack_message = "```{{ payload|tojson_pretty }}```"
|
|
|
|
|
|
|
|
|
|
slack_image_url = None
|
|
|
|
|
|
|
|
|
|
web_title = "Incident"
|
|
|
|
|
|
|
|
|
|
web_message = """\
|
|
|
|
|
```
|
|
|
|
|
{{ payload|tojson_pretty }}
|
|
|
|
|
```
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
web_image_url = slack_image_url
|
|
|
|
|
|
|
|
|
|
sms_title = web_title
|
|
|
|
|
|
|
|
|
|
phone_call_title = sms_title
|
|
|
|
|
|
|
|
|
|
telegram_title = sms_title
|
|
|
|
|
|
|
|
|
|
telegram_message = "<code>{{ payload|tojson_pretty }}</code>"
|
|
|
|
|
|
|
|
|
|
telegram_image_url = slack_image_url
|
|
|
|
|
|
2022-06-09 23:27:40 +03:00
|
|
|
source_link = None
|
2022-06-03 08:09:47 -06:00
|
|
|
|
2022-06-09 23:27:40 +03:00
|
|
|
grouping_id = '{{ payload.get("alert_uid", "")}}'
|
2022-06-03 08:09:47 -06:00
|
|
|
|
2023-08-10 10:25:00 +08:00
|
|
|
resolve_condition = """{{ payload.get("state", "").upper() == "OK" }}"""
|
2022-06-09 23:27:40 +03:00
|
|
|
|
2022-06-03 08:09:47 -06:00
|
|
|
acknowledge_condition = None
|
|
|
|
|
|
2023-06-01 15:37:37 +03:00
|
|
|
example_payload = {"message": "This alert was sent by user for demonstration purposes"}
|