Class: Google::Apis::MonitoringV3::TypedValue

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TypedValue

Returns a new instance of TypedValue



1168
1169
1170
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1168

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bool_valueBoolean Also known as: bool_value?

A Boolean value: true or false. Corresponds to the JSON property boolValue

Returns:

  • (Boolean)


1160
1161
1162
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1160

def bool_value
  @bool_value
end

#distribution_valueGoogle::Apis::MonitoringV3::Distribution

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



1155
1156
1157
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1155

def distribution_value
  @distribution_value
end

#double_valueFloat

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

Returns:

  • (Float)


1135
1136
1137
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1135

def double_value
  @double_value
end

#int64_valueFixnum

A 64-bit integer. Its range is approximately ±9.2x1018. Corresponds to the JSON property int64Value

Returns:

  • (Fixnum)


1140
1141
1142
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1140

def int64_value
  @int64_value
end

#string_valueString

A variable-length string value. Corresponds to the JSON property stringValue

Returns:

  • (String)


1166
1167
1168
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1166

def string_value
  @string_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1173
1174
1175
1176
1177
1178
1179
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1173

def update!(**args)
  @double_value = args[:double_value] if args.key?(:double_value)
  @int64_value = args[:int64_value] if args.key?(:int64_value)
  @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
  @bool_value = args[:bool_value] if args.key?(:bool_value)
  @string_value = args[:string_value] if args.key?(:string_value)
end