Class: TCellAgent::SensorEvents::AppRoutesSensorEvent

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

Instance Attribute Summary

Attributes inherited from TCellSensorEvent

#ensure, #flush, #send

Instance Method Summary collapse

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