Reference documentation and code samples for the Stackdriver Monitoring V3 Client class ResourceGroup.
The resource submessage for group checks. It can be used instead of a monitored resource, when multiple resources are being monitored.
Generated from protobuf message google.monitoring.v3.UptimeCheckConfig.ResourceGroup
Namespace
Google \ Cloud \ Monitoring \ V3 \ UptimeCheckConfigMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ group_id |
string
The group of resources being monitored. Should be only the |
↳ resource_type |
int
The resource type of the group members. |
getGroupId
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]
.
Returns | |
---|---|
Type | Description |
string |
setGroupId
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]
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getResourceType
The resource type of the group members.
Returns | |
---|---|
Type | Description |
int |
setResourceType
The resource type of the group members.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |