Class: Google::Apis::MonitoringV3::ValueDescriptor
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::MonitoringV3::ValueDescriptor
 
 
- 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
- 
  
    
      #key  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The value key.
 - 
  
    
      #metric_kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The value stream kind.
 - 
  
    
      #unit  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The unit in which time_series point values are reported.
 - 
  
    
      #value_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The value type.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ValueDescriptor 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ValueDescriptor.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ ValueDescriptor
Returns a new instance of ValueDescriptor.
      5207 5208 5209  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 5207 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#key ⇒ String
The value key.
Corresponds to the JSON property key
      5188 5189 5190  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 5188 def key @key end  | 
  
#metric_kind ⇒ String
The value stream kind.
Corresponds to the JSON property metricKind
      5193 5194 5195  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 5193 def metric_kind @metric_kind end  | 
  
#unit ⇒ String
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
      5200 5201 5202  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 5200 def unit @unit end  | 
  
#value_type ⇒ String
The value type.
Corresponds to the JSON property valueType
      5205 5206 5207  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 5205 def value_type @value_type end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      5212 5213 5214 5215 5216 5217  | 
    
      # File 'lib/google/apis/monitoring_v3/classes.rb', line 5212 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  |