class TCellAgent::SensorEvents::DlpEvent
Constants
- FOUND_IN_BODY
- FOUND_IN_CONSOLE
- FOUND_IN_LOG
- FRAMEWORK_VARIABLE_SESSION_ID
- REQUEST_CONTEXT_COOKIE
- REQUEST_CONTEXT_FORM
- REQUEST_CONTEXT_HEADER
Public Class Methods
new(route_id, raw_uri, found_in, id = nil, hmac_session_id = nil, user_id = nil)
click to toggle source
Calls superclass method
# File lib/tcell_agent/sensor_events/dlp.rb, line 19 def initialize(route_id, raw_uri, found_in, id = nil, hmac_session_id = nil, user_id = nil) super('dlp') self['rid'] = route_id if route_id self['found_in'] = found_in self['uri'] = Util.strip_uri_values(raw_uri) if raw_uri self['sid'] = hmac_session_id if hmac_session_id self['uid'] = user_id if user_id self['rule'] = id if id end
Public Instance Methods
for_database(database, schema, table, field)
click to toggle source
# File lib/tcell_agent/sensor_events/dlp.rb, line 29 def for_database(database, schema, table, field) self['type'] = 'db' self['db'] = database self['schema'] = schema self['table'] = table self['field'] = field self end
for_framework(variable)
click to toggle source
# File lib/tcell_agent/sensor_events/dlp.rb, line 38 def for_framework(variable) self['type'] = 'fw' self['context'] = 'framework' self['variable'] = variable self end
for_request(variable_context, variable)
click to toggle source
# File lib/tcell_agent/sensor_events/dlp.rb, line 45 def for_request(variable_context, variable) self['type'] = 'req' self['context'] = variable_context self['variable'] = variable self end