Class: LogBrew::DroppedEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/logbrew/bounded_event_queue.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_eventsObject (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_idObject (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_typeObject (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_bytesObject (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_eventsObject (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

#reasonObject (readonly)

Returns the value of attribute reason.



5
6
7
# File 'lib/logbrew/bounded_event_queue.rb', line 5

def reason
  @reason
end