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.



765
766
767
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 765

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#componentString

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

Returns:

  • (String)


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

def component
  @component
end

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

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

Returns:

  • (String)


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

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)


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

def state
  @state
end

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