class Google::Apis::CloudmonitoringV2beta2::Point

Point is a single point in a time series. It consists of a start time, an end time, and a value.

Attributes

bool_value[RW]

The value of this data point. Either “true” or “false”. Corresponds to the JSON property `boolValue` @return [Boolean]

bool_value?[RW]

The value of this data point. Either “true” or “false”. Corresponds to the JSON property `boolValue` @return [Boolean]

distribution_value[RW]

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` @return [Google::Apis::CloudmonitoringV2beta2::PointDistribution]

double_value[RW]

The value of this data point as a double-precision floating-point number. Corresponds to the JSON property `doubleValue` @return [Float]

end[RW]

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

int64_value[RW]

The value of this data point as a 64-bit integer. Corresponds to the JSON property `int64Value` @return [String]

start[RW]

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

string_value[RW]

The value of this data point in string format. Corresponds to the JSON property `stringValue` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# 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