Class ProductAnalyticsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the API client.Compute journey funnel analysis.Compute journey funnel analysis.Compute a funnel over an ordered sequence of Product Analytics events.Compute journey funnel analysis.List journey entities.List journey entities.Return the individual sessions that reached, or dropped off at, a given step of the journey.List journey entities.Compute journey scalar analytics.Compute journey scalar analytics.Compute scalar results for a journey query, such as the conversion count, the conversion rate, or the time to convert, optionally segmented by group-by facets.Compute journey scalar analytics.Compute journey timeseries analytics.Compute journey timeseries analytics.Compute timeseries results for a journey query.Compute journey timeseries analytics.List analytics events.List analytics events.List the individual event records matching an analytics query.List analytics events.Compute a retention grid.Compute a retention grid.Compute a retention grid, showing how much of each cohort came back over each subsequent period.Compute a retention grid.List the entities behind a retention cell.List the entities behind a retention cell.List the individual users or accounts counted in one cell of the retention grid.List the entities behind a retention cell.Compute retention scalar values.Compute retention scalar values.Compute retention as a single value per group, suitable for a query value or top list widget.Compute retention scalar values.Compute retention timeseries.Compute retention timeseries.Compute retention as a series of values over time, using the same query definition as the retention grid.queryProductAnalyticsRetentionTimeseriesWithHttpInfoAsync(ProductAnalyticsFormulaRetentionRequest body) Compute retention timeseries.Compute a Sankey diagram.Compute a Sankey diagram.Compute a Sankey diagram of how sessions flow between the values of two facets, showing where users continue and where they drop off at each step.Compute a Sankey diagram.Compute scalar analytics.Compute scalar analytics.Compute scalar analytics results for Product Analytics data.Compute scalar analytics.Compute timeseries analytics.Compute timeseries analytics.Compute timeseries analytics results for Product Analytics data.Compute timeseries analytics.voidsetApiClient(ApiClient apiClient) Set the API client.Send server-side events.Send server-side events.Send server-side events to Product Analytics.Send server-side events.
-
Constructor Details
-
ProductAnalyticsApi
public ProductAnalyticsApi() -
ProductAnalyticsApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
queryProductAnalyticsJourneyFunnel
public ProductAnalyticsJourneyFunnelResponse queryProductAnalyticsJourneyFunnel(ProductAnalyticsJourneyFunnelRequest body) throws ApiException Compute journey funnel analysis.- Parameters:
body- (required)- Returns:
- ProductAnalyticsJourneyFunnelResponse
- Throws:
ApiException- if fails to make API call
-
queryProductAnalyticsJourneyFunnelAsync
public CompletableFuture<ProductAnalyticsJourneyFunnelResponse> queryProductAnalyticsJourneyFunnelAsync(ProductAnalyticsJourneyFunnelRequest body) Compute journey funnel analysis.- Parameters:
body- (required)- Returns:
- CompletableFuture<ProductAnalyticsJourneyFunnelResponse>
-
queryProductAnalyticsJourneyFunnelWithHttpInfo
public ApiResponse<ProductAnalyticsJourneyFunnelResponse> queryProductAnalyticsJourneyFunnelWithHttpInfo(ProductAnalyticsJourneyFunnelRequest body) throws ApiException Compute a funnel over an ordered sequence of Product Analytics events. Returns the per-step conversion counts, conversion rates, and elapsed times, optionally segmented by group-by facets.- Parameters:
body- (required)- Returns:
- ApiResponse<ProductAnalyticsJourneyFunnelResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 429 Too many requests -
-
queryProductAnalyticsJourneyFunnelWithHttpInfoAsync
public CompletableFuture<ApiResponse<ProductAnalyticsJourneyFunnelResponse>> queryProductAnalyticsJourneyFunnelWithHttpInfoAsync(ProductAnalyticsJourneyFunnelRequest body) Compute journey funnel analysis.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<ProductAnalyticsJourneyFunnelResponse>>
-
queryProductAnalyticsJourneyList
public ProductAnalyticsJourneyListResponse queryProductAnalyticsJourneyList(ProductAnalyticsJourneyListRequest body) throws ApiException List journey entities.- Parameters:
body- (required)- Returns:
- ProductAnalyticsJourneyListResponse
- Throws:
ApiException- if fails to make API call
-
queryProductAnalyticsJourneyListAsync
public CompletableFuture<ProductAnalyticsJourneyListResponse> queryProductAnalyticsJourneyListAsync(ProductAnalyticsJourneyListRequest body) List journey entities.- Parameters:
body- (required)- Returns:
- CompletableFuture<ProductAnalyticsJourneyListResponse>
-
queryProductAnalyticsJourneyListWithHttpInfo
public ApiResponse<ProductAnalyticsJourneyListResponse> queryProductAnalyticsJourneyListWithHttpInfo(ProductAnalyticsJourneyListRequest body) throws ApiException Return the individual sessions that reached, or dropped off at, a given step of the journey. Each row contains the identity join key, the event timestamp, and the columns requested inentity_columns.- Parameters:
body- (required)- Returns:
- ApiResponse<ProductAnalyticsJourneyListResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 429 Too many requests -
-
queryProductAnalyticsJourneyListWithHttpInfoAsync
public CompletableFuture<ApiResponse<ProductAnalyticsJourneyListResponse>> queryProductAnalyticsJourneyListWithHttpInfoAsync(ProductAnalyticsJourneyListRequest body) List journey entities.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<ProductAnalyticsJourneyListResponse>>
-
queryProductAnalyticsJourneyScalar
public ProductAnalyticsJourneyScalarResponse queryProductAnalyticsJourneyScalar(ProductAnalyticsJourneyScalarRequest body) throws ApiException Compute journey scalar analytics.- Parameters:
body- (required)- Returns:
- ProductAnalyticsJourneyScalarResponse
- Throws:
ApiException- if fails to make API call
-
queryProductAnalyticsJourneyScalarAsync
public CompletableFuture<ProductAnalyticsJourneyScalarResponse> queryProductAnalyticsJourneyScalarAsync(ProductAnalyticsJourneyScalarRequest body) Compute journey scalar analytics.- Parameters:
body- (required)- Returns:
- CompletableFuture<ProductAnalyticsJourneyScalarResponse>
-
queryProductAnalyticsJourneyScalarWithHttpInfo
public ApiResponse<ProductAnalyticsJourneyScalarResponse> queryProductAnalyticsJourneyScalarWithHttpInfo(ProductAnalyticsJourneyScalarRequest body) throws ApiException Compute scalar results for a journey query, such as the conversion count, the conversion rate, or the time to convert, optionally segmented by group-by facets.- Parameters:
body- (required)- Returns:
- ApiResponse<ProductAnalyticsJourneyScalarResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 429 Too many requests -
-
queryProductAnalyticsJourneyScalarWithHttpInfoAsync
public CompletableFuture<ApiResponse<ProductAnalyticsJourneyScalarResponse>> queryProductAnalyticsJourneyScalarWithHttpInfoAsync(ProductAnalyticsJourneyScalarRequest body) Compute journey scalar analytics.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<ProductAnalyticsJourneyScalarResponse>>
-
queryProductAnalyticsJourneyTimeseries
public ProductAnalyticsJourneyTimeseriesResponse queryProductAnalyticsJourneyTimeseries(ProductAnalyticsFormulaJourneyRequest body) throws ApiException Compute journey timeseries analytics.- Parameters:
body- (required)- Returns:
- ProductAnalyticsJourneyTimeseriesResponse
- Throws:
ApiException- if fails to make API call
-
queryProductAnalyticsJourneyTimeseriesAsync
public CompletableFuture<ProductAnalyticsJourneyTimeseriesResponse> queryProductAnalyticsJourneyTimeseriesAsync(ProductAnalyticsFormulaJourneyRequest body) Compute journey timeseries analytics.- Parameters:
body- (required)- Returns:
- CompletableFuture<ProductAnalyticsJourneyTimeseriesResponse>
-
queryProductAnalyticsJourneyTimeseriesWithHttpInfo
public ApiResponse<ProductAnalyticsJourneyTimeseriesResponse> queryProductAnalyticsJourneyTimeseriesWithHttpInfo(ProductAnalyticsFormulaJourneyRequest body) throws ApiException Compute timeseries results for a journey query. Returns one series per group-by combination, bucketed by the requested interval.- Parameters:
body- (required)- Returns:
- ApiResponse<ProductAnalyticsJourneyTimeseriesResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 429 Too many requests -
-
queryProductAnalyticsJourneyTimeseriesWithHttpInfoAsync
public CompletableFuture<ApiResponse<ProductAnalyticsJourneyTimeseriesResponse>> queryProductAnalyticsJourneyTimeseriesWithHttpInfoAsync(ProductAnalyticsFormulaJourneyRequest body) Compute journey timeseries analytics.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<ProductAnalyticsJourneyTimeseriesResponse>>
-
queryProductAnalyticsList
public ProductAnalyticsAnalyticsListResponse queryProductAnalyticsList(ProductAnalyticsAnalyticsListRequest body) throws ApiException List analytics events.- Parameters:
body- (required)- Returns:
- ProductAnalyticsAnalyticsListResponse
- Throws:
ApiException- if fails to make API call
-
queryProductAnalyticsListAsync
public CompletableFuture<ProductAnalyticsAnalyticsListResponse> queryProductAnalyticsListAsync(ProductAnalyticsAnalyticsListRequest body) List analytics events.- Parameters:
body- (required)- Returns:
- CompletableFuture<ProductAnalyticsAnalyticsListResponse>
-
queryProductAnalyticsListWithHttpInfo
public ApiResponse<ProductAnalyticsAnalyticsListResponse> queryProductAnalyticsListWithHttpInfo(ProductAnalyticsAnalyticsListRequest body) throws ApiException List the individual event records matching an analytics query. Usecolumnsto choose the attributes returned on each row,sortto order the rows, andlimitto cap how many are returned.- Parameters:
body- (required)- Returns:
- ApiResponse<ProductAnalyticsAnalyticsListResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 429 Too many requests -
-
queryProductAnalyticsListWithHttpInfoAsync
public CompletableFuture<ApiResponse<ProductAnalyticsAnalyticsListResponse>> queryProductAnalyticsListWithHttpInfoAsync(ProductAnalyticsAnalyticsListRequest body) List analytics events.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<ProductAnalyticsAnalyticsListResponse>>
-
queryProductAnalyticsRetentionGrid
public ProductAnalyticsRetentionGridResponse queryProductAnalyticsRetentionGrid(ProductAnalyticsRetentionGridRequest body) throws ApiException Compute a retention grid.- Parameters:
body- The retention grid query. (required)- Returns:
- ProductAnalyticsRetentionGridResponse
- Throws:
ApiException- if fails to make API call
-
queryProductAnalyticsRetentionGridAsync
public CompletableFuture<ProductAnalyticsRetentionGridResponse> queryProductAnalyticsRetentionGridAsync(ProductAnalyticsRetentionGridRequest body) Compute a retention grid.- Parameters:
body- The retention grid query. (required)- Returns:
- CompletableFuture<ProductAnalyticsRetentionGridResponse>
-
queryProductAnalyticsRetentionGridWithHttpInfo
public ApiResponse<ProductAnalyticsRetentionGridResponse> queryProductAnalyticsRetentionGridWithHttpInfo(ProductAnalyticsRetentionGridRequest body) throws ApiException Compute a retention grid, showing how much of each cohort came back over each subsequent period. Rows are cohorts, columns are return periods, and each cell holds the count and rate of entities that returned.- Parameters:
body- The retention grid query. (required)- Returns:
- ApiResponse<ProductAnalyticsRetentionGridResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 429 Too many requests -
-
queryProductAnalyticsRetentionGridWithHttpInfoAsync
public CompletableFuture<ApiResponse<ProductAnalyticsRetentionGridResponse>> queryProductAnalyticsRetentionGridWithHttpInfoAsync(ProductAnalyticsRetentionGridRequest body) Compute a retention grid.- Parameters:
body- The retention grid query. (required)- Returns:
- CompletableFuture<ApiResponse<ProductAnalyticsRetentionGridResponse>>
-
queryProductAnalyticsRetentionList
public ProductAnalyticsRetentionListResponse queryProductAnalyticsRetentionList(ProductAnalyticsRetentionListRequest body) throws ApiException List the entities behind a retention cell.- Parameters:
body- The retention list query. (required)- Returns:
- ProductAnalyticsRetentionListResponse
- Throws:
ApiException- if fails to make API call
-
queryProductAnalyticsRetentionListAsync
public CompletableFuture<ProductAnalyticsRetentionListResponse> queryProductAnalyticsRetentionListAsync(ProductAnalyticsRetentionListRequest body) List the entities behind a retention cell.- Parameters:
body- The retention list query. (required)- Returns:
- CompletableFuture<ProductAnalyticsRetentionListResponse>
-
queryProductAnalyticsRetentionListWithHttpInfo
public ApiResponse<ProductAnalyticsRetentionListResponse> queryProductAnalyticsRetentionListWithHttpInfo(ProductAnalyticsRetentionListRequest body) throws ApiException List the individual users or accounts counted in one cell of the retention grid. Setcomputation_scopeto the cohort and return period you want to examine.- Parameters:
body- The retention list query. (required)- Returns:
- ApiResponse<ProductAnalyticsRetentionListResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 429 Too many requests -
-
queryProductAnalyticsRetentionListWithHttpInfoAsync
public CompletableFuture<ApiResponse<ProductAnalyticsRetentionListResponse>> queryProductAnalyticsRetentionListWithHttpInfoAsync(ProductAnalyticsRetentionListRequest body) List the entities behind a retention cell.- Parameters:
body- The retention list query. (required)- Returns:
- CompletableFuture<ApiResponse<ProductAnalyticsRetentionListResponse>>
-
queryProductAnalyticsRetentionScalar
public ProductAnalyticsScalarResponse queryProductAnalyticsRetentionScalar(ProductAnalyticsFormulaRetentionRequest body) throws ApiException Compute retention scalar values.- Parameters:
body- The retention scalar query. (required)- Returns:
- ProductAnalyticsScalarResponse
- Throws:
ApiException- if fails to make API call
-
queryProductAnalyticsRetentionScalarAsync
public CompletableFuture<ProductAnalyticsScalarResponse> queryProductAnalyticsRetentionScalarAsync(ProductAnalyticsFormulaRetentionRequest body) Compute retention scalar values.- Parameters:
body- The retention scalar query. (required)- Returns:
- CompletableFuture<ProductAnalyticsScalarResponse>
-
queryProductAnalyticsRetentionScalarWithHttpInfo
public ApiResponse<ProductAnalyticsScalarResponse> queryProductAnalyticsRetentionScalarWithHttpInfo(ProductAnalyticsFormulaRetentionRequest body) throws ApiException Compute retention as a single value per group, suitable for a query value or top list widget.- Parameters:
body- The retention scalar query. (required)- Returns:
- ApiResponse<ProductAnalyticsScalarResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 429 Too many requests -
-
queryProductAnalyticsRetentionScalarWithHttpInfoAsync
public CompletableFuture<ApiResponse<ProductAnalyticsScalarResponse>> queryProductAnalyticsRetentionScalarWithHttpInfoAsync(ProductAnalyticsFormulaRetentionRequest body) Compute retention scalar values.- Parameters:
body- The retention scalar query. (required)- Returns:
- CompletableFuture<ApiResponse<ProductAnalyticsScalarResponse>>
-
queryProductAnalyticsRetentionTimeseries
public ProductAnalyticsTimeseriesResponse queryProductAnalyticsRetentionTimeseries(ProductAnalyticsFormulaRetentionRequest body) throws ApiException Compute retention timeseries.- Parameters:
body- The retention timeseries query. (required)- Returns:
- ProductAnalyticsTimeseriesResponse
- Throws:
ApiException- if fails to make API call
-
queryProductAnalyticsRetentionTimeseriesAsync
public CompletableFuture<ProductAnalyticsTimeseriesResponse> queryProductAnalyticsRetentionTimeseriesAsync(ProductAnalyticsFormulaRetentionRequest body) Compute retention timeseries.- Parameters:
body- The retention timeseries query. (required)- Returns:
- CompletableFuture<ProductAnalyticsTimeseriesResponse>
-
queryProductAnalyticsRetentionTimeseriesWithHttpInfo
public ApiResponse<ProductAnalyticsTimeseriesResponse> queryProductAnalyticsRetentionTimeseriesWithHttpInfo(ProductAnalyticsFormulaRetentionRequest body) throws ApiException Compute retention as a series of values over time, using the same query definition as the retention grid.- Parameters:
body- The retention timeseries query. (required)- Returns:
- ApiResponse<ProductAnalyticsTimeseriesResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 429 Too many requests -
-
queryProductAnalyticsRetentionTimeseriesWithHttpInfoAsync
public CompletableFuture<ApiResponse<ProductAnalyticsTimeseriesResponse>> queryProductAnalyticsRetentionTimeseriesWithHttpInfoAsync(ProductAnalyticsFormulaRetentionRequest body) Compute retention timeseries.- Parameters:
body- The retention timeseries query. (required)- Returns:
- CompletableFuture<ApiResponse<ProductAnalyticsTimeseriesResponse>>
-
queryProductAnalyticsSankey
public ProductAnalyticsSankeyResponse queryProductAnalyticsSankey(ProductAnalyticsSankeyRequest body) throws ApiException Compute a Sankey diagram.- Parameters:
body- The Sankey diagram query. (required)- Returns:
- ProductAnalyticsSankeyResponse
- Throws:
ApiException- if fails to make API call
-
queryProductAnalyticsSankeyAsync
public CompletableFuture<ProductAnalyticsSankeyResponse> queryProductAnalyticsSankeyAsync(ProductAnalyticsSankeyRequest body) Compute a Sankey diagram.- Parameters:
body- The Sankey diagram query. (required)- Returns:
- CompletableFuture<ProductAnalyticsSankeyResponse>
-
queryProductAnalyticsSankeyWithHttpInfo
public ApiResponse<ProductAnalyticsSankeyResponse> queryProductAnalyticsSankeyWithHttpInfo(ProductAnalyticsSankeyRequest body) throws ApiException Compute a Sankey diagram of how sessions flow between the values of two facets, showing where users continue and where they drop off at each step.- Parameters:
body- The Sankey diagram query. (required)- Returns:
- ApiResponse<ProductAnalyticsSankeyResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 429 Too many requests -
-
queryProductAnalyticsSankeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<ProductAnalyticsSankeyResponse>> queryProductAnalyticsSankeyWithHttpInfoAsync(ProductAnalyticsSankeyRequest body) Compute a Sankey diagram.- Parameters:
body- The Sankey diagram query. (required)- Returns:
- CompletableFuture<ApiResponse<ProductAnalyticsSankeyResponse>>
-
queryProductAnalyticsScalar
public ProductAnalyticsScalarResponse queryProductAnalyticsScalar(ProductAnalyticsAnalyticsRequest body) throws ApiException Compute scalar analytics.- Parameters:
body- (required)- Returns:
- ProductAnalyticsScalarResponse
- Throws:
ApiException- if fails to make API call
-
queryProductAnalyticsScalarAsync
public CompletableFuture<ProductAnalyticsScalarResponse> queryProductAnalyticsScalarAsync(ProductAnalyticsAnalyticsRequest body) Compute scalar analytics.- Parameters:
body- (required)- Returns:
- CompletableFuture<ProductAnalyticsScalarResponse>
-
queryProductAnalyticsScalarWithHttpInfo
public ApiResponse<ProductAnalyticsScalarResponse> queryProductAnalyticsScalarWithHttpInfo(ProductAnalyticsAnalyticsRequest body) throws ApiException Compute scalar analytics results for Product Analytics data. Returns aggregated values (counts, averages, percentiles) optionally grouped by facets.- Parameters:
body- (required)- Returns:
- ApiResponse<ProductAnalyticsScalarResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 429 Too many requests -
-
queryProductAnalyticsScalarWithHttpInfoAsync
public CompletableFuture<ApiResponse<ProductAnalyticsScalarResponse>> queryProductAnalyticsScalarWithHttpInfoAsync(ProductAnalyticsAnalyticsRequest body) Compute scalar analytics.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<ProductAnalyticsScalarResponse>>
-
queryProductAnalyticsTimeseries
public ProductAnalyticsTimeseriesResponse queryProductAnalyticsTimeseries(ProductAnalyticsAnalyticsRequest body) throws ApiException Compute timeseries analytics.- Parameters:
body- (required)- Returns:
- ProductAnalyticsTimeseriesResponse
- Throws:
ApiException- if fails to make API call
-
queryProductAnalyticsTimeseriesAsync
public CompletableFuture<ProductAnalyticsTimeseriesResponse> queryProductAnalyticsTimeseriesAsync(ProductAnalyticsAnalyticsRequest body) Compute timeseries analytics.- Parameters:
body- (required)- Returns:
- CompletableFuture<ProductAnalyticsTimeseriesResponse>
-
queryProductAnalyticsTimeseriesWithHttpInfo
public ApiResponse<ProductAnalyticsTimeseriesResponse> queryProductAnalyticsTimeseriesWithHttpInfo(ProductAnalyticsAnalyticsRequest body) throws ApiException Compute timeseries analytics results for Product Analytics data. Returns time-bucketed values for charts and trend analysis. Thecompute.intervalfield (milliseconds) is required for time bucketing.- Parameters:
body- (required)- Returns:
- ApiResponse<ProductAnalyticsTimeseriesResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 429 Too many requests -
-
queryProductAnalyticsTimeseriesWithHttpInfoAsync
public CompletableFuture<ApiResponse<ProductAnalyticsTimeseriesResponse>> queryProductAnalyticsTimeseriesWithHttpInfoAsync(ProductAnalyticsAnalyticsRequest body) Compute timeseries analytics.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<ProductAnalyticsTimeseriesResponse>>
-
submitProductAnalyticsEvent
public Object submitProductAnalyticsEvent(ProductAnalyticsServerSideEventItem body) throws ApiException Send server-side events.- Parameters:
body- Server-side event to send (JSON format). (required)- Returns:
- Object
- Throws:
ApiException- if fails to make API call
-
submitProductAnalyticsEventAsync
public CompletableFuture<Object> submitProductAnalyticsEventAsync(ProductAnalyticsServerSideEventItem body) Send server-side events.- Parameters:
body- Server-side event to send (JSON format). (required)- Returns:
- CompletableFuture<Object>
-
submitProductAnalyticsEventWithHttpInfo
public ApiResponse<Object> submitProductAnalyticsEventWithHttpInfo(ProductAnalyticsServerSideEventItem body) throws ApiException Send server-side events to Product Analytics. Server-side events are retained for 15 months.Server-Side events in Product Analytics are helpful for tracking events that occur on the server, as opposed to client-side events, which are captured by Real User Monitoring (RUM) SDKs. This allows for a more comprehensive view of the user journey by including actions that happen on the server. Typical examples could be
checkout.completedorpayment.processed.Ingested server-side events are integrated into Product Analytics to allow users to select and filter these events in the event picker, similar to how views or actions are handled.
Requirements: - At least one of
usr,account, orsessionmust be provided with a valid ID. - Theapplication.idmust reference a Product Analytics-enabled application.Custom Attributes: Any additional fields in the payload are flattened and searchable as facets. For example, a payload with
{"customer": {"tier": "premium"}}is searchable with the syntax@customer.tier:premiumin Datadog.The status codes answered by the HTTP API are: - 202: Accepted: The request has been accepted for processing - 400: Bad request (likely an issue in the payload formatting) - 401: Unauthorized (likely a missing API Key) - 403: Permission issue (likely using an invalid API Key) - 408: Request Timeout, request should be retried after some time - 413: Payload too large (batch is above 5MB uncompressed) - 429: Too Many Requests, request should be retried after some time - 500: Internal Server Error, the server encountered an unexpected condition that prevented it from fulfilling the request, request should be retried after some time - 503: Service Unavailable, the server is not ready to handle the request probably because it is overloaded, request should be retried after some time
- Parameters:
body- Server-side event to send (JSON format). (required)- Returns:
- ApiResponse<Object>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 202 Request accepted for processing (always 202 empty JSON). - 400 Bad Request - 401 Unauthorized - 403 Forbidden - 408 Request Timeout - 413 Payload Too Large - 429 Too Many Requests - 500 Internal Server Error - 503 Service Unavailable -
-
submitProductAnalyticsEventWithHttpInfoAsync
public CompletableFuture<ApiResponse<Object>> submitProductAnalyticsEventWithHttpInfoAsync(ProductAnalyticsServerSideEventItem body) Send server-side events.- Parameters:
body- Server-side event to send (JSON format). (required)- Returns:
- CompletableFuture<ApiResponse<Object>>
-