Class: TCellAgent::SensorEvents::PatchesEvent
- Inherits:
-
TCellSensorEvent
- Object
- Hash
- TCellSensorEvent
- TCellAgent::SensorEvents::PatchesEvent
- Defined in:
- lib/tcell_agent/sensor_events/patches.rb
Instance Attribute Summary
Attributes inherited from TCellSensorEvent
Instance Method Summary collapse
-
#initialize(rust_response, appsensor_meta) ⇒ PatchesEvent
constructor
A new instance of PatchesEvent.
Methods inherited from TCellSensorEvent
#bucket_key, #calculate_offset, #post_process
Constructor Details
#initialize(rust_response, appsensor_meta) ⇒ PatchesEvent
Returns a new instance of PatchesEvent.
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/tcell_agent/sensor_events/patches.rb', line 6 def initialize(rust_response, ) super('patches') self['patches_pid'] = rust_response['patches_policy_id'] self['rule_id'] = rust_response['rule_id'] self['action'] = 'blocked' self['sz'] = .request_content_bytes_len if .request_content_bytes_len self['m'] = .method if .method self['remote_addr'] = .remote_address if .remote_address self['uri'] = TCellAgent::SensorEvents::Util.strip_uri_values(.location) if .location self['regex_pid'] = rust_response['regex_pid'] if rust_response['regex_pid'] self['payload'] = rust_response['payload'] if rust_response['payload'] end |