Module: LaunchDarkly::EventProcessorMethods

Included in:
EventProcessor, NullEventProcessor
Defined in:
lib/ldclient-rb/events.rb

Instance Method Summary collapse

Instance Method Details

#flushObject

Tells the event processor that all pending analytics events should be delivered as soon as possible.

When the LaunchDarkly client generates analytics events (from LDClient#variation, LDClient#variation_detail, LDClient#identify, or LDClient#track), they are queued on a worker thread. The event thread normally sends all queued events to LaunchDarkly at regular intervals, controlled by the Config#flush_interval option. Calling flush triggers a send without waiting for the next interval.

Flushing is asynchronous, so this method will return before it is complete. However, if you call LDClient#close, events are guaranteed to be sent before that method returns.



78
79
# File 'lib/ldclient-rb/events.rb', line 78

def flush
end

#record_custom_event(context, key, data = nil, metric_value = nil) ⇒ Object



54
55
56
57
58
59
60
# File 'lib/ldclient-rb/events.rb', line 54

def record_custom_event(
  context,
  key,
  data = nil,
  metric_value = nil
)
end

#record_eval_event(context, key, version = nil, variation = nil, value = nil, reason = nil, default = nil, track_events = false, debug_until = nil, prereq_of = nil, sampling_ratio = nil, exclude_from_summaries = false) ⇒ Object



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/ldclient-rb/events.rb', line 35

def record_eval_event(
  context,
  key,
  version = nil,
  variation = nil,
  value = nil,
  reason = nil,
  default = nil,
  track_events = false,
  debug_until = nil,
  prereq_of = nil,
  sampling_ratio = nil,
  exclude_from_summaries = false
)
end

#record_identify_event(context) ⇒ Object



51
52
# File 'lib/ldclient-rb/events.rb', line 51

def record_identify_event(context)
end

#record_migration_op_event(event) ⇒ Object



62
63
# File 'lib/ldclient-rb/events.rb', line 62

def record_migration_op_event(event)
end

#stopObject



81
82
# File 'lib/ldclient-rb/events.rb', line 81

def stop
end