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.



4098
4099
4100
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4098

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)


4086
4087
4088
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4086

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



4091
4092
4093
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4091

def components_health
  @components_health
end

#stateString

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

Returns:

  • (String)


4096
4097
4098
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4096

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4103
4104
4105
4106
4107
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 4103

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