Class: Google::Apis::CloudmonitoringV2beta2::Point
- Inherits:
-
Object
- Object
- Google::Apis::CloudmonitoringV2beta2::Point
- Defined in:
- generated/google/apis/cloudmonitoring_v2beta2/classes.rb,
generated/google/apis/cloudmonitoring_v2beta2/representations.rb,
generated/google/apis/cloudmonitoring_v2beta2/representations.rb
Overview
Point is a single point in a time series. It consists of a start time, an end time, and a value.
Instance Attribute Summary collapse
-
#bool_value ⇒ Boolean
(also: #bool_value?)
The value of this data point.
-
#distribution_value ⇒ Google::Apis::CloudmonitoringV2beta2::PointDistribution
Distribution data point value type.
-
#double_value ⇒ Float
The value of this data point as a double-precision floating-point number.
-
#end ⇒ DateTime
The interval [start, end] is the time period to which the point's value applies.
-
#int64_value ⇒ String
The value of this data point as a 64-bit integer.
-
#start ⇒ DateTime
The interval [start, end] is the time period to which the point's value applies.
-
#string_value ⇒ String
The value of this data point in string format.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Point
constructor
A new instance of Point.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Point
Returns a new instance of Point.
382 383 384 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 382 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bool_value ⇒ Boolean Also known as: bool_value?
The value of this data point. Either "true" or "false".
Corresponds to the JSON property boolValue
338 339 340 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 338 def bool_value @bool_value end |
#distribution_value ⇒ Google::Apis::CloudmonitoringV2beta2::PointDistribution
Distribution data point value type. When writing distribution points, try to
be consistent with the boundaries of your buckets. If you must modify the
bucket boundaries, then do so by merging, partitioning, or appending rather
than skewing them.
Corresponds to the JSON property distributionValue
347 348 349 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 347 def distribution_value @distribution_value end |
#double_value ⇒ Float
The value of this data point as a double-precision floating-point number.
Corresponds to the JSON property doubleValue
352 353 354 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 352 def double_value @double_value end |
#end ⇒ DateTime
The interval [start, end] is the time period to which the point's value
applies. For gauge metrics, whose values are instantaneous measurements, this
interval should be empty (start should equal end). For cumulative metrics (of
which deltas and rates are special cases), the interval should be non-empty.
Both start and end are RFC 3339 strings.
Corresponds to the JSON property end
361 362 363 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 361 def end @end end |
#int64_value ⇒ String
The value of this data point as a 64-bit integer.
Corresponds to the JSON property int64Value
366 367 368 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 366 def int64_value @int64_value end |
#start ⇒ DateTime
The interval [start, end] is the time period to which the point's value
applies. For gauge metrics, whose values are instantaneous measurements, this
interval should be empty (start should equal end). For cumulative metrics (of
which deltas and rates are special cases), the interval should be non-empty.
Both start and end are RFC 3339 strings.
Corresponds to the JSON property start
375 376 377 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 375 def start @start end |
#string_value ⇒ String
The value of this data point in string format.
Corresponds to the JSON property stringValue
380 381 382 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 380 def string_value @string_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
387 388 389 390 391 392 393 394 395 |
# File 'generated/google/apis/cloudmonitoring_v2beta2/classes.rb', line 387 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) @end = args[:end] if args.key?(:end) @int64_value = args[:int64_value] if args.key?(:int64_value) @start = args[:start] if args.key?(:start) @string_value = args[:string_value] if args.key?(:string_value) end |