Class: Google::Apis::WorkloadmanagerV1::WorkloadProfileHealth

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

WorkloadProfileHealth contains the detailed health check of workload.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_timeString

The time when the health check was performed. Corresponds to the JSON property checkTime

Returns:

  • (String)


4083
4084
4085
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4083

def check_time
  @check_time
end

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

#stateString

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

Returns:

  • (String)


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