Class: Google::Apis::WorkloadmanagerV1::ComponentHealth
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::ComponentHealth
- 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
HealthCondition contains the detailed health check of each component.
Instance Attribute Summary collapse
-
#component ⇒ String
The component of a workload.
-
#component_health_checks ⇒ Array<Google::Apis::WorkloadmanagerV1::HealthCheck>
The detailed health checks of the component.
-
#component_health_type ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#sub_components_health ⇒ Array<Google::Apis::WorkloadmanagerV1::ComponentHealth>
Sub component health.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ComponentHealth
constructor
A new instance of ComponentHealth.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ComponentHealth
Returns a new instance of ComponentHealth.
765 766 767 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 765 def initialize(**args) update!(**args) end |
Instance Attribute Details
#component ⇒ String
The component of a workload.
Corresponds to the JSON property component
743 744 745 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 743 def component @component end |
#component_health_checks ⇒ Array<Google::Apis::WorkloadmanagerV1::HealthCheck>
The detailed health checks of the component.
Corresponds to the JSON property componentHealthChecks
748 749 750 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 748 def component_health_checks @component_health_checks end |
#component_health_type ⇒ String
Output only. The type of the component health.
Corresponds to the JSON property componentHealthType
753 754 755 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 753 def component_health_type @component_health_type end |
#state ⇒ String
Output only. The health state of the component.
Corresponds to the JSON property state
758 759 760 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 758 def state @state end |
#sub_components_health ⇒ Array<Google::Apis::WorkloadmanagerV1::ComponentHealth>
Sub component health.
Corresponds to the JSON property subComponentsHealth
763 764 765 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 763 def sub_components_health @sub_components_health end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
770 771 772 773 774 775 776 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 770 def update!(**args) @component = args[:component] if args.key?(:component) @component_health_checks = args[:component_health_checks] if args.key?(:component_health_checks) @component_health_type = args[:component_health_type] if args.key?(:component_health_type) @state = args[:state] if args.key?(:state) @sub_components_health = args[:sub_components_health] if args.key?(:sub_components_health) end |