vendor/bundle/ruby/2.3.0/gems/sqreen-1.10.5/lib/sqreen/rule_callback.rb
# Record an attack event into Sqreen system
# @param infos [Hash] Additional information about request
Record an attack event into Sqreen system
Record an attack event into Sqreen system
def record_event(infos, at = Time.now.utc)
        return unless framework
        payload = {
          :infos => infos,
          :rulespack_id => rulespack_id,
          :rule_name => rule_name,
          :test => test,
          :time => at,
        }
        if payload_tpl.include?('context')
          payload[:backtrace] = Sqreen::Context.new.bt
        end
        framework.observe(:attacks, payload, payload_tpl)
      end
def record_event ( infos , at = Time . now . utc ) return unless framework payload = { :infos => infos , :rulespack_id => rulespack_id , :rule_name => rule_name , :test => test , :time => at , } if payload_tpl . include? ( 'context' ) payload [ :backtrace ] = Sqreen :: Context . new . bt end framework . observe ( :attacks , payload , payload_tpl ) end
Record an attack event into Sqreen system
Record an attack event into Sqreen system
infos
Additional information about request
Additional information about request
at
<not_specific>
now
<not_specific>
utc
<not_specific>