Class: Google::Apis::WorkloadmanagerV1::HealthCheck

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

HealthCheck contains the detailed health check of a component based on asource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HealthCheck

Returns a new instance of HealthCheck.



1429
1430
1431
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1429

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

Instance Attribute Details

#messageString

Output only. The message of the health check. Corresponds to the JSON property message

Returns:

  • (String)


1407
1408
1409
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1407

def message
  @message
end

#metricString

Output only. The health check source metric name. Corresponds to the JSON property metric

Returns:

  • (String)


1412
1413
1414
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1412

def metric
  @metric
end

#resourceGoogle::Apis::WorkloadmanagerV1::CloudResource

The resource on GCP Corresponds to the JSON property resource



1417
1418
1419
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1417

def resource
  @resource
end

#sourceString

Output only. The source of the health check. Corresponds to the JSON property source

Returns:

  • (String)


1422
1423
1424
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1422

def source
  @source
end

#stateString

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

Returns:

  • (String)


1427
1428
1429
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1427

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1434
1435
1436
1437
1438
1439
1440
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1434

def update!(**args)
  @message = args[:message] if args.key?(:message)
  @metric = args[:metric] if args.key?(:metric)
  @resource = args[:resource] if args.key?(:resource)
  @source = args[:source] if args.key?(:source)
  @state = args[:state] if args.key?(:state)
end