Alert is overwritten when triggering a new event with the same dedup key
dillu24 opened this issue · comments
I am trying to create an event, and then create another event with the same dedup. I expect that there will be 2 alerts in the same incident, however there is only 1 (new summary
), which means that the alert is overwritten.
This is my code:
from pdpyras import EventsAPISession
class PagerDutyApi:
def __init__(self, integration_key: str) -> None:
self._session = EventsAPISession(integration_key)
# Returns the dedup key
dedup = self._session.trigger(summary='test summary', source='val1', severity='info')
self._session.trigger(summary='new summary', source='val1', severity='info', dedup_key=dedup)
PagerDutyApi('Dummy-Integration-Key')
I concur, having the same experience here.
Hi @dillu24 and @amandeep-r ,
This is expected behavior; two events of the same dedup key will always be merged into a single alert and shown as events in the alert's history log.
Be that as it may, PagerDuty's event intelligence add-on has some nifty features for automatically grouping alerts into single incidents based on other criteria such as event message content and time received.