public class AsyncInsightsClient extends Object
| Constructor and Description |
|---|
AsyncInsightsClient(InsightsConfig config,
AsyncAPIClient client) |
AsyncInsightsClient(String applicationId,
String apiKey,
AsyncAPIClient client) |
AsyncInsightsClient(String applicationId,
String apiKey,
String region,
AsyncAPIClient client) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<InsightsResult> |
sendEvent(InsightsEvent event)
This command pushes an event to the Insights API.
|
CompletableFuture<InsightsResult> |
sendEvent(InsightsEvent event,
RequestOptions requestOptions)
This command pushes an event to the Insights API.
|
CompletableFuture<InsightsResult> |
sendEvents(List<InsightsEvent> events)
This command pushes an array of events to the Insights API.
|
CompletableFuture<InsightsResult> |
sendEvents(List<InsightsEvent> events,
RequestOptions requestOptions)
This command pushes an array of events to the Insights API.
|
AsyncUserInsightsClient |
user(String userToken) |
public AsyncInsightsClient(@Nonnull String applicationId, @Nonnull String apiKey, @Nonnull AsyncAPIClient client)
applicationId - The application IDapiKey - The API Keyclient - API Clientpublic AsyncInsightsClient(@Nonnull String applicationId, @Nonnull String apiKey, @Nonnull String region, @Nonnull AsyncAPIClient client)
applicationId - The applicationIDapiKey - The api KEYregion - The server regionclient - APIClientpublic AsyncInsightsClient(@Nonnull InsightsConfig config, @Nonnull AsyncAPIClient client)
config - InsightsClientclient - APIClientpublic AsyncUserInsightsClient user(@Nonnull String userToken)
userToken - the user configpublic CompletableFuture<InsightsResult> sendEvent(@Nonnull InsightsEvent event)
event - An eventpublic CompletableFuture<InsightsResult> sendEvent(@Nonnull InsightsEvent event, @Nonnull RequestOptions requestOptions)
event - An eventrequestOptions - RequestOptionspublic CompletableFuture<InsightsResult> sendEvents(@Nonnull List<InsightsEvent> events)
events - List of eventspublic CompletableFuture<InsightsResult> sendEvents(@Nonnull List<InsightsEvent> events, @Nonnull RequestOptions requestOptions)
events - List of eventsrequestOptions - RequestOptionsCopyright © 2018. All rights reserved.