Class: SimpleMetrics::DataPoint::Event

Inherits:
Base
  • Object
show all
Defined in:
lib/simple_metrics/data_point/event.rb

Instance Attribute Summary

Attributes inherited from Base

#id, #name, #sum, #total, #ts, #type, #value

Instance Method Summary collapse

Methods inherited from Base

#attributes, #counter?, #event?, #gauge?, #timestamp, #timing?, #to_s

Constructor Details

#initialize(attributes) ⇒ Event

Returns a new instance of Event.



5
6
7
8
# File 'lib/simple_metrics/data_point/event.rb', line 5

def initialize(attributes)
  super(attributes)
  @type = 'ev'
end

Instance Method Details

#combine(dp) ⇒ Object



10
11
12
# File 'lib/simple_metrics/data_point/event.rb', line 10

def combine(dp)
  raise "Implement me!"
end