Class: Google::Apis::WorkloadmanagerV1::HealthCheck
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::HealthCheck
- 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
-
#message ⇒ String
Output only.
-
#metric ⇒ String
Output only.
-
#resource ⇒ Google::Apis::WorkloadmanagerV1::CloudResource
The resource on GCP Corresponds to the JSON property
resource. -
#source ⇒ String
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HealthCheck
constructor
A new instance of HealthCheck.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#message ⇒ String
Output only. The message of the health check.
Corresponds to the JSON property message
1407 1408 1409 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1407 def @message end |
#metric ⇒ String
Output only. The health check source metric name.
Corresponds to the JSON property metric
1412 1413 1414 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1412 def metric @metric end |
#resource ⇒ Google::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 |
#source ⇒ String
Output only. The source of the health check.
Corresponds to the JSON property source
1422 1423 1424 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1422 def source @source end |
#state ⇒ String
Output only. The state of the health check.
Corresponds to the JSON property state
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 |