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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb

Overview

A single data point from a collectd-based plugin.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CollectdValue

Returns a new instance of CollectdValue.



749
750
751
# File 'lib/google/apis/monitoring_v3/classes.rb', line 749

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)


737
738
739
# File 'lib/google/apis/monitoring_v3/classes.rb', line 737

def data_source_name
  @data_source_name
end

#data_source_typeString

The type of measurement. Corresponds to the JSON property dataSourceType

Returns:

  • (String)


742
743
744
# File 'lib/google/apis/monitoring_v3/classes.rb', line 742

def data_source_type
  @data_source_type
end

#valueGoogle::Apis::MonitoringV3::TypedValue

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



747
748
749
# File 'lib/google/apis/monitoring_v3/classes.rb', line 747

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



754
755
756
757
758
# File 'lib/google/apis/monitoring_v3/classes.rb', line 754

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