Class: TCellAgent::SensorEvents::AppRoutesSensorEvent
- Inherits:
-
TCellSensorEvent
- Object
- Hash
- TCellSensorEvent
- TCellAgent::SensorEvents::AppRoutesSensorEvent
- Defined in:
- lib/tcell_agent/sensor_events/server_agent.rb
Instance Attribute Summary
Attributes inherited from TCellSensorEvent
Instance Method Summary collapse
-
#initialize(uri, method, route_id, params = nil, destination = nil) ⇒ AppRoutesSensorEvent
constructor
A new instance of AppRoutesSensorEvent.
Methods inherited from TCellSensorEvent
#bucket_key, #calculate_offset
Constructor Details
#initialize(uri, method, route_id, params = nil, destination = nil) ⇒ AppRoutesSensorEvent
Returns a new instance of AppRoutesSensorEvent.
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/tcell_agent/sensor_events/server_agent.rb', line 35 def initialize(uri, method, route_id, params = nil, destination = nil) super('appserver_routes') @flush = false @ensure = true method = method.downcase self['uri'] = uri self['method'] = method self['rid'] = route_id self['params'] = params if params self['destination'] = destination if destination end |