Class MetricValue (1.0.3)

MetricValue(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a single metric value. .. attribute:: labels

The labels describing the metric value. See comments on google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for the overriding relationship. Note that this map must not contain monitored resource labels.

:type: Sequence[google.cloud.servicecontrol_v1.types.MetricValue.LabelsEntry]

Attributes

NameDescription
start_time google.protobuf.timestamp_pb2.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][google.api.servicecontrol.v1.Operation.start_time] will be used.
end_time google.protobuf.timestamp_pb2.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][google.api.servicecontrol.v1.Operation.end_time] will be used.
bool_value bool
A boolean value.
int64_value int
A signed 64-bit integer value.
double_value float
A double precision floating point value.
string_value str
A text string value.
distribution_value google.cloud.servicecontrol_v1.types.Distribution
A distribution value.

Classes

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.