You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should add the follow case to filter.go so users can invoke the built-in is_resolution filter. We should also document this filter.
case "is_resolution":
// Deny event that is not a resolution.
if !event.IsResolution() {
logger.WithFields(fields).Debug("denying event that is not a resolution")
return true
}
The text was updated successfully, but these errors were encountered:
It appears is_incident filters resolution events, so if that is the preferred terminology, perhaps we should remove the is_resolution key from event.go?
) and it's not the same as !IsIncident() so I feel like it's still relevant to have that. That being said, maybe it could be exposed as a built-in filter if required.
is_resolution
logic exists inevent.go
sensu-go/api/core/v2/event.go
Line 113 in e3421f7
sensu-go/api/core/v2/event.go
Lines 84 to 96 in e3421f7
but is not implemented in
filter.go
sensu-go/backend/pipelined/filter.go
Lines 101 to 128 in 95acb05
We should add the follow case to
filter.go
so users can invoke the built-inis_resolution
filter. We should also document this filter.The text was updated successfully, but these errors were encountered: