Open ghost opened 4 years ago
There's no obvious reason why the receiver of the notification should care when the alert got updated. This is why the webhook payload doesn't include this information.
There's no obvious reason why the receiver of the notification should care when the alert got updated. This is why the webhook payload doesn't include this information.
no! no ! no !
I think it's in the API, so it should be in webhook. Using webhook requires tracking alarm times. startsAt endAt updateAt. If I don't handle the alarm and set the repeated alarm to 1 hour, then the next alarm time will still be startsAt, which will lead to misunderstanding
The time in the figure below comes from startsAt. The startsAt time is the same, but the alarm value is different, and the sending time is different
As the update timestamp is per Alertmanager, it wouldn't be consistent in case of Alertmanager cluster (a notification from Alertmanager A wouldn't have the same updatedAt value than Alertmanager B or C).
question I can get the attribute 'updateAt from Alartmanager API api/v2/alerts but no this from webhook。 Raw data as below: json.loads(request.data) Clould you please share some ideas?
VERSION V0.20.0
json.loads(request.data)
GET http://localhost:9093/api/v2/alerts