Service Control API V1 API - Class Google::Cloud::ServiceControl::V1::MetricValue (v0.11.0)

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

#distribution_value=

def distribution_value=(value) -> ::Google::Cloud::ServiceControl::V1::Distribution
Parameter
Returns

#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

#end_time=

def end_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
Returns

#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

#start_time=

def start_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
Returns

#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.