Skip to content

Commit

Permalink
Merge pull request #31 from rizalgowandy/arwego/feat/v2
Browse files Browse the repository at this point in the history
Add WithAlerter Option
  • Loading branch information
rizalgowandy authored Sep 6, 2022
2 parents fc49c5d + 019e4d0 commit 2ead08b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions option.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,10 @@ func WithStorage(client storage.Client) Option {
m.storage = client
}
}

// WithAlerter determines the alerter used to send notification for high latency job run detected.
func WithAlerter(client AlerterItf) Option {
return func(m *Manager) {
m.alerter = client
}
}

0 comments on commit 2ead08b

Please sign in to comment.