Class MetricValue

Represents a single metric value.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes
NameDescription
Sequence[google.cloud.servicecontrol_v1.types.MetricValue.LabelsEntry]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.
google.protobuf.timestamp_pb2.Timestampstart_time
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.
google.protobuf.timestamp_pb2.Timestampend_time
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.
boolbool_value
A boolean value. This field is a member of `oneof`_ ``value``.
intint64_value
A signed 64-bit integer value. This field is a member of `oneof`_ ``value``.
floatdouble_value
A double precision floating point value. This field is a member of `oneof`_ ``value``.
strstring_value
A text string value. This field is a member of `oneof`_ ``value``.
google.cloud.servicecontrol_v1.types.Distributiondistribution_value
A distribution value. This field is a member of `oneof`_ ``value``.

Inheritance

builtins.object > proto.message.Message > MetricValue

Classes

LabelsEntry

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

API documentation for servicecontrol_v1.types.MetricValue.LabelsEntry class.