Class: Google::Apis::MonitoringV3::TypedValue
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::TypedValue
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/monitoring_v3/classes.rb,
generated/google/apis/monitoring_v3/representations.rb,
generated/google/apis/monitoring_v3/representations.rb
Overview
A single strongly-typed value.
Instance Attribute Summary collapse
-
#bool_value ⇒ Boolean
(also: #bool_value?)
A Boolean value: true or false.
-
#distribution_value ⇒ Google::Apis::MonitoringV3::Distribution
Distribution contains summary statistics for a population of values and, optionally, a histogram representing the distribution of those values across a specified set of histogram buckets.The summary statistics are the count, mean, sum of the squared deviation from the mean, the minimum, and the maximum of the set of population of values.The histogram is based on a sequence of buckets and gives a count of values that fall into each bucket.
-
#double_value ⇒ Float
A 64-bit double-precision floating-point number.
-
#int64_value ⇒ String
A 64-bit integer.
-
#string_value ⇒ String
A variable-length string value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TypedValue
constructor
A new instance of TypedValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TypedValue
Returns a new instance of TypedValue.
917 918 919 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 917 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bool_value ⇒ Boolean Also known as: bool_value?
A Boolean value: true or false.
Corresponds to the JSON property boolValue
882 883 884 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 882 def bool_value @bool_value end |
#distribution_value ⇒ Google::Apis::MonitoringV3::Distribution
Distribution contains summary statistics for a population of values and,
optionally, a histogram representing the distribution of those values across a
specified set of histogram buckets.The summary statistics are the count, mean,
sum of the squared deviation from the mean, the minimum, and the maximum of
the set of population of values.The histogram is based on a sequence of
buckets and gives a count of values that fall into each bucket. The boundaries
of the buckets are given either explicitly or by specifying parameters for a
method of computing them (buckets of fixed width or buckets of exponentially
increasing width).Although it is not forbidden, it is generally a bad idea to
include non-finite values (infinities or NaNs) in the population of values, as
this will render the mean and sum_of_squared_deviation fields meaningless.
Corresponds to the JSON property distributionValue
915 916 917 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 915 def distribution_value @distribution_value end |
#double_value ⇒ Float
A 64-bit double-precision floating-point number. Its magnitude is
approximately ±10±300 and it has 16 significant
digits of precision.
Corresponds to the JSON property doubleValue
900 901 902 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 900 def double_value @double_value end |
#int64_value ⇒ String
A 64-bit integer. Its range is approximately ±9.2x1018.
Corresponds to the JSON property int64Value
893 894 895 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 893 def int64_value @int64_value end |
#string_value ⇒ String
A variable-length string value.
Corresponds to the JSON property stringValue
888 889 890 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 888 def string_value @string_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
922 923 924 925 926 927 928 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 922 def update!(**args) @bool_value = args[:bool_value] if args.key?(:bool_value) @string_value = args[:string_value] if args.key?(:string_value) @int64_value = args[:int64_value] if args.key?(:int64_value) @double_value = args[:double_value] if args.key?(:double_value) @distribution_value = args[:distribution_value] if args.key?(:distribution_value) end |