Class: Google::Apis::DataflowV1b3::WorkerHealthReport

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dataflow_v1b3/classes.rb,
generated/google/apis/dataflow_v1b3/representations.rb,
generated/google/apis/dataflow_v1b3/representations.rb

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ WorkerHealthReport

Returns a new instance of WorkerHealthReport.



3890
3891
3892
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3890

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#podsArray<Hash<String,Object>>

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. Corresponds to the JSON property pods

Returns:

  • (Array<Hash<String,Object>>)


3888
3889
3890
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3888

def pods
  @pods
end

#report_intervalString

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. Corresponds to the JSON property reportInterval

Returns:

  • (String)


3881
3882
3883
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3881

def report_interval
  @report_interval
end

#vm_is_healthyBoolean Also known as: vm_is_healthy?

Whether the VM is healthy. Corresponds to the JSON property vmIsHealthy

Returns:

  • (Boolean)


3868
3869
3870
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3868

def vm_is_healthy
  @vm_is_healthy
end

#vm_startup_timeString

The time the VM was booted. Corresponds to the JSON property vmStartupTime

Returns:

  • (String)


3874
3875
3876
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3874

def vm_startup_time
  @vm_startup_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3895
3896
3897
3898
3899
3900
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3895

def update!(**args)
  @vm_is_healthy = args[:vm_is_healthy] if args.key?(:vm_is_healthy)
  @vm_startup_time = args[:vm_startup_time] if args.key?(:vm_startup_time)
  @report_interval = args[:report_interval] if args.key?(:report_interval)
  @pods = args[:pods] if args.key?(:pods)
end