class Google::Apis::MonitoringV3::CollectdPayload

A collection of data points sent from a collectd-based plugin. See the collectd documentation for more information.

Attributes

end_time[RW]

The end time of the interval. Corresponds to the JSON property `endTime` @return [String]

metadata[RW]

The measurement metadata. Example: “process_id” -> 12345 Corresponds to the JSON property `metadata` @return [Hash<String,Google::Apis::MonitoringV3::TypedValue>]

plugin[RW]

The name of the plugin. Example: “disk”. Corresponds to the JSON property `plugin` @return [String]

plugin_instance[RW]

The instance name of the plugin Example: “hdcl”. Corresponds to the JSON property `pluginInstance` @return [String]

start_time[RW]

The start time of the interval. Corresponds to the JSON property `startTime` @return [String]

type[RW]

The measurement type. Example: “memory”. Corresponds to the JSON property `type` @return [String]

type_instance[RW]

The measurement type instance. Example: “used”. Corresponds to the JSON property `typeInstance` @return [String]

values[RW]

The measured values during this time interval. Each value must have a different data_source_name. Corresponds to the JSON property `values` @return [Array<Google::Apis::MonitoringV3::CollectdValue>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/monitoring_v3/classes.rb, line 581
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/monitoring_v3/classes.rb, line 586
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