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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ WorkerHealthReport

Returns a new instance of WorkerHealthReport.



6541
6542
6543
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6541

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

Instance Attribute Details

#msgString

Message describing any unusual health reports. Corresponds to the JSON property msg

Returns:

  • (String)


6501
6502
6503
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6501

def msg
  @msg
end

#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>>)


6508
6509
6510
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6508

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)


6515
6516
6517
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6515

def report_interval
  @report_interval
end

#vm_broken_codeString

Code to describe a specific reason, if known, that a VM has reported broken state. Corresponds to the JSON property vmBrokenCode

Returns:

  • (String)


6521
6522
6523
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6521

def vm_broken_code
  @vm_broken_code
end

#vm_is_brokenBoolean Also known as: vm_is_broken?

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

Returns:

  • (Boolean)


6527
6528
6529
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6527

def vm_is_broken
  @vm_is_broken
end

#vm_is_healthyBoolean Also known as: vm_is_healthy?

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

Returns:

  • (Boolean)


6533
6534
6535
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6533

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)


6539
6540
6541
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6539

def vm_startup_time
  @vm_startup_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6546
6547
6548
6549
6550
6551
6552
6553
6554
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6546

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