Definition at line 156 of file test_alert_manager.cpp.
◆ create_rule()
| std::shared_ptr< alert_rule > AlertManagerRuleTest::create_rule |
( |
const std::string & | name, |
|
|
const std::string & | metric = "cpu_usage" ) |
|
inlineprotected |
Definition at line 160 of file test_alert_manager.cpp.
161 {
162 auto rule = std::make_shared<alert_rule>(name);
163 rule->set_metric_name(
metric)
164 .set_severity(alert_severity::critical)
166 .set_summary("Test rule: " + name);
167 return rule;
168 }
static std::shared_ptr< threshold_trigger > above(double threshold)
Create trigger for value > threshold.
Basic metric structure for interface compatibility.
References kcenon::monitoring::threshold_trigger::above().
◆ manager_
The documentation for this class was generated from the following file: