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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ ResourceGroup

Returns a new instance of ResourceGroup.



4021
4022
4023
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4021

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

Instance Attribute Details

#group_idString

The group of resources being monitored. Should be only the [GROUP_ID], and not the full-path projects/[PROJECT_ID_OR_NUMBER]/groups/[GROUP_ID]. Corresponds to the JSON property groupId

Returns:

  • (String)


4014
4015
4016
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4014

def group_id
  @group_id
end

#resource_typeString

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

Returns:

  • (String)


4019
4020
4021
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4019

def resource_type
  @resource_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4026
4027
4028
4029
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4026

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