Package org.acemq.rabbitmq.admin.alerts
Class Alerts.AlertSet
java.lang.Object
org.acemq.rabbitmq.admin.alerts.Alerts.AlertSet
- Enclosing class:
Alerts
Several rules, evaluated and exported together.
-
Method Summary
Modifier and TypeMethodDescriptionevaluate(MetricsSnapshot metrics) booleanhasCritical(MetricsSnapshot metrics) static Alerts.AlertSetrules()
-
Method Details
-
of
- Parameters:
rules- the rules- Returns:
- a set of them
-
and
- Parameters:
rule- another rule- Returns:
- a set with it added
-
evaluate
- Parameters:
metrics- a scrape- Returns:
- every event firing across every rule, most severe first, so a caller printing the first line prints the worst thing rather than the first-declared thing
-
hasCritical
- Parameters:
metrics- a scrape- Returns:
- whether anything is firing at
Severity.CRITICAL
-
toPrometheusRules
- Returns:
- a complete Prometheus rules file, ready to load
-
rules
- Returns:
- the rules in this set
-