Class: TCellAgent::SensorEvents::TCellSensorEvent
- Inherits:
-
Hash
- Object
- Hash
- TCellAgent::SensorEvents::TCellSensorEvent
- Defined in:
- lib/tcell_agent/sensor_events/sensor.rb
Direct Known Subclasses
AppAuthFramework, AppConfigSettingEvent, AppCookie, AppFramework, AppFrameworkSetting, AppRoutesSensorEvent, AppSensorMetaEvent, DiscoveryEvent, DlpEvent, FlushDummyEvent, HoneytokensSensorEvent, LoginFailure, LoginSuccess, MetricsEvent, RequestRouteTimer, ServerAgentAppFrameworkEvent, ServerAgentDetailsLanguageEvent, ServerAgentDetailsSensorEvent, ServerAgentPackagesSensorEvent, SessionsMetric, TCellAppSensorEvent, TCellFingerprintSensorEvent, TCellHttpTxSensorEvent, TCellRedirectSensorEvent
Instance Attribute Summary collapse
-
#ensure ⇒ Object
Returns the value of attribute ensure.
-
#flush ⇒ Object
Returns the value of attribute flush.
-
#send ⇒ Object
Returns the value of attribute send.
Instance Method Summary collapse
-
#bucket_key ⇒ Object
This is called in the background thread, so any santization, analysis, etc doesn’t get in the way.
- #calculateOffset(from_timestamp) ⇒ Object
-
#initialize(event_type) ⇒ TCellSensorEvent
constructor
A new instance of TCellSensorEvent.
- #post_process ⇒ Object
Constructor Details
#initialize(event_type) ⇒ TCellSensorEvent
Returns a new instance of TCellSensorEvent.
13 14 15 16 17 18 19 |
# File 'lib/tcell_agent/sensor_events/sensor.rb', line 13 def initialize(event_type) @send = true @flush = false @ensure = false @timestamp = DateTime.now.to_time.to_i self["event_type"] = event_type end |
Instance Attribute Details
#ensure ⇒ Object
Returns the value of attribute ensure.
12 13 14 |
# File 'lib/tcell_agent/sensor_events/sensor.rb', line 12 def ensure @ensure end |
#flush ⇒ Object
Returns the value of attribute flush.
11 12 13 |
# File 'lib/tcell_agent/sensor_events/sensor.rb', line 11 def flush @flush end |
#send ⇒ Object
Returns the value of attribute send.
10 11 12 |
# File 'lib/tcell_agent/sensor_events/sensor.rb', line 10 def send @send end |
Instance Method Details
#bucket_key ⇒ Object
This is called in the background thread, so any
santization, analysis, etc doesn't get in the way
27 28 29 |
# File 'lib/tcell_agent/sensor_events/sensor.rb', line 27 def bucket_key return nil end |
#calculateOffset(from_timestamp) ⇒ Object
20 21 22 |
# File 'lib/tcell_agent/sensor_events/sensor.rb', line 20 def calculateOffset() self["offset"] = - @timestamp end |
#post_process ⇒ Object
23 24 25 26 |
# File 'lib/tcell_agent/sensor_events/sensor.rb', line 23 def post_process # This is called in the background thread, so any # santization, analysis, etc doesn't get in the way end |