Class: LogBrew::DroppedEvent
- Inherits:
-
Object
- Object
- LogBrew::DroppedEvent
- Defined in:
- lib/logbrew/bounded_event_queue.rb
Instance Attribute Summary collapse
-
#dropped_events ⇒ Object
readonly
Returns the value of attribute dropped_events.
-
#event_id ⇒ Object
readonly
Returns the value of attribute event_id.
-
#event_type ⇒ Object
readonly
Returns the value of attribute event_type.
-
#pending_event_bytes ⇒ Object
readonly
Returns the value of attribute pending_event_bytes.
-
#pending_events ⇒ Object
readonly
Returns the value of attribute pending_events.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(event_id:, event_type:, reason:, dropped_events:, pending_events:, pending_event_bytes:) ⇒ DroppedEvent
constructor
A new instance of DroppedEvent.
Constructor Details
#initialize(event_id:, event_type:, reason:, dropped_events:, pending_events:, pending_event_bytes:) ⇒ DroppedEvent
Returns a new instance of DroppedEvent.
8 9 10 11 12 13 14 15 16 |
# File 'lib/logbrew/bounded_event_queue.rb', line 8 def initialize(event_id:, event_type:, reason:, dropped_events:, pending_events:, pending_event_bytes:) @event_id = event_id.dup.freeze @event_type = event_type.dup.freeze @reason = reason.dup.freeze @dropped_events = dropped_events @pending_events = pending_events @pending_event_bytes = pending_event_bytes freeze end |
Instance Attribute Details
#dropped_events ⇒ Object (readonly)
Returns the value of attribute dropped_events.
5 6 7 |
# File 'lib/logbrew/bounded_event_queue.rb', line 5 def dropped_events @dropped_events end |
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id.
5 6 7 |
# File 'lib/logbrew/bounded_event_queue.rb', line 5 def event_id @event_id end |
#event_type ⇒ Object (readonly)
Returns the value of attribute event_type.
5 6 7 |
# File 'lib/logbrew/bounded_event_queue.rb', line 5 def event_type @event_type end |
#pending_event_bytes ⇒ Object (readonly)
Returns the value of attribute pending_event_bytes.
5 6 7 |
# File 'lib/logbrew/bounded_event_queue.rb', line 5 def pending_event_bytes @pending_event_bytes end |
#pending_events ⇒ Object (readonly)
Returns the value of attribute pending_events.
5 6 7 |
# File 'lib/logbrew/bounded_event_queue.rb', line 5 def pending_events @pending_events end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
5 6 7 |
# File 'lib/logbrew/bounded_event_queue.rb', line 5 def reason @reason end |