Class: Google::Apis::MonitoringV3::ResourceGroup

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/monitoring_v3/classes.rb,
generated/google/apis/monitoring_v3/representations.rb,
generated/google/apis/monitoring_v3/representations.rb

Overview

The resource submessage for group checks. It can be used instead of a monitored resource, when multiple resources are being monitored.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ResourceGroup

Returns a new instance of ResourceGroup



2398
2399
2400
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2398

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

Instance Attribute Details

#group_idString

The group of resources being monitored. Should be only the group_id, not projects//groups/. Corresponds to the JSON property groupId

Returns:

  • (String)


2391
2392
2393
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2391

def group_id
  @group_id
end

#resource_typeString

The resource type of the group members. Corresponds to the JSON property resourceType

Returns:

  • (String)


2396
2397
2398
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2396

def resource_type
  @resource_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2403
2404
2405
2406
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2403

def update!(**args)
  @group_id = args[:group_id] if args.key?(:group_id)
  @resource_type = args[:resource_type] if args.key?(:resource_type)
end