Reference documentation and code samples for the Service Control API V1 API class Google::Cloud::ServiceControl::V1::MetricValue.
Represents a single metric value.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#bool_value
def bool_value() -> ::Boolean
Returns
- (::Boolean) — A boolean value.
#bool_value=
def bool_value=(value) -> ::Boolean
Parameter
- value (::Boolean) — A boolean value.
Returns
- (::Boolean) — A boolean value.
#distribution_value
def distribution_value() -> ::Google::Cloud::ServiceControl::V1::Distribution
Returns
- (::Google::Cloud::ServiceControl::V1::Distribution) — A distribution value.
#distribution_value=
def distribution_value=(value) -> ::Google::Cloud::ServiceControl::V1::Distribution
Parameter
- value (::Google::Cloud::ServiceControl::V1::Distribution) — A distribution value.
Returns
- (::Google::Cloud::ServiceControl::V1::Distribution) — A distribution value.
#double_value
def double_value() -> ::Float
Returns
- (::Float) — A double precision floating point value.
#double_value=
def double_value=(value) -> ::Float
Parameter
- value (::Float) — A double precision floating point value.
Returns
- (::Float) — A double precision floating point value.
#end_time
def end_time() -> ::Google::Protobuf::Timestamp
Returns
- (::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.
#end_time=
def end_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::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.
Returns
- (::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.
#int64_value
def int64_value() -> ::Integer
Returns
- (::Integer) — A signed 64-bit integer value.
#int64_value=
def int64_value=(value) -> ::Integer
Parameter
- value (::Integer) — A signed 64-bit integer value.
Returns
- (::Integer) — A signed 64-bit integer value.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
- (::Google::Protobuf::Map{::String => ::String}) — 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.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
- value (::Google::Protobuf::Map{::String => ::String}) — 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.
Returns
- (::Google::Protobuf::Map{::String => ::String}) — 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
def start_time() -> ::Google::Protobuf::Timestamp
Returns
- (::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.
#start_time=
def start_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::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.
Returns
- (::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.
#string_value
def string_value() -> ::String
Returns
- (::String) — A text string value.
#string_value=
def string_value=(value) -> ::String
Parameter
- value (::String) — A text string value.
Returns
- (::String) — A text string value.