Class: Google::Apis::WorkloadmanagerV1::WorkloadProfileHealth
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::WorkloadProfileHealth
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb
Overview
WorkloadProfileHealth contains the detailed health check of workload.
Instance Attribute Summary collapse
-
#check_time ⇒ String
The time when the health check was performed.
-
#components_health ⇒ Array<Google::Apis::WorkloadmanagerV1::ComponentHealth>
The detailed condition reports of each component.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WorkloadProfileHealth
constructor
A new instance of WorkloadProfileHealth.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ WorkloadProfileHealth
Returns a new instance of WorkloadProfileHealth.
4095 4096 4097 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4095 def initialize(**args) update!(**args) end |
Instance Attribute Details
#check_time ⇒ String
The time when the health check was performed.
Corresponds to the JSON property checkTime
4083 4084 4085 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4083 def check_time @check_time end |
#components_health ⇒ Array<Google::Apis::WorkloadmanagerV1::ComponentHealth>
The detailed condition reports of each component.
Corresponds to the JSON property componentsHealth
4088 4089 4090 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4088 def components_health @components_health end |
#state ⇒ String
Output only. The health state of the workload.
Corresponds to the JSON property state
4093 4094 4095 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4093 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4100 4101 4102 4103 4104 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4100 def update!(**args) @check_time = args[:check_time] if args.key?(:check_time) @components_health = args[:components_health] if args.key?(:components_health) @state = args[:state] if args.key?(:state) end |