Sha256: 688c91219230b2f254937574d632251fe3496c9858469ce728ae648aa69ce004
Contents?: true
Size: 1001 Bytes
Versions: 107
Compression:
Stored size: 1001 Bytes
Contents
# Copyright (c) 2015 Sqreen. All Rights Reserved. # Please refer to our terms for more information: https://www.sqreen.io/terms.html require 'sqreen/events/remote_exception' require 'sqreen/events/request_record' module Sqreen module Deliveries # Simple delivery method that directly call session on event class Simple attr_accessor :session def initialize(session) self.session = session end def post_event(event) case event when Sqreen::Attack session.post_attack(event) when Sqreen::RemoteException session.post_sqreen_exception(event) when Sqreen::RequestRecord session.post_request_record(event) else session.post_event(event) end end def drain # Since everything is posted at once nothing needs to be done here end def tick # Since everything is posted at once nothing needs to be done here end end end end
Version data entries
107 entries across 107 versions & 2 rubygems