mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 20:50:22 +03:00
Add notification queue metrics (#16026)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user