Class: Google::Apis::MonitoringV3::CollectdValue
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::MonitoringV3::CollectdValue
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/monitoring_v3/classes.rb,
generated/google/apis/monitoring_v3/representations.rb,
generated/google/apis/monitoring_v3/representations.rb 
Overview
A single data point from a collectd-based plugin.
Instance Attribute Summary collapse
- 
  
    
      #data_source_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The data source for the collectd value.
 - 
  
    
      #data_source_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The type of measurement.
 - 
  
    
      #value  ⇒ Google::Apis::MonitoringV3::TypedValue 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A single strongly-typed value.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CollectdValue 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of CollectdValue.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CollectdValue
Returns a new instance of CollectdValue
      427 428 429  | 
    
      # File 'generated/google/apis/monitoring_v3/classes.rb', line 427 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#data_source_name ⇒ String
The data source for the collectd value. For example there are two data sources
for network measurements: "rx" and "tx".
Corresponds to the JSON property dataSourceName
      415 416 417  | 
    
      # File 'generated/google/apis/monitoring_v3/classes.rb', line 415 def data_source_name @data_source_name end  | 
  
#data_source_type ⇒ String
The type of measurement.
Corresponds to the JSON property dataSourceType
      420 421 422  | 
    
      # File 'generated/google/apis/monitoring_v3/classes.rb', line 420 def data_source_type @data_source_type end  | 
  
#value ⇒ Google::Apis::MonitoringV3::TypedValue
A single strongly-typed value.
Corresponds to the JSON property value
      425 426 427  | 
    
      # File 'generated/google/apis/monitoring_v3/classes.rb', line 425 def value @value end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      432 433 434 435 436  | 
    
      # File 'generated/google/apis/monitoring_v3/classes.rb', line 432 def update!(**args) @data_source_name = args[:data_source_name] if args.key?(:data_source_name) @data_source_type = args[:data_source_type] if args.key?(:data_source_type) @value = args[:value] if args.key?(:value) end  |