|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Rule for inhibiting alerts based on other alerts. More...
#include <alert_pipeline.h>

Public Member Functions | |
| bool | matches_source (const alert &a) const |
| Check if source alert matches this rule. | |
| bool | should_inhibit (const alert &source, const alert &target) const |
| Check if target alert should be inhibited by source. | |
Public Attributes | |
| std::string | name |
| alert_labels | source_match |
| Labels that source alert must have. | |
| alert_labels | target_match |
| Labels that target alert must have. | |
| std::vector< std::string > | equal |
| Labels that must be equal on both. | |
Rule for inhibiting alerts based on other alerts.
When a source alert is firing, target alerts matching the specified labels are inhibited (silenced).
Definition at line 261 of file alert_pipeline.h.
|
inline |
Check if source alert matches this rule.
Definition at line 270 of file alert_pipeline.h.
References kcenon::monitoring::alert_labels::get(), kcenon::monitoring::alert::labels, kcenon::monitoring::alert_labels::labels, and source_match.
Referenced by should_inhibit().


|
inline |
Check if target alert should be inhibited by source.
Definition at line 282 of file alert_pipeline.h.
References equal, kcenon::monitoring::alert_labels::get(), kcenon::monitoring::alert::labels, kcenon::monitoring::alert_labels::labels, matches_source(), and target_match.

| std::vector<std::string> kcenon::monitoring::inhibition_rule::equal |
Labels that must be equal on both.
Definition at line 265 of file alert_pipeline.h.
Referenced by main(), and should_inhibit().
| std::string kcenon::monitoring::inhibition_rule::name |
Definition at line 262 of file alert_pipeline.h.
Referenced by main().
| alert_labels kcenon::monitoring::inhibition_rule::source_match |
Labels that source alert must have.
Definition at line 263 of file alert_pipeline.h.
Referenced by main(), and matches_source().
| alert_labels kcenon::monitoring::inhibition_rule::target_match |
Labels that target alert must have.
Definition at line 264 of file alert_pipeline.h.
Referenced by main(), and should_inhibit().