License
MIT License
v0.0.3 · public · Published almost 5 years ago
The Sensu Go Severity Filter is a Sensu Event Filter that
filters Sensu Go Events by Check status severity (ok, warning,
critical, unknown).
This Filter Asset implements the Sensu 1.x built-in Handler
severities filter logic.
Define one or more filters with sensu-severity-filter
as a runtime
asset and using the has_severity
function in a filter expression.
The following example shows a filter which will allow events with a
critical
check severity:
---
type: EventFilter
api_version: core/v2
metadata:
name: only_critical
namespace: default
spec:
action: allow
runtime_assets:
- sensu-severity-filter
expressions:
- has_severity(event, "critical")
Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.
×