Class: NewRelic::Agent::SyntheticsEventAggregator
- Inherits:
-
EventAggregator
- Object
- EventAggregator
- NewRelic::Agent::SyntheticsEventAggregator
- Defined in:
- lib/new_relic/agent/synthetics_event_aggregator.rb
Constant Summary collapse
- TIMESTAMP =
'timestamp'.freeze
Instance Method Summary collapse
Methods inherited from EventAggregator
#after_initialize, buffer_class, capacity_key, #enabled?, enabled_fn, enabled_keys, #harvest!, #has_metadata?, #initialize, #merge!, named, #reset!
Constructor Details
This class inherits a constructor from NewRelic::Agent::EventAggregator
Instance Method Details
#record(event) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/new_relic/agent/synthetics_event_aggregator.rb', line 19 def record(event) return unless enabled? @lock.synchronize do @buffer.append(event: event, priority: -event[0][TIMESTAMP]) end end |