Class: Google::Apis::MonitoringV3::CollectdPayload
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::MonitoringV3::CollectdPayload
 
- 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 collection of data points sent from a collectd-based plugin. See the collectd documentation for more information.
Instance Attribute Summary collapse
- 
  
    
      #end_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The end time of the interval. 
- 
  
    
      #metadata  ⇒ Hash<String,Google::Apis::MonitoringV3::TypedValue> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The measurement metadata. 
- 
  
    
      #plugin  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the plugin. 
- 
  
    
      #plugin_instance  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The instance name of the plugin Example: "hdcl". 
- 
  
    
      #start_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The start time of the interval. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The measurement type. 
- 
  
    
      #type_instance  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The measurement type instance. 
- 
  
    
      #values  ⇒ Array<Google::Apis::MonitoringV3::CollectdValue> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The measured values during this time interval. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CollectdPayload 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of CollectdPayload. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CollectdPayload
Returns a new instance of CollectdPayload
| 324 325 326 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 324 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#end_time ⇒ String
The end time of the interval.
Corresponds to the JSON property endTime
| 286 287 288 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 286 def end_time @end_time end | 
#metadata ⇒ Hash<String,Google::Apis::MonitoringV3::TypedValue>
The measurement metadata. Example: "process_id" -> 12345
Corresponds to the JSON property metadata
| 291 292 293 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 291 def @metadata end | 
#plugin ⇒ String
The name of the plugin. Example: "disk".
Corresponds to the JSON property plugin
| 296 297 298 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 296 def plugin @plugin end | 
#plugin_instance ⇒ String
The instance name of the plugin Example: "hdcl".
Corresponds to the JSON property pluginInstance
| 301 302 303 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 301 def plugin_instance @plugin_instance end | 
#start_time ⇒ String
The start time of the interval.
Corresponds to the JSON property startTime
| 306 307 308 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 306 def start_time @start_time end | 
#type ⇒ String
The measurement type. Example: "memory".
Corresponds to the JSON property type
| 311 312 313 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 311 def type @type end | 
#type_instance ⇒ String
The measurement type instance. Example: "used".
Corresponds to the JSON property typeInstance
| 316 317 318 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 316 def type_instance @type_instance end | 
#values ⇒ Array<Google::Apis::MonitoringV3::CollectdValue>
The measured values during this time interval. Each value must have a
different dataSourceName.
Corresponds to the JSON property values
| 322 323 324 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 322 def values @values end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 329 330 331 332 333 334 335 336 337 338 | # File 'generated/google/apis/monitoring_v3/classes.rb', line 329 def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) @metadata = args[:metadata] if args.key?(:metadata) @plugin = args[:plugin] if args.key?(:plugin) @plugin_instance = args[:plugin_instance] if args.key?(:plugin_instance) @start_time = args[:start_time] if args.key?(:start_time) @type = args[:type] if args.key?(:type) @type_instance = args[:type_instance] if args.key?(:type_instance) @values = args[:values] if args.key?(:values) end |