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

Method Resolved

model/alert.go:64–66  ·  view source on GitHub ↗

Resolved returns true iff the activity interval ended in the past.

()

Source from the content-addressed store, hash-verified

62
63// Resolved returns true iff the activity interval ended in the past.
64func (a *Alert) Resolved() bool {
65 return a.ResolvedAt(time.Now())
66}
67
68// ResolvedAt returns true iff the activity interval ended before
69// the given timestamp.

Callers 3

StringMethod · 0.95
TestAlertFunction · 0.95
HasFiringMethod · 0.80

Calls 1

ResolvedAtMethod · 0.95

Tested by 1

TestAlertFunction · 0.76