Skip to content

Commit 470d0ae

Browse files
committed
chore: Include event ID
1 parent 54dd4bc commit 470d0ae

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

internal/alert/monitor.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ func (m *alertMonitor) HandleAttempt(ctx context.Context, attempt DeliveryAttemp
148148

149149
alert := NewConsecutiveFailureAlert(ConsecutiveFailureData{
150150
Event: AlertedEvent{
151+
ID: attempt.DeliveryEvent.Event.ID,
151152
Topic: attempt.DeliveryEvent.Event.Topic,
152153
Metadata: attempt.DeliveryEvent.Event.Metadata,
153154
Data: attempt.DeliveryEvent.Event.Data,

internal/alert/notifier.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ func NotifierWithBearerToken(token string) NotifierOption {
4343
}
4444

4545
type AlertedEvent struct {
46+
ID string `json:"id"`
4647
Topic string `json:"topic"` // event topic
4748
Metadata map[string]string `json:"metadata"` // event metadata
4849
Data map[string]interface{} `json:"data"` // event payload

0 commit comments

Comments
 (0)