Class: MonitoringProtocols::DataPoint

Inherits:
CommonData show all
Defined in:
lib/monitoring_protocols/struct.rb

Instance Method Summary collapse

Methods inherited from CommonData

#convert_content, #measure_id, #time=

Methods inherited from DataStruct

#<=>, attributes, #initialize, #list_keys, #merge_data_from!, properties, #selected_field?, #to_a, #to_msgpack

Constructor Details

This class inherits a constructor from MonitoringProtocols::DataStruct

Instance Method Details

#data?Boolean

Returns:

  • (Boolean)


61
# File 'lib/monitoring_protocols/struct.rb', line 61

def data?; true; end

#to_hObject



63
64
65
66
67
# File 'lib/monitoring_protocols/struct.rb', line 63

def to_h
  super.merge(
      type: 'datapoint'
    )
end