RTC Toolkit  2.0.0
eventDefinitions.hpp
Go to the documentation of this file.
1 
12 #ifndef RTCTK_COMPONENTFRAMEWORK_EVENTDEFINITIONS_HPP
13 #define RTCTK_COMPONENTFRAMEWORK_EVENTDEFINITIONS_HPP
14 
16 
17 #include <boost/core/demangle.hpp>
18 #include <chrono>
19 
20 namespace rtctk::componentFramework {
21 
22 template <typename T>
23 std::string PrettyTypeName() {
24  return boost::core::demangle((typeid(T).name()));
25 }
26 
27 inline uint64_t GetTimestamp() {
28  using namespace std::chrono;
29  return duration_cast<nanoseconds>(system_clock::now().time_since_epoch()).count();
30 }
31 
33 
39 struct AbstractEvent {
40  AbstractEvent() = delete;
41 
42  AbstractEvent(JsonPayload const& payload) : origin(payload["origin"]), time(payload["time"]) {
43  }
44 
45  AbstractEvent(std::string const& origin) : origin(origin), time(GetTimestamp()) {
46  }
47 
48  JsonPayload ToJson() const {
49  JsonPayload payload;
50  payload["type"] = std::vector<std::string>();
51  payload["origin"] = origin;
52  payload["time"] = time;
53  return payload;
54  }
55 
56  std::string origin; // which component performed computation
57  uint64_t time; // when was computation performed
58 };
59 
61 
66  inline static const std::string TOPIC_NAME = "computation_topic";
67 
68  ComputationEvent(std::string const& origin, std::string const& item, std::string const& state)
70  }
71 
72  ComputationEvent(std::string const& origin, std::string const& item)
73  : ComputationEvent(origin, item, "finished") {
74  }
75 
76  ComputationEvent(JsonPayload const& payload)
77  : AbstractEvent(payload), item(payload["item"]), state(payload["state"]) {
78  }
79 
80  JsonPayload ToJson() const {
81  auto payload = AbstractEvent::ToJson();
82  payload["type"].push_back(PrettyTypeName<ComputationEvent>());
83  payload["item"] = item;
84  payload["state"] = state;
85  return payload;
86  }
87 
88  std::string item; // what was computed
89  std::string state; // was computaton started, finished, failed
90 };
91 
96  ComputationStartedEvent(std::string const& origin, std::string const& item)
97  : ComputationEvent(origin, item, "started") {
98  }
99 
101  }
102 
103  JsonPayload ToJson() const {
104  auto payload = ComputationEvent::ToJson();
105  payload["type"].push_back(PrettyTypeName<ComputationStartedEvent>());
106  return payload;
107  }
108 };
109 
114  ComputationFinishedEvent(std::string const& origin, std::string const& item)
115  : ComputationEvent(origin, item, "finished") {
116  }
117 
118  ComputationFinishedEvent(std::string const& origin,
119  std::string const& item,
120  JsonPayload const& result)
121  : ComputationEvent(origin, item, "finished"), result(result) {
122  }
123 
125  : ComputationEvent(payload), result(payload["result"]) {
126  }
127 
128  JsonPayload ToJson() const {
129  auto payload = ComputationEvent::ToJson();
130  payload["type"].push_back(PrettyTypeName<ComputationFinishedEvent>());
131  payload["result"] = result;
132  return payload;
133  }
134 
136 };
137 
139 
144  inline static const std::string TOPIC_NAME = "configuration_topic";
145 
146  ConfigurationEvent(std::string const& origin, std::string const& item, std::string const& state)
147  : AbstractEvent(origin), items({item}), state(state) {
148  }
149 
150  ConfigurationEvent(std::string const& origin,
151  std::vector<std::string> const& items,
152  std::string const& state)
154  }
155 
157  : AbstractEvent(payload), items(payload["items"]), state(payload["state"]) {
158  }
159 
160  JsonPayload ToJson() const {
161  auto payload = AbstractEvent::ToJson();
162  payload["type"].push_back(PrettyTypeName<ConfigurationEvent>());
163  payload["items"] = items;
164  payload["state"] = state;
165  return payload;
166  }
167 
168  std::vector<std::string> items; // what was configured
169  std::string state; // was configuration scheduled, started, finished, failed
170 };
171 
176  ConfigurationUpdatedEvent(std::string const& origin, std::string const& item)
177  : ConfigurationEvent(origin, item, "updated") {
178  }
179 
180  ConfigurationUpdatedEvent(std::string const& origin, std::vector<std::string> const& items)
181  : ConfigurationEvent(origin, items, "updated") {
182  }
183 
185  }
186 
187  JsonPayload ToJson() const {
188  auto payload = ConfigurationEvent::ToJson();
189  payload["type"].push_back(PrettyTypeName<ConfigurationUpdatedEvent>());
190  return payload;
191  }
192 };
193 
198  ConfigurationRetrievedEvent(std::string const& origin, std::string const& item)
199  : ConfigurationEvent(origin, item, "retrieved") {
200  }
201 
202  ConfigurationRetrievedEvent(std::string const& origin, std::vector<std::string> const& items)
203  : ConfigurationEvent(origin, items, "retrieved") {
204  }
205 
207  }
208 
209  JsonPayload ToJson() const {
210  auto payload = ConfigurationEvent::ToJson();
211  payload["type"].push_back(PrettyTypeName<ConfigurationRetrievedEvent>());
212  return payload;
213  }
214 };
215 
222  std::string const& item,
223  std::string const& hrtc_origin,
224  uint64_t hrtc_timestamp,
225  uint64_t hrtc_sample_id)
226  : ConfigurationEvent(origin, item, "scheduled")
230  }
231 
233  : ConfigurationEvent(payload)
234  , hrtc_origin(payload["hrtc_origin"])
235  , hrtc_timestamp(payload["hrtc_timestamp"])
236  , hrtc_sample_id(payload["hrtc_sample_id"]) {
237  }
238 
239  JsonPayload ToJson() const {
240  auto payload = ConfigurationEvent::ToJson();
241  payload["type"].push_back(PrettyTypeName<HrtcConfigurationScheduledEvent>());
242  payload["hrtc_origin"] = hrtc_origin;
243  payload["hrtc_timestamp"] = hrtc_timestamp;
244  payload["hrtc_sample_id"] = hrtc_sample_id;
245  return payload;
246  }
247 
248  std::string hrtc_origin;
249  uint64_t hrtc_timestamp;
250  uint64_t hrtc_sample_id;
251 };
252 
258  std::string const& item,
259  std::string const& hrtc_origin,
260  uint64_t hrtc_timestamp,
261  uint64_t hrtc_sample_id)
262  : ConfigurationEvent(origin, item, "applied")
266  }
267 
269  : ConfigurationEvent(payload)
270  , hrtc_origin(payload["hrtc_origin"])
271  , hrtc_timestamp(payload["hrtc_timestamp"])
272  , hrtc_sample_id(payload["hrtc_sample_id"]) {
273  }
274 
275  JsonPayload ToJson() const {
276  auto payload = ConfigurationEvent::ToJson();
277  payload["type"].push_back(PrettyTypeName<HrtcConfigurationAppliedEvent>());
278  payload["hrtc_origin"] = hrtc_origin;
279  payload["hrtc_timestamp"] = hrtc_timestamp;
280  payload["hrtc_sample_id"] = hrtc_sample_id;
281  return payload;
282  }
283 
284  std::string hrtc_origin;
285  uint64_t hrtc_timestamp;
286  uint64_t hrtc_sample_id;
287 };
288 
290 
295  inline static const std::string TOPIC_NAME = "coordination_topic";
296 
297  CoordinationEvent(std::string const& origin) : AbstractEvent(origin) {
298  }
299 
300  CoordinationEvent(JsonPayload const& payload) : AbstractEvent(payload) {
301  }
302 
303  JsonPayload ToJson() const {
304  auto payload = AbstractEvent::ToJson();
305  payload["type"].push_back(PrettyTypeName<CoordinationEvent>());
306  return payload;
307  }
308 };
309 
314  StateChangedEvent(std::string const& origin,
315  std::string const& entity,
316  std::string const& state)
318  }
319 
320  StateChangedEvent(std::string const& origin, std::string const& state)
322  }
323 
325  : CoordinationEvent(payload), entity(payload["entity"]), state(payload["state"]) {
326  }
327 
328  JsonPayload ToJson() const {
329  auto payload = CoordinationEvent::ToJson();
330  payload["type"].push_back(PrettyTypeName<StateChangedEvent>());
331  payload["state"] = state;
332  payload["entity"] = entity;
333  return payload;
334  }
335 
336  std::string entity;
337  std::string state;
338 };
339 
344  HrtcStateChangedEvent(std::string const& origin,
345  std::string const& entity,
346  std::string const& state,
347  uint64_t hrtc_timestamp,
348  uint64_t hrtc_sample_id)
352  }
353 
355  : StateChangedEvent(payload)
356  , hrtc_timestamp(payload["hrtc_timestamp"])
357  , hrtc_sample_id(payload["hrtc_sample_id"]) {
358  }
359 
360  JsonPayload ToJson() const {
361  auto payload = StateChangedEvent::ToJson();
362  payload["type"].push_back(PrettyTypeName<HrtcStateChangedEvent>());
363  payload["hrtc_timestamp"] = hrtc_timestamp;
364  payload["hrtc_sample_id"] = hrtc_sample_id;
365  return payload;
366  }
367 
368  uint64_t hrtc_timestamp;
369  uint64_t hrtc_sample_id;
370 };
371 
379  inline static const std::string TOPIC_NAME = "alert_status_topic";
380 
387  struct Alert {
391  std::string origin;
392 
396  std::string id;
397 
401  std::string description;
402 
406  std::uint64_t since;
407  };
408 
412  AlertStatusEvent(bool st, std::vector<Alert> ac, std::string const& origin)
413  : AbstractEvent(origin), status(st), active_alerts(std::move(ac)) {
414  }
415 
420  json["status"].get_to(status);
421  for (auto&& active : json["active_alerts"]) {
422  Alert alert;
423  active["id"].get_to(alert.id);
424  active["description"].get_to(alert.description);
425  active["origin"].get_to(alert.origin);
426  active["since"].get_to(alert.since);
427  active_alerts.push_back(alert);
428  }
429  }
430 
434  JsonPayload ToJson() const {
435  auto payload = AbstractEvent::ToJson();
436  payload["type"].push_back(PrettyTypeName<AlertStatusEvent>());
437  payload["status"] = status;
438  JsonPayload json_active;
439  for (auto&& alert : active_alerts) {
440  json_active.push_back(JsonPayload{{"origin", alert.origin},
441  {"id", alert.id},
442  {"description", alert.description},
443  {"since", alert.since}});
444  }
445  payload["active_alerts"] = std::move(json_active);
446  return payload;
447  }
448 
452  bool status;
453  std::vector<Alert> active_alerts;
454 };
455 
456 } // namespace rtctk::componentFramework
457 
458 #endif // RTCTK_COMPONENTFRAMEWORK_EVENTDEFINITIONS_HPP
rtctk::componentFramework::AlertStatusEvent::active_alerts
std::vector< Alert > active_alerts
Definition: eventDefinitions.hpp:453
rtctk::componentFramework::ComputationFinishedEvent::ComputationFinishedEvent
ComputationFinishedEvent(std::string const &origin, std::string const &item)
Definition: eventDefinitions.hpp:114
rtctk::componentFramework::ComputationEvent
Abstract Event Type that is used as a base for computation events.
Definition: eventDefinitions.hpp:65
rtctk::componentFramework::ConfigurationEvent::ConfigurationEvent
ConfigurationEvent(std::string const &origin, std::vector< std::string > const &items, std::string const &state)
Definition: eventDefinitions.hpp:150
wscript.name
name
Definition: wscript:15
rtctk::componentFramework::AbstractEvent::AbstractEvent
AbstractEvent(JsonPayload const &payload)
Definition: eventDefinitions.hpp:42
rtctk::componentFramework::HrtcConfigurationAppliedEvent::hrtc_sample_id
uint64_t hrtc_sample_id
Definition: eventDefinitions.hpp:286
rtctk::componentFramework::ComputationFinishedEvent::ComputationFinishedEvent
ComputationFinishedEvent(std::string const &origin, std::string const &item, JsonPayload const &result)
Definition: eventDefinitions.hpp:118
rtctk::componentFramework::ConfigurationEvent::ToJson
JsonPayload ToJson() const
Definition: eventDefinitions.hpp:160
rtctk::componentFramework::ConfigurationUpdatedEvent::ConfigurationUpdatedEvent
ConfigurationUpdatedEvent(std::string const &origin, std::string const &item)
Definition: eventDefinitions.hpp:176
rtctk::componentFramework::ConfigurationRetrievedEvent::ConfigurationRetrievedEvent
ConfigurationRetrievedEvent(std::string const &origin, std::string const &item)
Definition: eventDefinitions.hpp:198
rtctk::componentFramework::ConfigurationUpdatedEvent::ConfigurationUpdatedEvent
ConfigurationUpdatedEvent(std::string const &origin, std::vector< std::string > const &items)
Definition: eventDefinitions.hpp:180
rtctk::componentFramework::AlertStatusEvent::status
bool status
Reduced alert status.
Definition: eventDefinitions.hpp:452
rtctk::componentFramework::HrtcStateChangedEvent::hrtc_sample_id
uint64_t hrtc_sample_id
Definition: eventDefinitions.hpp:369
rtctk::componentFramework::AlertStatusEvent::AlertStatusEvent
AlertStatusEvent(JsonPayload const &json)
Construct by deserializing from JSON.
Definition: eventDefinitions.hpp:419
rtctk::componentFramework::AbstractEvent::origin
std::string origin
Definition: eventDefinitions.hpp:56
rtctk::componentFramework::ComputationEvent::ComputationEvent
ComputationEvent(std::string const &origin, std::string const &item)
Definition: eventDefinitions.hpp:72
rtctk::componentFramework::ComputationFinishedEvent::ComputationFinishedEvent
ComputationFinishedEvent(JsonPayload const &payload)
Definition: eventDefinitions.hpp:124
rtctk::componentFramework::AbstractEvent::AbstractEvent
AbstractEvent()=delete
rtctk::componentFramework::ComputationEvent::ComputationEvent
ComputationEvent(std::string const &origin, std::string const &item, std::string const &state)
Definition: eventDefinitions.hpp:68
rtctk::componentFramework::ComputationStartedEvent::ComputationStartedEvent
ComputationStartedEvent(std::string const &origin, std::string const &item)
Definition: eventDefinitions.hpp:96
rtctk::componentFramework::HrtcConfigurationAppliedEvent
Event Type used to signal that a configuration data item was applied in HRTC.
Definition: eventDefinitions.hpp:256
rtctk::componentFramework
Definition: commandReplier.cpp:20
rtctk::componentFramework::AlertStatusEvent::AlertStatusEvent
AlertStatusEvent(bool st, std::vector< Alert > ac, std::string const &origin)
Construct by providing members.
Definition: eventDefinitions.hpp:412
rtctk::componentFramework::ConfigurationEvent
Abstract Event Type that is used as a base for configuration events.
Definition: eventDefinitions.hpp:143
rtctk::componentFramework::GetTimestamp
uint64_t GetTimestamp()
Definition: eventDefinitions.hpp:27
rtctk::componentFramework::AlertStatusEvent::Alert
Represents an active alert originating from a component instance.
Definition: eventDefinitions.hpp:387
rtctk::componentFramework::CoordinationEvent::CoordinationEvent
CoordinationEvent(JsonPayload const &payload)
Definition: eventDefinitions.hpp:300
rtctk::componentFramework::ComputationStartedEvent
Event Type used to signal that a computation has started.
Definition: eventDefinitions.hpp:95
rtctk::componentFramework::PrettyTypeName
std::string PrettyTypeName()
Definition: eventDefinitions.hpp:23
rtctk::componentFramework::ComputationEvent::ToJson
JsonPayload ToJson() const
Definition: eventDefinitions.hpp:80
rtctk::componentFramework::AlertStatusEvent::Alert::origin
std::string origin
Component instance origin.
Definition: eventDefinitions.hpp:391
rtctk::componentFramework::HrtcStateChangedEvent::HrtcStateChangedEvent
HrtcStateChangedEvent(std::string const &origin, std::string const &entity, std::string const &state, uint64_t hrtc_timestamp, uint64_t hrtc_sample_id)
Definition: eventDefinitions.hpp:344
rtctk::componentFramework::ConfigurationUpdatedEvent::ConfigurationUpdatedEvent
ConfigurationUpdatedEvent(JsonPayload const &payload)
Definition: eventDefinitions.hpp:184
rtctk::componentFramework::ComputationStartedEvent::ToJson
JsonPayload ToJson() const
Definition: eventDefinitions.hpp:103
rtctk::componentFramework::HrtcConfigurationScheduledEvent::HrtcConfigurationScheduledEvent
HrtcConfigurationScheduledEvent(std::string const &origin, std::string const &item, std::string const &hrtc_origin, uint64_t hrtc_timestamp, uint64_t hrtc_sample_id)
Definition: eventDefinitions.hpp:221
rtctk::componentFramework::HrtcConfigurationAppliedEvent::ToJson
JsonPayload ToJson() const
Definition: eventDefinitions.hpp:275
rtctk::componentFramework::AlertStatusEvent::TOPIC_NAME
static const std::string TOPIC_NAME
Definition: eventDefinitions.hpp:379
rtctk::componentFramework::StateChangedEvent
Event Type used to signal that some entity changed its state.
Definition: eventDefinitions.hpp:313
rtctk::componentFramework::ConfigurationRetrievedEvent::ConfigurationRetrievedEvent
ConfigurationRetrievedEvent(JsonPayload const &payload)
Definition: eventDefinitions.hpp:206
rtctk::componentFramework::HrtcStateChangedEvent::hrtc_timestamp
uint64_t hrtc_timestamp
Definition: eventDefinitions.hpp:368
rtctk::componentFramework::HrtcConfigurationScheduledEvent::hrtc_sample_id
uint64_t hrtc_sample_id
Definition: eventDefinitions.hpp:250
rtctk::componentFramework::AlertStatusEvent::Alert::description
std::string description
Description of alert.
Definition: eventDefinitions.hpp:401
rtctk::componentFramework::ComputationStartedEvent::ComputationStartedEvent
ComputationStartedEvent(JsonPayload const &payload)
Definition: eventDefinitions.hpp:100
rtctk::componentFramework::StateChangedEvent::state
std::string state
Definition: eventDefinitions.hpp:337
rtctk::componentFramework::HrtcConfigurationAppliedEvent::HrtcConfigurationAppliedEvent
HrtcConfigurationAppliedEvent(JsonPayload const &payload)
Definition: eventDefinitions.hpp:268
rtctk::componentFramework::ConfigurationEvent::TOPIC_NAME
static const std::string TOPIC_NAME
Definition: eventDefinitions.hpp:144
rtctk::componentFramework::CoordinationEvent
Abstract Event Type that is used as a base for coordination events.
Definition: eventDefinitions.hpp:294
rtctk::componentFramework::ConfigurationUpdatedEvent
Event Type used to signal that a configuration data item was updated in RTR.
Definition: eventDefinitions.hpp:175
rtctk::componentFramework::StateChangedEvent::StateChangedEvent
StateChangedEvent(JsonPayload const &payload)
Definition: eventDefinitions.hpp:324
rtctk::componentFramework::AlertStatusEvent::ToJson
JsonPayload ToJson() const
Serialize to JSON.
Definition: eventDefinitions.hpp:434
rtctk::componentFramework::ConfigurationEvent::ConfigurationEvent
ConfigurationEvent(JsonPayload const &payload)
Definition: eventDefinitions.hpp:156
rtctk::componentFramework::AbstractEvent::ToJson
JsonPayload ToJson() const
Definition: eventDefinitions.hpp:48
rtctk::componentFramework::StateChangedEvent::ToJson
JsonPayload ToJson() const
Definition: eventDefinitions.hpp:328
rtctk::componentFramework::ConfigurationEvent::state
std::string state
Definition: eventDefinitions.hpp:169
jsonPayload.hpp
Defines the JSON payload type JsonPayload.
rtctk::componentFramework::ConfigurationEvent::items
std::vector< std::string > items
Definition: eventDefinitions.hpp:168
rtctk::componentFramework::ComputationEvent::TOPIC_NAME
static const std::string TOPIC_NAME
Definition: eventDefinitions.hpp:66
rtctk::componentFramework::CoordinationEvent::ToJson
JsonPayload ToJson() const
Definition: eventDefinitions.hpp:303
rtctk::componentFramework::HrtcConfigurationAppliedEvent::HrtcConfigurationAppliedEvent
HrtcConfigurationAppliedEvent(std::string const &origin, std::string const &item, std::string const &hrtc_origin, uint64_t hrtc_timestamp, uint64_t hrtc_sample_id)
Definition: eventDefinitions.hpp:257
rtctk::componentFramework::AlertStatusEvent
Event published when alert status is changed.
Definition: eventDefinitions.hpp:378
rtctk::componentFramework::ComputationFinishedEvent::ToJson
JsonPayload ToJson() const
Definition: eventDefinitions.hpp:128
rtctk::componentFramework::ConfigurationUpdatedEvent::ToJson
JsonPayload ToJson() const
Definition: eventDefinitions.hpp:187
rtctk::componentFramework::AlertStatusEvent::Alert::id
std::string id
Alert identifier which is unique to the origin.
Definition: eventDefinitions.hpp:396
rtctk::componentFramework::HrtcConfigurationScheduledEvent::HrtcConfigurationScheduledEvent
HrtcConfigurationScheduledEvent(JsonPayload const &payload)
Definition: eventDefinitions.hpp:232
rtctk::componentFramework::AbstractEvent
Abstract Event Type that is used as a base for all events.
Definition: eventDefinitions.hpp:39
std
Definition: mudpiProcessingError.hpp:119
rtctk::componentFramework::AbstractEvent::time
uint64_t time
Definition: eventDefinitions.hpp:57
rtctk::componentFramework::CoordinationEvent::TOPIC_NAME
static const std::string TOPIC_NAME
Definition: eventDefinitions.hpp:295
rtctk::componentFramework::AbstractEvent::AbstractEvent
AbstractEvent(std::string const &origin)
Definition: eventDefinitions.hpp:45
rtctk::componentFramework::ComputationFinishedEvent
Event Type used to signal that a computation has finished.
Definition: eventDefinitions.hpp:113
rtctk::componentFramework::StateChangedEvent::StateChangedEvent
StateChangedEvent(std::string const &origin, std::string const &entity, std::string const &state)
Definition: eventDefinitions.hpp:314
rtctk::componentFramework::ComputationFinishedEvent::result
JsonPayload result
Definition: eventDefinitions.hpp:135
rtctk::componentFramework::ComputationEvent::item
std::string item
Definition: eventDefinitions.hpp:88
rtctk::componentFramework::AlertStatusEvent::Alert::since
std::uint64_t since
Timestamp when alert was first made active.
Definition: eventDefinitions.hpp:406
rtctk::componentFramework::HrtcStateChangedEvent::HrtcStateChangedEvent
HrtcStateChangedEvent(JsonPayload const &payload)
Definition: eventDefinitions.hpp:354
rtctk::componentFramework::HrtcConfigurationScheduledEvent::ToJson
JsonPayload ToJson() const
Definition: eventDefinitions.hpp:239
rtctk::componentFramework::CoordinationEvent::CoordinationEvent
CoordinationEvent(std::string const &origin)
Definition: eventDefinitions.hpp:297
rtctk::componentFramework::ConfigurationRetrievedEvent::ConfigurationRetrievedEvent
ConfigurationRetrievedEvent(std::string const &origin, std::vector< std::string > const &items)
Definition: eventDefinitions.hpp:202
rtctk::componentFramework::HrtcConfigurationAppliedEvent::hrtc_origin
std::string hrtc_origin
Definition: eventDefinitions.hpp:284
rtctk::componentFramework::ComputationEvent::ComputationEvent
ComputationEvent(JsonPayload const &payload)
Definition: eventDefinitions.hpp:76
rtctk::componentFramework::HrtcConfigurationAppliedEvent::hrtc_timestamp
uint64_t hrtc_timestamp
Definition: eventDefinitions.hpp:285
rtctk::componentFramework::ConfigurationEvent::ConfigurationEvent
ConfigurationEvent(std::string const &origin, std::string const &item, std::string const &state)
Definition: eventDefinitions.hpp:146
rtctk::componentFramework::StateChangedEvent::StateChangedEvent
StateChangedEvent(std::string const &origin, std::string const &state)
Definition: eventDefinitions.hpp:320
rtctk::componentFramework::ConfigurationRetrievedEvent
Event Type used to signal that a configuration data item was retrieved from RTR.
Definition: eventDefinitions.hpp:197
rtctk::componentFramework::JsonPayload
nlohmann::json JsonPayload
Type requirements:
Definition: jsonPayload.hpp:24
rtctk::componentFramework::ComputationEvent::state
std::string state
Definition: eventDefinitions.hpp:89
rtctk::componentFramework::HrtcConfigurationScheduledEvent
Event Type used to signal that a configuration data item was scheduled to be applied in HRTC.
Definition: eventDefinitions.hpp:220
rtctk::componentFramework::HrtcConfigurationScheduledEvent::hrtc_origin
std::string hrtc_origin
Definition: eventDefinitions.hpp:248
rtctk::componentFramework::HrtcStateChangedEvent::ToJson
JsonPayload ToJson() const
Definition: eventDefinitions.hpp:360
rtctk::componentFramework::StateChangedEvent::entity
std::string entity
Definition: eventDefinitions.hpp:336
rtctk::componentFramework::HrtcStateChangedEvent
Event Type used to signal that some entity in HRTC changed its state.
Definition: eventDefinitions.hpp:343
rtctk::componentFramework::HrtcConfigurationScheduledEvent::hrtc_timestamp
uint64_t hrtc_timestamp
Definition: eventDefinitions.hpp:249
rtctk::componentFramework::ConfigurationRetrievedEvent::ToJson
JsonPayload ToJson() const
Definition: eventDefinitions.hpp:209