MCPcopy Create free account
hub / github.com/cortexproject/cortex / removeNotifier

Method removeNotifier

pkg/ruler/manager.go:305–314  ·  view source on GitHub ↗
(userID string)

Source from the content-addressed store, hash-verified

303}
304
305func (r *DefaultMultiTenantManager) removeNotifier(userID string) {
306 r.notifiersMtx.Lock()
307 defer r.notifiersMtx.Unlock()
308
309 if n, ok := r.notifiers[userID]; ok {
310 n.stop()
311 }
312
313 delete(r.notifiers, userID)
314}
315
316func (r *DefaultMultiTenantManager) getOrCreateNotifier(userID string, userManagerRegistry prometheus.Registerer) (*notifier.Manager, error) {
317 r.notifiersMtx.Lock()

Callers 1

SyncRuleGroupsMethod · 0.95

Calls 1

stopMethod · 0.45

Tested by

no test coverage detected