Publish a single event.
Publish a single event.
The collection to which the event will be added.
The event
Publish multiple events.
The concrete HttpAdapter used to make API requests.
The concrete HttpAdapter used to make API requests.
Project identifier for the Keen project that an AccessLevel
's API key is
associated with.
Project identifier for the Keen project that an AccessLevel
's API key is
associated with.
Queue an event for batched publishing.
Queue an event for batched publishing.
The collection to which the event will be added.
The event
Flush queued events, removing them from the queue as they are successfully sent.
Flush queued events, sending them to Keen IO on a background thread.
The client's configuration settings.
The client's configuration settings.
Shut down the threadpool for flushing batch writes, before a final flush of all events remaining in the queue, run on the main thread.
Shut down the threadpool for flushing batch writes, before a final flush of all events remaining in the queue, run on the main thread.
A write key required to make API calls that write data.
A write key required to make API calls that write data.
A BatchWriterClient is a Client specialized with the capability to write events to the Keen API in batches per request.
Each instance creates a threadpool and schedules flush operations on it, which will make bulk write calls to the Keen IO API for batches of events until the queue is drained.
Events are queued for batch submission with queueEvent; other operations like addEvent function as with an ordinary
Client with Writer
—that is, they are non-blocking but effect discrete API calls per invocation.Batch size, flush scheduling, queue bounds, etc. can be tuned via the settings under the
keen.queue
property tree.Explain the difference in behavior if send-interval is zero seconds.