dataflow  v1b3
Public Member Functions | Static Public Member Functions | List of all members
google_dataflow_api::WorkerHealthReport Class Reference

#include <worker_health_report.h>

Inheritance diagram for google_dataflow_api::WorkerHealthReport:

Public Member Functions

 WorkerHealthReport (const Json::Value &storage)
 
 WorkerHealthReport (Json::Value *storage)
 
virtual ~WorkerHealthReport ()
 
const StringPiece GetTypeName () const
 
bool has_msg () const
 
void clear_msg ()
 
const StringPiece get_msg () const
 
void set_msg (const StringPiece &value)
 
bool has_pods () const
 
void clear_pods ()
 
const client::JsonCppArray< client::JsonCppAssociativeArray< client::JsonCppData > > get_pods () const
 
client::JsonCppArray< client::JsonCppAssociativeArray< client::JsonCppData > > mutable_pods ()
 
bool has_report_interval () const
 
void clear_report_interval ()
 
const StringPiece get_report_interval () const
 
void set_report_interval (const StringPiece &value)
 
bool has_vm_is_broken () const
 
void clear_vm_is_broken ()
 
bool get_vm_is_broken () const
 
void set_vm_is_broken (bool value)
 
bool has_vm_is_healthy () const
 
void clear_vm_is_healthy ()
 
bool get_vm_is_healthy () const
 
void set_vm_is_healthy (bool value)
 
bool has_vm_startup_time () const
 
void clear_vm_startup_time ()
 
const StringPiece get_vm_startup_time () const
 
void set_vm_startup_time (const StringPiece &value)
 

Static Public Member Functions

static WorkerHealthReportNew ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ WorkerHealthReport() [1/2]

google_dataflow_api::WorkerHealthReport::WorkerHealthReport ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe 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]storageThe underlying data storage for this instance.

◆ ~WorkerHealthReport()

google_dataflow_api::WorkerHealthReport::~WorkerHealthReport ( )
virtual

Standard destructor.

Member Function Documentation

◆ 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

Returns a string denoting the type of this data object.

Returns
google_dataflow_api::WorkerHealthReport

◆ 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

Gets a reference to a mutable value of the 'pods' property.

The pods running on the worker. See: http://kubernetes.io/v1.1/docs/api-reference/v1/definitions.html#_v1_pod

This field is used by the worker to send the status of the indvidual containers running on each worker.

Returns
The result can be modified to change the attribute value.

◆ New()

WorkerHealthReport * google_dataflow_api::WorkerHealthReport::New ( )
static

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
[in]valueThe new value.

◆ 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
[in]valueThe new value.

◆ 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
[in]valueThe new value.

◆ 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
[in]valueThe new value.

◆ 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
[in]valueThe new value.

The documentation for this class was generated from the following files: