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

Method PostDelete

pkg/alertmanager/alertmanager.go:813–826  ·  view source on GitHub ↗
(alert *types.Alert)

Source from the content-addressed store, hash-verified

811}
812
813func (a *alertsLimiter) PostDelete(alert *types.Alert) {
814 if alert == nil {
815 return
816 }
817
818 fp := alert.Fingerprint()
819
820 a.mx.Lock()
821 defer a.mx.Unlock()
822
823 a.totalSize -= a.sizes[fp]
824 delete(a.sizes, fp)
825 a.count--
826}
827
828func (a *alertsLimiter) currentStats() (count, totalSize int) {
829 a.mx.Lock()

Callers 1

testLimiterFunction · 0.80

Calls

no outgoing calls

Tested by 1

testLimiterFunction · 0.64