class Google::Apis::MonitoringV3::TypedValue

A single strongly-typed value.

Attributes

bool_value[RW]

A Boolean value: true or false. Corresponds to the JSON property `boolValue` @return [Boolean]

bool_value?[RW]

A Boolean value: true or false. Corresponds to the JSON property `boolValue` @return [Boolean]

distribution_value[RW]

Distribution contains summary statistics for a population of values. It optionally contains a histogram representing the distribution of those values across a set of 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 formulas for buckets of fixed or exponentially increasing widths.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` @return [Google::Apis::MonitoringV3::Distribution]

double_value[RW]

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` @return [Float]

int64_value[RW]

A 64-bit integer. Its range is approximately ±9.2x1018. Corresponds to the JSON property `int64Value` @return [Fixnum]

string_value[RW]

A variable-length string value. Corresponds to the JSON property `stringValue` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/monitoring_v3/classes.rb, line 4488
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/monitoring_v3/classes.rb, line 4493
def update!(**args)
  @bool_value = args[:bool_value] if args.key?(:bool_value)
  @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
  @double_value = args[:double_value] if args.key?(:double_value)
  @int64_value = args[:int64_value] if args.key?(:int64_value)
  @string_value = args[:string_value] if args.key?(:string_value)
end