Package com.exasol.telemetry
Interface TelemetryClient
-
- All Superinterfaces:
AutoCloseable
public interface TelemetryClient extends AutoCloseable
Tracks feature usage events and delivers them asynchronously to the configured telemetry endpoint. Create a client by building aTelemetryConfigwithTelemetryConfig.builder(String, String)and passing it tocreate(TelemetryConfig).
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Stop the client, send all remaining queued telemetry messages and release any resources that it owns.static TelemetryClientcreate(TelemetryConfig config)Create a telemetry client for the provided configuration.voidtrack(String feature)Queue a feature usage event for asynchronous delivery.
-
-
-
Method Detail
-
create
static TelemetryClient create(TelemetryConfig config)
Create a telemetry client for the provided configuration.- Parameters:
config- telemetry runtime configuration- Returns:
- telemetry client
-
track
void track(String feature)
Queue a feature usage event for asynchronous delivery.- Parameters:
feature- feature name provided by the caller
-
close
void close()
Stop the client, send all remaining queued telemetry messages and release any resources that it owns.- Specified by:
closein interfaceAutoCloseable
-
-