Stackdriver Monitoring V3 Client - Class ResourceGroup (1.8.0)

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 \ UptimeCheckConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ 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].

↳ 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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getResourceType

The resource type of the group members.

Returns
TypeDescription
int

setResourceType

The resource type of the group members.

Parameter
NameDescription
var int
Returns
TypeDescription
$this