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
-
(::Boolean) — A boolean value.
Note: The following fields are mutually exclusive:
bool_value
,int64_value
,double_value
,string_value
,distribution_value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#bool_value=
def bool_value=(value) -> ::Boolean
-
value (::Boolean) — A boolean value.
Note: The following fields are mutually exclusive:
bool_value
,int64_value
,double_value
,string_value
,distribution_value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Boolean) — A boolean value.
Note: The following fields are mutually exclusive:
bool_value
,int64_value
,double_value
,string_value
,distribution_value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#distribution_value
def distribution_value() -> ::Google::Cloud::ServiceControl::V1::Distribution
-
(::Google::Cloud::ServiceControl::V1::Distribution) — A distribution value.
Note: The following fields are mutually exclusive:
distribution_value
,bool_value
,int64_value
,double_value
,string_value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#distribution_value=
def distribution_value=(value) -> ::Google::Cloud::ServiceControl::V1::Distribution
-
value (::Google::Cloud::ServiceControl::V1::Distribution) — A distribution value.
Note: The following fields are mutually exclusive:
distribution_value
,bool_value
,int64_value
,double_value
,string_value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::ServiceControl::V1::Distribution) — A distribution value.
Note: The following fields are mutually exclusive:
distribution_value
,bool_value
,int64_value
,double_value
,string_value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#double_value
def double_value() -> ::Float
-
(::Float) — A double precision floating point value.
Note: The following fields are mutually exclusive:
double_value
,bool_value
,int64_value
,string_value
,distribution_value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#double_value=
def double_value=(value) -> ::Float
-
value (::Float) — A double precision floating point value.
Note: The following fields are mutually exclusive:
double_value
,bool_value
,int64_value
,string_value
,distribution_value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Float) — A double precision floating point value.
Note: The following fields are mutually exclusive:
double_value
,bool_value
,int64_value
,string_value
,distribution_value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#end_time
def end_time() -> ::Google::Protobuf::Timestamp
- (::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
- 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.
- (::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
-
(::Integer) — A signed 64-bit integer value.
Note: The following fields are mutually exclusive:
int64_value
,bool_value
,double_value
,string_value
,distribution_value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#int64_value=
def int64_value=(value) -> ::Integer
-
value (::Integer) — A signed 64-bit integer value.
Note: The following fields are mutually exclusive:
int64_value
,bool_value
,double_value
,string_value
,distribution_value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Integer) — A signed 64-bit integer value.
Note: The following fields are mutually exclusive:
int64_value
,bool_value
,double_value
,string_value
,distribution_value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
- (::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}
- 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.
- (::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
- (::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
- 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.
- (::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
-
(::String) — A text string value.
Note: The following fields are mutually exclusive:
string_value
,bool_value
,int64_value
,double_value
,distribution_value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#string_value=
def string_value=(value) -> ::String
-
value (::String) — A text string value.
Note: The following fields are mutually exclusive:
string_value
,bool_value
,int64_value
,double_value
,distribution_value
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — A text string value.
Note: The following fields are mutually exclusive:
string_value
,bool_value
,int64_value
,double_value
,distribution_value
. If a field in that set is populated, all other fields in the set will automatically be cleared.