MCPcopy Create free account
hub / github.com/prometheus/common / Status

Method Status

model/alert.go:78–80  ·  view source on GitHub ↗

Status returns the status of the alert.

()

Source from the content-addressed store, hash-verified

76
77// Status returns the status of the alert.
78func (a *Alert) Status() AlertStatus {
79 return a.StatusAt(time.Now())
80}
81
82// StatusAt returns the status of the alert at the given timestamp.
83func (a *Alert) StatusAt(ts time.Time) AlertStatus {

Callers 1

TestAlertFunction · 0.95

Calls 1

StatusAtMethod · 0.95

Tested by 1

TestAlertFunction · 0.76