Stackdriver Monitoring V3 Client - Class ResourceGroup (1.2.2)

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

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

Generated from protobuf field string group_id = 1;

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

Generated from protobuf field string group_id = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getResourceType

The resource type of the group members.

Generated from protobuf field .google.monitoring.v3.GroupResourceType resource_type = 2;

Returns
TypeDescription
int

setResourceType

The resource type of the group members.

Generated from protobuf field .google.monitoring.v3.GroupResourceType resource_type = 2;

Parameter
NameDescription
var int
Returns
TypeDescription
$this