Class: Google::Apis::MonitoringV3::ValueDescriptor

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb

Overview

A descriptor for the value columns in a data point.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ValueDescriptor

Returns a new instance of ValueDescriptor.



5117
5118
5119
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5117

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

Instance Attribute Details

#keyString

The value key. Corresponds to the JSON property key

Returns:

  • (String)


5098
5099
5100
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5098

def key
  @key
end

#metric_kindString

The value stream kind. Corresponds to the JSON property metricKind

Returns:

  • (String)


5103
5104
5105
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5103

def metric_kind
  @metric_kind
end

#unitString

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

Returns:

  • (String)


5110
5111
5112
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5110

def unit
  @unit
end

#value_typeString

The value type. Corresponds to the JSON property valueType

Returns:

  • (String)


5115
5116
5117
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5115

def value_type
  @value_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5122
5123
5124
5125
5126
5127
# File 'lib/google/apis/monitoring_v3/classes.rb', line 5122

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