|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Simple notifier that logs alerts. More...
#include <alert_manager.h>


Public Member Functions | |
| log_notifier (std::string notifier_name="log_notifier") | |
| Construct log notifier. | |
| std::string | name () const override |
| Get the name of this log notifier. | |
| common::VoidResult | notify (const alert &a) override |
| Log an alert notification. | |
| common::VoidResult | notify_group (const alert_group &group) override |
| Log a grouped alert notification. | |
| bool | is_ready () const override |
| Check if the log notifier is ready. | |
Public Member Functions inherited from kcenon::monitoring::alert_notifier | |
| virtual | ~alert_notifier ()=default |
Private Attributes | |
| std::string | name_ |
Simple notifier that logs alerts.
Writes alert information to the logging system.
Definition at line 446 of file alert_manager.h.
|
inlineexplicit |
Construct log notifier.
| notifier_name | Name for this notifier |
Definition at line 452 of file alert_manager.h.
|
inlineoverridevirtual |
Check if the log notifier is ready.
Implements kcenon::monitoring::alert_notifier.
Definition at line 479 of file alert_manager.h.
Referenced by TEST().

|
inlineoverridevirtual |
Get the name of this log notifier.
Implements kcenon::monitoring::alert_notifier.
Definition at line 459 of file alert_manager.h.
References name_.
Referenced by TEST(), and TEST().

|
overridevirtual |
Log an alert notification.
| a | Alert to log |
Implements kcenon::monitoring::alert_notifier.
|
overridevirtual |
Log a grouped alert notification.
| group | Alert group to log |
Implements kcenon::monitoring::alert_notifier.
|
private |
Definition at line 482 of file alert_manager.h.
Referenced by name().