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, #calculateOffset, #post_process

Constructor Details

#initialize(uri, method, route_id, params = nil, destination = nil) ⇒ AppRoutesSensorEvent

Returns a new instance of AppRoutesSensorEvent.



125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# File 'lib/tcell_agent/sensor_events/server_agent.rb', line 125

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
    if (params)
        self["params"] = params
    end
    if (destination) 
        self["destination"] = destination
    end
end