Reference documentation and code samples for the Google Cloud Service Control V1 Client class MetricValue.
Represents a single metric value.
Generated from protobuf message google.api.servicecontrol.v1.MetricValue
Namespace
Google \ Cloud \ ServiceControl \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ labels
array| Google\Protobuf\Internal\MapField
The labels describing the metric value. See comments on google.api.servicecontrol.v1.Operation.labels for the overriding relationship. Note that this map must not contain monitored resource labels.
↳ start_time
Google\Protobuf\Timestamp
The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.
↳ end_time
Google\Protobuf\Timestamp
The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.
↳ bool_value
bool
A boolean value.
↳ int64_value
int|string
A signed 64-bit integer value.
↳ double_value
float
A double precision floating point value.
↳ string_value
string
A text string value.
↳ distribution_value
getLabels
The labels describing the metric value.
See comments on google.api.servicecontrol.v1.Operation.labels for the overriding relationship. Note that this map must not contain monitored resource labels.
setLabels
The labels describing the metric value.
See comments on google.api.servicecontrol.v1.Operation.labels for the overriding relationship. Note that this map must not contain monitored resource labels.
$this
getStartTime
The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.
hasStartTime
clearStartTime
setStartTime
The start of the time period over which this metric value's measurement applies. The time period has different semantics for different metric types (cumulative, delta, and gauge). See the metric definition documentation in the service configuration for details. If not specified, google.api.servicecontrol.v1.Operation.start_time will be used.
$this
getEndTime
The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.
hasEndTime
clearEndTime
setEndTime
The end of the time period over which this metric value's measurement applies. If not specified, google.api.servicecontrol.v1.Operation.end_time will be used.
$this
getBoolValue
A boolean value.
bool
hasBoolValue
setBoolValue
A boolean value.
var
bool
$this
getInt64Value
A signed 64-bit integer value.
int|string
hasInt64Value
setInt64Value
A signed 64-bit integer value.
var
int|string
$this
getDoubleValue
A double precision floating point value.
float
hasDoubleValue
setDoubleValue
A double precision floating point value.
var
float
$this
getStringValue
A text string value.
string
hasStringValue
setStringValue
A text string value.
var
string
$this
getDistributionValue
A distribution value.
hasDistributionValue
setDistributionValue
A distribution value.
$this
getValue
string