Class: Google::Apis::WorkloadmanagerV1::ComponentHealth

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#componentString

The component of a workload. Corresponds to the JSON property component

Returns:

  • (String)


742
743
744
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 742

def component
  @component
end

#component_health_checksArray<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_typeString

Output only. The type of the component health. Corresponds to the JSON property componentHealthType

Returns:

  • (String)


752
753
754
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 752

def component_health_type
  @component_health_type
end

#stateString

Output only. The health state of the component. Corresponds to the JSON property state

Returns:

  • (String)


757
758
759
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 757

def state
  @state
end

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