Package com.dashx
Class DashX
java.lang.Object
com.dashx.DashX
-
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(DashXConfig config) createIssue(CreateIssueInput input) Creates a new issue.static DashXstatic DashXgetInstance(String instanceName) Identifies a user with the provided options.listAssets(Map<String, Object> filter) searchRecords(String resource) searchRecords(String resource, SearchRecordsOptions options) Searches records for a given resource with optional search parameters.Tracks an event for a user.upsertIssue(UpsertIssueInput input) Creates a new issue or updates an existing one.
-
Method Details
-
getInstance
-
getInstance
-
configure
-
getInstanceName
-
identify
Identifies a user with the provided options.- Parameters:
options- User identification options- Returns:
- A CompletableFuture that will be completed with the identification result or completed exceptionally if there are GraphQL errors or execution errors.
-
track
public CompletableFuture<TrackEventResponse> track(String event, String uid, Map<String, Object> data) Tracks an event for a user.- Parameters:
event- The event name (event type)uid- Optional user IDdata- Optional event data- Returns:
- A CompletableFuture that will be completed with the tracking result or completed exceptionally if there are GraphQL errors or execution errors.
-
track
-
track
-
track
-
listAssets
-
listAssets
-
listAssets
-
listAssets
-
getAsset
-
searchRecords
public CompletableFuture<List<Map<String,Object>>> searchRecords(String resource, SearchRecordsOptions options) Searches records for a given resource with optional search parameters.- Parameters:
resource- The resource identifier to search (e.g., "users", "products")options- Optional search parameters like filters, sorting, pagination- Returns:
- A CompletableFuture that will be completed with the search results or completed exceptionally if there are GraphQL errors or execution errors.
-
searchRecords
-
createIssue
Creates a new issue.- Parameters:
input- The input data for creating the issue.- Returns:
- A CompletableFuture that will be completed with the created issue or completed exceptionally if there are GraphQL errors or execution errors.
-
upsertIssue
Creates a new issue or updates an existing one. The specific behavior (create vs. update) might depend on the presence of an idempotency key or an ID in the input.- Parameters:
input- The input data for upserting the issue.- Returns:
- A CompletableFuture that will be completed with the upserted issue or completed exceptionally if there are GraphQL errors or execution errors.
-