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

Method ResolvedAt

model/alert.go:70–75  ·  view source on GitHub ↗

ResolvedAt returns true iff the activity interval ended before the given timestamp.

(ts time.Time)

Source from the content-addressed store, hash-verified

68// ResolvedAt returns true iff the activity interval ended before
69// the given timestamp.
70func (a *Alert) ResolvedAt(ts time.Time) bool {
71 if a.EndsAt.IsZero() {
72 return false
73 }
74 return !a.EndsAt.After(ts)
75}
76
77// Status returns the status of the alert.
78func (a *Alert) Status() AlertStatus {

Callers 4

ResolvedMethod · 0.95
StatusAtMethod · 0.95
TestAlertFunction · 0.95
HasFiringAtMethod · 0.80

Calls 1

AfterMethod · 0.80

Tested by 1

TestAlertFunction · 0.76