PeekApiClient class
The core PeekAPI client. Buffers events in memory and flushes them to the ingest endpoint in batches.
Properties
- bufferLength → int
-
The number of buffered events (for testing).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
flush(
) → Future< void> - Flushes buffered events to the ingest endpoint.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shutdown(
) → Future< void> - Gracefully shuts down the client.
-
toString(
) → String -
A string representation of this object.
inherited
-
track(
RequestEvent event) → void - Tracks a request event. Non-blocking, returns immediately.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
PeekApiOptions options) → Future< PeekApiClient> - Creates a new PeekAPI client, validates options, and starts the background flush timer.