![]() |
COSMOS core
1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
|
#include <jsondef.h>
Public Member Functions | |
| json11::Json | to_json () const |
| Convert class contents to JSON object. More... | |
| void | from_json (const string &s) |
| Set class contents from JSON string. More... | |
Public Attributes | |
| double | utc = 0. |
| char | node [40+1] = {} |
| char | proc [40+1] = {} |
| Heartbeat Agent Name. More... | |
| NetworkType | ntype = NetworkType::MULTICAST |
| char | addr [18] = {} |
| Protocol Address. More... | |
| uint16_t | port = 0 |
| AGENT port. More... | |
| uint32_t | bsz = 0 |
| Transfer buffer size. More... | |
| double | bprd = 0. |
| Heartbeat period in seconds. More... | |
| char | user [40+1] = {} |
| Agent User Name. More... | |
| float | cpu = 0. |
| Agent % CPU. More... | |
| float | memory = 0. |
| Agent % memory. More... | |
| double | jitter = 0. |
| Agent heartbeat jitter [sec]. More... | |
| bool | exists = true |
| Existence Flag (if beat exists then flag is set to true, false otherwise) More... | |
Process heartbeat. Detailed elements of a single heartbeat of a single process.
|
inline |
|
inline |
Set class contents from JSON string.
Parses the provided JSON-formatted string and sets the class data. String should be formatted like the string returned from to_json()
| s | JSON-formatted string to set class contents to |
| double beatstruc::utc = 0. |
Heartbeat timestamp
| char beatstruc::node[40+1] = {} |
Heartbeat Node Name
| char beatstruc::proc[40+1] = {} |
Heartbeat Agent Name.
| NetworkType beatstruc::ntype = NetworkType::MULTICAST |
| char beatstruc::addr[18] = {} |
Protocol Address.
| uint16_t beatstruc::port = 0 |
AGENT port.
| uint32_t beatstruc::bsz = 0 |
Transfer buffer size.
| double beatstruc::bprd = 0. |
Heartbeat period in seconds.
| char beatstruc::user[40+1] = {} |
Agent User Name.
| float beatstruc::cpu = 0. |
Agent % CPU.
| float beatstruc::memory = 0. |
Agent % memory.
| double beatstruc::jitter = 0. |
Agent heartbeat jitter [sec].
| bool beatstruc::exists = true |
Existence Flag (if beat exists then flag is set to true, false otherwise)