A class to monitor the correct functionality of a system part. More...
#include <monitor.h>
Public Member Functions | |
Monitor (const core::InstanceSpecifier &specifier, std::function< void(InitMonitorReason)> initMonitor, CounterBased defaultValues) | |
Monitor constructor with a counter-based debouncing. More... | |
Monitor (const core::InstanceSpecifier &specifier, std::function< void(InitMonitorReason)> initMonitor, TimeBased defaultValues) | |
Monitor constructor with a time-based debouncing. More... | |
void | ReportMonitorAction (MonitorAction action) |
Report a monitor action. More... | |
void | AttachEvent (Event *event) |
Attach an event to the monitor object. More... | |
core::Result< void > | Offer () |
Start offering monitoring requests handling. More... | |
void | StopOffer () |
Stop offering monitoring requests handling. | |
A class to monitor the correct functionality of a system part.
ara::diag::Monitor::Monitor | ( | const core::InstanceSpecifier & | specifier, |
std::function< void(InitMonitorReason)> | initMonitor, | ||
CounterBased | defaultValues | ||
) |
ara::diag::Monitor::Monitor | ( | const core::InstanceSpecifier & | specifier, |
std::function< void(InitMonitorReason)> | initMonitor, | ||
TimeBased | defaultValues | ||
) |
void ara::diag::Monitor::AttachEvent | ( | Event * | event | ) |
Attach an event to the monitor object.
event | Event pointer to be attached |
core::Result< void > ara::diag::Monitor::Offer | ( | ) |
Start offering monitoring requests handling.
void ara::diag::Monitor::ReportMonitorAction | ( | MonitorAction | action | ) |
Report a monitor action.
action | Latest diagnostic monitor action |
std::invalid_argument | Throws when the action is not supported |