Add notification queue metrics (#16026)

This commit is contained in:
Klaus Post
2022-11-09 01:36:47 +01:00
committed by GitHub
parent 1b0dfb0f58
commit bbc312fce6
16 changed files with 217 additions and 50 deletions
+5
View File
@@ -115,6 +115,11 @@ func (target *WebhookTarget) IsActive() (bool, error) {
return target.isActive()
}
// Store returns any underlying store if set.
func (target *WebhookTarget) Store() event.TargetStore {
return target.store
}
func (target *WebhookTarget) isActive() (bool, error) {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()