|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Silence configuration to suppress alerts. More...
#include <alert_types.h>

Public Member Functions | |
| alert_silence () | |
| bool | is_active () const |
| Check if silence is currently active. | |
| bool | matches (const alert &a) const |
| Check if an alert matches this silence. | |
Public Attributes | |
| uint64_t | id = 0 |
| Silence ID. | |
| std::string | comment |
| Reason for silence. | |
| std::string | created_by |
| Creator identifier. | |
| alert_labels | matchers |
| Labels to match. | |
| std::chrono::steady_clock::time_point | starts_at |
| Silence start time. | |
| std::chrono::steady_clock::time_point | ends_at |
| Silence end time. | |
Static Private Member Functions | |
| static uint64_t | generate_id () |
Silence configuration to suppress alerts.
Silences prevent matching alerts from sending notifications for a specified duration.
Definition at line 385 of file alert_types.h.
|
inline |
Definition at line 393 of file alert_types.h.
|
inlinestaticprivate |
|
inline |
Check if silence is currently active.
Definition at line 402 of file alert_types.h.
References ends_at, and starts_at.
Referenced by matches().

|
inline |
Check if an alert matches this silence.
| a | The alert to check |
Definition at line 412 of file alert_types.h.
References kcenon::monitoring::alert_labels::get(), is_active(), kcenon::monitoring::alert::labels, kcenon::monitoring::alert_labels::labels, and matchers.

| std::string kcenon::monitoring::alert_silence::comment |
| std::string kcenon::monitoring::alert_silence::created_by |
Creator identifier.
Definition at line 388 of file alert_types.h.
| std::chrono::steady_clock::time_point kcenon::monitoring::alert_silence::ends_at |
| uint64_t kcenon::monitoring::alert_silence::id = 0 |
| alert_labels kcenon::monitoring::alert_silence::matchers |
| std::chrono::steady_clock::time_point kcenon::monitoring::alert_silence::starts_at |