Class: Google::Apis::MonitoringV3::CollectdPayload

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CollectdPayload

Returns a new instance of CollectdPayload.



515
516
517
# File 'generated/google/apis/monitoring_v3/classes.rb', line 515

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

Instance Attribute Details

#end_timeString

The end time of the interval. Corresponds to the JSON property endTime

Returns:

  • (String)


477
478
479
# File 'generated/google/apis/monitoring_v3/classes.rb', line 477

def end_time
  @end_time
end

#metadataHash<String,Google::Apis::MonitoringV3::TypedValue>

The measurement metadata. Example: "process_id" -> 12345 Corresponds to the JSON property metadata

Returns:



482
483
484
# File 'generated/google/apis/monitoring_v3/classes.rb', line 482

def 
  @metadata
end

#pluginString

The name of the plugin. Example: "disk". Corresponds to the JSON property plugin

Returns:

  • (String)


487
488
489
# File 'generated/google/apis/monitoring_v3/classes.rb', line 487

def plugin
  @plugin
end

#plugin_instanceString

The instance name of the plugin Example: "hdcl". Corresponds to the JSON property pluginInstance

Returns:

  • (String)


492
493
494
# File 'generated/google/apis/monitoring_v3/classes.rb', line 492

def plugin_instance
  @plugin_instance
end

#start_timeString

The start time of the interval. Corresponds to the JSON property startTime

Returns:

  • (String)


497
498
499
# File 'generated/google/apis/monitoring_v3/classes.rb', line 497

def start_time
  @start_time
end

#typeString

The measurement type. Example: "memory". Corresponds to the JSON property type

Returns:

  • (String)


502
503
504
# File 'generated/google/apis/monitoring_v3/classes.rb', line 502

def type
  @type
end

#type_instanceString

The measurement type instance. Example: "used". Corresponds to the JSON property typeInstance

Returns:

  • (String)


507
508
509
# File 'generated/google/apis/monitoring_v3/classes.rb', line 507

def type_instance
  @type_instance
end

#valuesArray<Google::Apis::MonitoringV3::CollectdValue>

The measured values during this time interval. Each value must have a different dataSourceName. Corresponds to the JSON property values



513
514
515
# File 'generated/google/apis/monitoring_v3/classes.rb', line 513

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



520
521
522
523
524
525
526
527
528
529
# File 'generated/google/apis/monitoring_v3/classes.rb', line 520

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