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.
764 765 766 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 764 def initialize(**args) update!(**args) end |
Instance Attribute Details
#component ⇒ String
The component of a workload.
Corresponds to the JSON property component
742 743 744 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 742 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
747 748 749 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 747 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
752 753 754 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 752 def component_health_type @component_health_type end |
#state ⇒ String
Output only. The health state of the component.
Corresponds to the JSON property state
757 758 759 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 757 def state @state end |
#sub_components_health ⇒ Array<Google::Apis::WorkloadmanagerV1::ComponentHealth>
Sub component health.
Corresponds to the JSON property subComponentsHealth
762 763 764 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 762 def sub_components_health @sub_components_health end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
769 770 771 772 773 774 775 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 769 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 |