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

Method currentStats

pkg/alertmanager/alertmanager.go:828–833  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

826}
827
828func (a *alertsLimiter) currentStats() (count, totalSize int) {
829 a.mx.Lock()
830 defer a.mx.Unlock()
831
832 return a.count, a.totalSize
833}
834
835func alertSize(alert model.Alert) int {
836 size := 0

Callers 2

newAlertsLimiterFunction · 0.95
testLimiterFunction · 0.80

Calls

no outgoing calls

Tested by 1

testLimiterFunction · 0.64