RTC Toolkit
2.0.0
|
Event published when alert status is changed. More...
#include <eventDefinitions.hpp>
Classes | |
struct | Alert |
Represents an active alert originating from a component instance. More... | |
Public Member Functions | |
AlertStatusEvent (bool st, std::vector< Alert > ac, std::string const &origin) | |
Construct by providing members. More... | |
AlertStatusEvent (JsonPayload const &json) | |
Construct by deserializing from JSON. More... | |
JsonPayload | ToJson () const |
Serialize to JSON. More... | |
Public Member Functions inherited from rtctk::componentFramework::AbstractEvent | |
AbstractEvent ()=delete | |
AbstractEvent (JsonPayload const &payload) | |
AbstractEvent (std::string const &origin) | |
JsonPayload | ToJson () const |
Public Attributes | |
bool | status |
Reduced alert status. More... | |
std::vector< Alert > | active_alerts |
Public Attributes inherited from rtctk::componentFramework::AbstractEvent | |
std::string | origin |
uint64_t | time |
Static Public Attributes | |
static const std::string | TOPIC_NAME = "alert_status_topic" |
Event published when alert status is changed.
The type can represent the alert status of an individual component or can be combined and be reduced to represent status from multiple components or system.
|
inline |
Construct by providing members.
|
inline |
Construct by deserializing from JSON.
|
inline |
Serialize to JSON.
std::vector<Alert> rtctk::componentFramework::AlertStatusEvent::active_alerts |
bool rtctk::componentFramework::AlertStatusEvent::status |
Reduced alert status.
|
inlinestatic |