Class: TCellAgent::SensorEvents::AppSensorMetaEvent
- Inherits:
-
TCellSensorEvent
- Object
- Hash
- TCellSensorEvent
- TCellAgent::SensorEvents::AppSensorMetaEvent
- Defined in:
- lib/tcell_agent/sensor_events/appsensor_meta_event.rb
Instance Attribute Summary collapse
-
#meta_data ⇒ Object
Returns the value of attribute meta_data.
Attributes inherited from TCellSensorEvent
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(meta_data) ⇒ AppSensorMetaEvent
constructor
A new instance of AppSensorMetaEvent.
- #post_process ⇒ Object
Methods inherited from TCellSensorEvent
#bucket_key, #calculate_offset
Constructor Details
#initialize(meta_data) ⇒ AppSensorMetaEvent
31 32 33 34 35 |
# File 'lib/tcell_agent/sensor_events/appsensor_meta_event.rb', line 31 def initialize() @send = false = end |
Instance Attribute Details
#meta_data ⇒ Object
Returns the value of attribute meta_data.
29 30 31 |
# File 'lib/tcell_agent/sensor_events/appsensor_meta_event.rb', line 29 def end |
Class Method Details
.build(request, response_content_length, response_code, response_headers) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/tcell_agent/sensor_events/appsensor_meta_event.rb', line 10 def build(request, response_content_length, response_code, response_headers) = TCellAgent::MetaData.from_request(request) tcell_context = request.env[TCellAgent::Instrumentation::TCELL_ID] .csrf_exception_name = tcell_context.csrf_exception_name .user_agent = tcell_context.user_agent .path_parameters = tcell_context.path_parameters .sql_exceptions = tcell_context.sql_exceptions .database_result_sizes = tcell_context.database_result_sizes .response_content_bytes_len = response_content_length .response_code = response_code .response_headers = response_headers AppSensorMetaEvent.new() end |
Instance Method Details
#post_process ⇒ Object
37 38 39 40 41 42 |
# File 'lib/tcell_agent/sensor_events/appsensor_meta_event.rb', line 37 def post_process rust_policies = TCellAgent.policy(TCellAgent::PolicyTypes::RUST) return unless rust_policies rust_policies.check_appfirewall_injections() end |