Class: TCellAgent::SensorEvents::RequestRouteTimer

Inherits:
TCellSensorEvent show all
Defined in:
lib/tcell_agent/sensor_events/metrics.rb

Instance Attribute Summary collapse

Attributes inherited from TCellSensorEvent

#ensure, #flush, #send

Instance Method Summary collapse

Methods inherited from TCellSensorEvent

#bucket_key, #calculateOffset, #post_process

Constructor Details

#initialize(route_id, response_time) ⇒ RequestRouteTimer



23
24
25
26
27
28
# File 'lib/tcell_agent/sensor_events/metrics.rb', line 23

def initialize(route_id, response_time)
  super("RequestRouteTimer")
  self.route_id = route_id
  self.response_time = response_time
  @send = false
end

Instance Attribute Details

#response_timeObject

Returns the value of attribute response_time.



22
23
24
# File 'lib/tcell_agent/sensor_events/metrics.rb', line 22

def response_time
  @response_time
end

#route_idObject

Returns the value of attribute route_id.



21
22
23
# File 'lib/tcell_agent/sensor_events/metrics.rb', line 21

def route_id
  @route_id
end