Stackdriver Monitoring V3 Client - Class CloudFunctionV2Target (1.11.0)

Reference documentation and code samples for the Stackdriver Monitoring V3 Client class CloudFunctionV2Target.

A Synthetic Monitor deployed to a Cloud Functions V2 instance.

Generated from protobuf message google.monitoring.v3.SyntheticMonitorTarget.CloudFunctionV2Target

Namespace

Google \ Cloud \ Monitoring \ V3 \ SyntheticMonitorTarget

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Required. Fully qualified GCFv2 resource name i.e. projects/{project}/locations/{location}/functions/{function} Required.

↳ cloud_run_revision Google\Api\MonitoredResource

Output only. The cloud_run_revision Monitored Resource associated with the GCFv2. The Synthetic Monitor execution results (metrics, logs, and spans) are reported against this Monitored Resource. This field is output only.

getName

Required. Fully qualified GCFv2 resource name i.e. projects/{project}/locations/{location}/functions/{function} Required.

Returns
Type Description
string

setName

Required. Fully qualified GCFv2 resource name i.e. projects/{project}/locations/{location}/functions/{function} Required.

Parameter
Name Description
var string
Returns
Type Description
$this

getCloudRunRevision

Output only. The cloud_run_revision Monitored Resource associated with the GCFv2. The Synthetic Monitor execution results (metrics, logs, and spans) are reported against this Monitored Resource. This field is output only.

Returns
Type Description
Google\Api\MonitoredResource|null

hasCloudRunRevision

clearCloudRunRevision

setCloudRunRevision

Output only. The cloud_run_revision Monitored Resource associated with the GCFv2. The Synthetic Monitor execution results (metrics, logs, and spans) are reported against this Monitored Resource. This field is output only.

Parameter
Name Description
var Google\Api\MonitoredResource
Returns
Type Description
$this