Class: Google::Apis::DataflowV1b3::WorkerHealthReport
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::WorkerHealthReport
- 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
-
#msg ⇒ String
Message describing any unusual health reports.
-
#pods ⇒ Array<Hash<String,Object>>
The pods running on the worker.
-
#report_interval ⇒ String
The interval at which the worker is sending health reports.
-
#vm_broken_code ⇒ String
Code to describe a specific reason, if known, that a VM has reported broken state.
-
#vm_is_broken ⇒ Boolean
(also: #vm_is_broken?)
Whether the VM is in a permanently broken state.
-
#vm_is_healthy ⇒ Boolean
(also: #vm_is_healthy?)
Whether the VM is currently healthy.
-
#vm_startup_time ⇒ String
The time the VM was booted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WorkerHealthReport
constructor
A new instance of WorkerHealthReport.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WorkerHealthReport
Returns a new instance of WorkerHealthReport.
6803 6804 6805 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6803 def initialize(**args) update!(**args) end |
Instance Attribute Details
#msg ⇒ String
Message describing any unusual health reports.
Corresponds to the JSON property msg
6763 6764 6765 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6763 def msg @msg end |
#pods ⇒ Array<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
6770 6771 6772 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6770 def pods @pods end |
#report_interval ⇒ String
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
6777 6778 6779 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6777 def report_interval @report_interval end |
#vm_broken_code ⇒ String
Code to describe a specific reason, if known, that a VM has reported broken
state.
Corresponds to the JSON property vmBrokenCode
6783 6784 6785 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6783 def vm_broken_code @vm_broken_code end |
#vm_is_broken ⇒ Boolean 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
6789 6790 6791 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6789 def vm_is_broken @vm_is_broken end |
#vm_is_healthy ⇒ Boolean Also known as: vm_is_healthy?
Whether the VM is currently healthy.
Corresponds to the JSON property vmIsHealthy
6795 6796 6797 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6795 def vm_is_healthy @vm_is_healthy end |
#vm_startup_time ⇒ String
The time the VM was booted.
Corresponds to the JSON property vmStartupTime
6801 6802 6803 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6801 def vm_startup_time @vm_startup_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6808 6809 6810 6811 6812 6813 6814 6815 6816 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 6808 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 |