We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6b942c commit 7f5c8ffCopy full SHA for 7f5c8ff
inhibit/inhibit.go
@@ -230,10 +230,11 @@ func NewInhibitRule(cr config.InhibitRule) *InhibitRule {
230
// is returned. If excludeTwoSidedMatch is true, alerts that match both the
231
// source and the target side of the rule are disregarded.
232
func (r *InhibitRule) hasEqual(lset model.LabelSet, excludeTwoSidedMatch bool) (model.Fingerprint, bool) {
233
+ now := time.Now()
234
Outer:
235
for _, a := range r.scache.List() {
236
// The cache might be stale and contain resolved alerts.
- if a.Resolved() {
237
+ if a.ResolvedAt(now) {
238
continue
239
}
240
for n := range r.Equal {
0 commit comments