Google API Common Protos Client - Class Metric (4.12.3)

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

A specific metric, identified by specifying values for all of the labels of a MetricDescriptor .

Generated from protobuf message google.api.Metric

Namespace

Google \ Api

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ type
string

An existing metric type, see google.api.MetricDescriptor . For example, custom.googleapis.com/invoice/paid/amount .

↳ labels
array| Google\Protobuf\Internal\MapField

The set of label values that uniquely identify this metric. All labels listed in the MetricDescriptor must be assigned values.

getType

An existing metric type, see google.api.MetricDescriptor . For example, custom.googleapis.com/invoice/paid/amount .

Returns
Type
Description
string

setType

An existing metric type, see google.api.MetricDescriptor . For example, custom.googleapis.com/invoice/paid/amount .

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getLabels

The set of label values that uniquely identify this metric. All labels listed in the MetricDescriptor must be assigned values.

Returns
Type
Description

setLabels

The set of label values that uniquely identify this metric. All labels listed in the MetricDescriptor must be assigned values.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: