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 \ ApiMethods
__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, |
↳ labels |
array|Google\Protobuf\Internal\MapField
The set of label values that uniquely identify this metric. All labels listed in the |
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 |
Google\Protobuf\Internal\MapField |
setLabels
The set of label values that uniquely identify this metric. All
labels listed in the MetricDescriptor
must be assigned values.
Parameter | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$this |