Google API Common Protos Client - Class MonitoringDestination (4.12.5)

Reference documentation and code samples for the Google API Common Protos Client class MonitoringDestination.

Configuration of a specific monitoring destination (the producer project or the consumer project).

Generated from protobuf message google.api.Monitoring.MonitoringDestination

Namespace

Google \ Api \ Monitoring

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ monitored_resource string

The monitored resource type. The type must be defined in Service.monitored_resources section.

↳ metrics string[]

Types of the metrics to report to this monitoring destination. Each type must be defined in Service.metrics section.

getMonitoredResource

The monitored resource type. The type must be defined in Service.monitored_resources section.

Returns
Type Description
string

setMonitoredResource

The monitored resource type. The type must be defined in Service.monitored_resources section.

Parameter
Name Description
var string
Returns
Type Description
$this

getMetrics

Types of the metrics to report to this monitoring destination.

Each type must be defined in Service.metrics section.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setMetrics

Types of the metrics to report to this monitoring destination.

Each type must be defined in Service.metrics section.

Parameter
Name Description
var string[]
Returns
Type Description
$this