class Google::Apis::DataflowV1b3::WorkerHealthReport

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.

Attributes

msg[RW]

Message describing any unusual health reports. Corresponds to the JSON property `msg` @return [String]

pods[RW]

The pods running on the worker. See: 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` @return [Array<Hash<String,Object>>]

report_interval[RW]

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` @return [String]

vm_broken_code[RW]

Code to describe a specific reason, if known, that a VM has reported broken state. Corresponds to the JSON property `vmBrokenCode` @return [String]

vm_is_broken[RW]

Whether the VM is in a permanently broken state. Broken VMs should be abandoned or deleted ASAP to avoid assigning or completing any work. Corresponds to the JSON property `vmIsBroken` @return [Boolean]

vm_is_broken?[RW]

Whether the VM is in a permanently broken state. Broken VMs should be abandoned or deleted ASAP to avoid assigning or completing any work. Corresponds to the JSON property `vmIsBroken` @return [Boolean]

vm_is_healthy[RW]

Whether the VM is currently healthy. Corresponds to the JSON property `vmIsHealthy` @return [Boolean]

vm_is_healthy?[RW]

Whether the VM is currently healthy. Corresponds to the JSON property `vmIsHealthy` @return [Boolean]

vm_startup_time[RW]

The time the VM was booted. Corresponds to the JSON property `vmStartupTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dataflow_v1b3/classes.rb, line 6234
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dataflow_v1b3/classes.rb, line 6239
def update!(**args)
  @msg = args[:msg] if args.key?(:msg)
  @pods = args[:pods] if args.key?(:pods)
  @report_interval = args[:report_interval] if args.key?(:report_interval)
  @vm_broken_code = args[:vm_broken_code] if args.key?(:vm_broken_code)
  @vm_is_broken = args[:vm_is_broken] if args.key?(:vm_is_broken)
  @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)
end