alerting icon indicating copy to clipboard operation
alerting copied to clipboard

Change alert ids to be deterministic instead of auto generated

Open adityaj1107 opened this issue 4 years ago • 4 comments

Issue by dbbaughe Tuesday Apr 30, 2019 at 20:20 GMT Originally opened as https://github.com/opendistro-for-elasticsearch/alerting/issues/45


Right now we index alerts and use the auto-generated id's for the documents. We should move to deterministic ids to solve multiple problems.

ACTIVE alerts should use an id of: <monitor_id>-<trigger_id> COMPLETED alerts should use an id of: <monitor_id>-<trigger_id>-<start_time>

Benefits: This would allow us to provide the soon to be created alert's alert_id to the mustache context variable for users to use. Removes the chance of duplicate alerts being created at the same time.

adityaj1107 avatar Jun 02 '21 21:06 adityaj1107

A customer showed interest in setting deterministic ids, but was content with -<monitor_name>

brijos avatar Apr 12 '22 20:04 brijos

This can include the execution id as well that happens in chained alerts.

lezzago avatar Sep 14 '23 16:09 lezzago

I will work on this issue!

kennyzhang0819 avatar Oct 10 '23 21:10 kennyzhang0819