Class: Google::Apis::MonitoringV3::CollectdValue

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 single data point from a collectd-based plugin.

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) ⇒ CollectdValue

Returns a new instance of CollectdValue



1173
1174
1175
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1173

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

Instance Attribute Details

#data_source_nameString

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

Returns:

  • (String)


1166
1167
1168
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1166

def data_source_name
  @data_source_name
end

#data_source_typeString

The type of measurement. Corresponds to the JSON property dataSourceType

Returns:

  • (String)


1160
1161
1162
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1160

def data_source_type
  @data_source_type
end

#valueGoogle::Apis::MonitoringV3::TypedValue

A single strongly-typed value. Corresponds to the JSON property value



1171
1172
1173
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1171

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1178
1179
1180
1181
1182
# File 'generated/google/apis/monitoring_v3/classes.rb', line 1178

def update!(**args)
  @data_source_type = args[:data_source_type] if args.key?(:data_source_type)
  @data_source_name = args[:data_source_name] if args.key?(:data_source_name)
  @value = args[:value] if args.key?(:value)
end