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

View File

@@ -40,6 +40,11 @@ func (target ExampleTarget) Save(eventData Event) error {
return target.send(eventData)
}
// Store - Returns a nil store.
func (target ExampleTarget) Store() TargetStore {
return nil
}
func (target ExampleTarget) send(eventData Event) error {
b := make([]byte, 1)
if _, err := rand.Read(b); err != nil {