#include <worker_health_report.h>
WorkerHealthReport contains information about the health of a worker.
The VM should be identified by the labels attached to the WorkerMessage that this health ping belongs to.
◆ WorkerHealthReport() [1/2]
google_dataflow_api::WorkerHealthReport::WorkerHealthReport |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ WorkerHealthReport() [2/2]
google_dataflow_api::WorkerHealthReport::WorkerHealthReport |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
◆ ~WorkerHealthReport()
google_dataflow_api::WorkerHealthReport::~WorkerHealthReport |
( |
| ) |
|
|
virtual |
◆ clear_msg()
void google_dataflow_api::WorkerHealthReport::clear_msg |
( |
| ) |
|
|
inline |
Clears the 'msg
' attribute.
◆ clear_pods()
void google_dataflow_api::WorkerHealthReport::clear_pods |
( |
| ) |
|
|
inline |
Clears the 'pods
' attribute.
◆ clear_report_interval()
void google_dataflow_api::WorkerHealthReport::clear_report_interval |
( |
| ) |
|
|
inline |
Clears the 'reportInterval
' attribute.
◆ clear_vm_is_broken()
void google_dataflow_api::WorkerHealthReport::clear_vm_is_broken |
( |
| ) |
|
|
inline |
Clears the 'vmIsBroken
' attribute.
◆ clear_vm_is_healthy()
void google_dataflow_api::WorkerHealthReport::clear_vm_is_healthy |
( |
| ) |
|
|
inline |
Clears the 'vmIsHealthy
' attribute.
◆ clear_vm_startup_time()
void google_dataflow_api::WorkerHealthReport::clear_vm_startup_time |
( |
| ) |
|
|
inline |
Clears the 'vmStartupTime
' attribute.
◆ get_msg()
const StringPiece google_dataflow_api::WorkerHealthReport::get_msg |
( |
| ) |
const |
|
inline |
Get the value of the 'msg
' attribute.
◆ get_pods()
const client::JsonCppArray<client::JsonCppAssociativeArray<client::JsonCppData > > google_dataflow_api::WorkerHealthReport::get_pods |
( |
| ) |
const |
|
inline |
Get a reference to the value of the 'pods
' attribute.
◆ get_report_interval()
const StringPiece google_dataflow_api::WorkerHealthReport::get_report_interval |
( |
| ) |
const |
|
inline |
Get the value of the 'reportInterval
' attribute.
◆ get_vm_is_broken()
bool google_dataflow_api::WorkerHealthReport::get_vm_is_broken |
( |
| ) |
const |
|
inline |
Get the value of the 'vmIsBroken
' attribute.
◆ get_vm_is_healthy()
bool google_dataflow_api::WorkerHealthReport::get_vm_is_healthy |
( |
| ) |
const |
|
inline |
Get the value of the 'vmIsHealthy
' attribute.
◆ get_vm_startup_time()
const StringPiece google_dataflow_api::WorkerHealthReport::get_vm_startup_time |
( |
| ) |
const |
|
inline |
Get the value of the 'vmStartupTime
' attribute.
◆ GetTypeName()
const StringPiece google_dataflow_api::WorkerHealthReport::GetTypeName |
( |
| ) |
const |
|
inline |
◆ has_msg()
bool google_dataflow_api::WorkerHealthReport::has_msg |
( |
| ) |
const |
|
inline |
Determine if the 'msg
' attribute was set.
- Returns
- true if the '
msg
' attribute was set.
◆ has_pods()
bool google_dataflow_api::WorkerHealthReport::has_pods |
( |
| ) |
const |
|
inline |
Determine if the 'pods
' attribute was set.
- Returns
- true if the '
pods
' attribute was set.
◆ has_report_interval()
bool google_dataflow_api::WorkerHealthReport::has_report_interval |
( |
| ) |
const |
|
inline |
Determine if the 'reportInterval
' attribute was set.
- Returns
- true if the '
reportInterval
' attribute was set.
◆ has_vm_is_broken()
bool google_dataflow_api::WorkerHealthReport::has_vm_is_broken |
( |
| ) |
const |
|
inline |
Determine if the 'vmIsBroken
' attribute was set.
- Returns
- true if the '
vmIsBroken
' attribute was set.
◆ has_vm_is_healthy()
bool google_dataflow_api::WorkerHealthReport::has_vm_is_healthy |
( |
| ) |
const |
|
inline |
Determine if the 'vmIsHealthy
' attribute was set.
- Returns
- true if the '
vmIsHealthy
' attribute was set.
◆ has_vm_startup_time()
bool google_dataflow_api::WorkerHealthReport::has_vm_startup_time |
( |
| ) |
const |
|
inline |
Determine if the 'vmStartupTime
' attribute was set.
- Returns
- true if the '
vmStartupTime
' attribute was set.
◆ mutable_pods()
client::JsonCppArray<client::JsonCppAssociativeArray<client::JsonCppData > > google_dataflow_api::WorkerHealthReport::mutable_pods |
( |
| ) |
|
|
inline |
◆ New()
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
◆ set_msg()
void google_dataflow_api::WorkerHealthReport::set_msg |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'msg
' attribute.
A message describing any unusual health reports.
- Parameters
-
◆ set_report_interval()
void google_dataflow_api::WorkerHealthReport::set_report_interval |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'reportInterval
' attribute.
The interval at which the worker is sending health reports. The default value of 0 should be interpreted as the field is not being explicitly set by the worker.
- Parameters
-
◆ set_vm_is_broken()
void google_dataflow_api::WorkerHealthReport::set_vm_is_broken |
( |
bool |
value | ) |
|
|
inline |
Change the 'vmIsBroken
' attribute.
Whether the VM is in a permanently broken state. Broken VMs should be abandoned or deleted ASAP to avoid assigning or completing any work.
- Parameters
-
◆ set_vm_is_healthy()
void google_dataflow_api::WorkerHealthReport::set_vm_is_healthy |
( |
bool |
value | ) |
|
|
inline |
Change the 'vmIsHealthy
' attribute.
Whether the VM is currently healthy.
- Parameters
-
◆ set_vm_startup_time()
void google_dataflow_api::WorkerHealthReport::set_vm_startup_time |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'vmStartupTime
' attribute.
The time the VM was booted.
- Parameters
-
The documentation for this class was generated from the following files: