Class: TCellAgent::SensorEvents::RequestRouteTimer
- Inherits:
-
TCellSensorEvent
- Object
- Hash
- TCellSensorEvent
- TCellAgent::SensorEvents::RequestRouteTimer
- Defined in:
- lib/tcell_agent/sensor_events/metrics.rb
Instance Attribute Summary collapse
-
#response_time ⇒ Object
Returns the value of attribute response_time.
-
#route_id ⇒ Object
Returns the value of attribute route_id.
Attributes inherited from TCellSensorEvent
Instance Method Summary collapse
-
#initialize(route_id, response_time) ⇒ RequestRouteTimer
constructor
A new instance of RequestRouteTimer.
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_time ⇒ Object
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_id ⇒ Object
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 |