Class: Google::Apis::MonitoringV3::ResourceGroup
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::ResourceGroup
- 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
-
#group_id ⇒ String
The group of resources being monitored.
-
#resource_type ⇒ String
The resource type of the group members.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceGroup
constructor
A new instance of ResourceGroup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceGroup
Returns a new instance of ResourceGroup.
3778 3779 3780 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3778 def initialize(**args) update!(**args) end |
Instance Attribute Details
#group_id ⇒ String
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
3771 3772 3773 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3771 def group_id @group_id end |
#resource_type ⇒ String
The resource type of the group members.
Corresponds to the JSON property resourceType
3776 3777 3778 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3776 def resource_type @resource_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3783 3784 3785 3786 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 3783 def update!(**args) @group_id = args[:group_id] if args.key?(:group_id) @resource_type = args[:resource_type] if args.key?(:resource_type) end |