Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Alert id is not available #60

Closed
ancazzz opened this issue Apr 18, 2019 · 1 comment
Closed

Alert id is not available #60

ancazzz opened this issue Apr 18, 2019 · 1 comment

Comments

@ancazzz
Copy link

ancazzz commented Apr 18, 2019

The documentation mentions that the ctx variable has a field 'alert' with the following content:
"The current, active alert (if it exists). Includes ctx.alert.id, ctx.alert.version, and ctx.alert.isAcknowledged. Null if no alert is active."

However, when verifying the ctx.alert field in my triggered action message, I get the following result:
{state=ACTIVE, error_message=null, acknowledged_time=null, last_notification_time=1555580484091}

The properties are different and there is no alert id or version. The alert id is indispensable for acknoledging the alert using the API.

@aetter
Copy link
Contributor

aetter commented Apr 18, 2019

Hi @ancazzz, this is resolved in code and should be fixed in version 0.9.0: opendistro-for-elasticsearch/alerting#26

@aetter aetter closed this as completed Apr 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants