class TCellAgent::SensorEvents::TCellSensorEvent

Attributes

ensure[RW]
flush[RW]
send[RW]

Public Class Methods

new(event_type) click to toggle source
# File lib/tcell_agent/sensor_events/sensor.rb, line 11
def initialize(event_type)
  @send = true
  @flush = false
  @ensure = false
  @timestamp = Time.now.to_i
  self['event_type'] = event_type
end

Public Instance Methods

bucket_key() click to toggle source
# File lib/tcell_agent/sensor_events/sensor.rb, line 23
def bucket_key
  nil
end
calculate_offset(from_timestamp) click to toggle source
# File lib/tcell_agent/sensor_events/sensor.rb, line 19
def calculate_offset(from_timestamp)
  self['offset'] = from_timestamp - @timestamp
end