class Google::Apis::MonitoringV3::ValueDescriptor

A descriptor for the value columns in a data point.

Attributes

key[RW]

The value key. Corresponds to the JSON property `key` @return [String]

metric_kind[RW]

The value stream kind. Corresponds to the JSON property `metricKind` @return [String]

unit[RW]

The unit in which time_series point values are reported. unit follows the UCUM format for units as seen in unitsofmeasure.org/ucum.html. unit is only valid if value_type is INTEGER, DOUBLE, DISTRIBUTION. Corresponds to the JSON property `unit` @return [String]

value_type[RW]

The value type. Corresponds to the JSON property `valueType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/monitoring_v3/classes.rb, line 4580
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 4585
def update!(**args)
  @key = args[:key] if args.key?(:key)
  @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
  @unit = args[:unit] if args.key?(:unit)
  @value_type = args[:value_type] if args.key?(:value_type)
end