@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ProductAnalyticsApi extends Object
| Constructor and Description |
|---|
ProductAnalyticsApi() |
ProductAnalyticsApi(ApiClient apiClient) |
public ProductAnalyticsApi()
public ProductAnalyticsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic ProductAnalyticsScalarResponse queryProductAnalyticsScalar(ProductAnalyticsAnalyticsRequest body) throws ApiException
body - (required)ApiException - if fails to make API callpublic CompletableFuture<ProductAnalyticsScalarResponse> queryProductAnalyticsScalarAsync(ProductAnalyticsAnalyticsRequest body)
body - (required)public ApiResponse<ProductAnalyticsScalarResponse> queryProductAnalyticsScalarWithHttpInfo(ProductAnalyticsAnalyticsRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ProductAnalyticsScalarResponse>> queryProductAnalyticsScalarWithHttpInfoAsync(ProductAnalyticsAnalyticsRequest body)
body - (required)public ProductAnalyticsTimeseriesResponse queryProductAnalyticsTimeseries(ProductAnalyticsAnalyticsRequest body) throws ApiException
body - (required)ApiException - if fails to make API callpublic CompletableFuture<ProductAnalyticsTimeseriesResponse> queryProductAnalyticsTimeseriesAsync(ProductAnalyticsAnalyticsRequest body)
body - (required)public ApiResponse<ProductAnalyticsTimeseriesResponse> queryProductAnalyticsTimeseriesWithHttpInfo(ProductAnalyticsAnalyticsRequest body) throws ApiException
compute.interval field (milliseconds) is
required for time bucketing.body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ProductAnalyticsTimeseriesResponse>> queryProductAnalyticsTimeseriesWithHttpInfoAsync(ProductAnalyticsAnalyticsRequest body)
body - (required)public Object submitProductAnalyticsEvent(ProductAnalyticsServerSideEventItem body) throws ApiException
body - Server-side event to send (JSON format). (required)ApiException - if fails to make API callpublic CompletableFuture<Object> submitProductAnalyticsEventAsync(ProductAnalyticsServerSideEventItem body)
body - Server-side event to send (JSON format). (required)public ApiResponse<Object> submitProductAnalyticsEventWithHttpInfo(ProductAnalyticsServerSideEventItem body) throws ApiException
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.completed or
payment.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, or
session must be provided with a valid ID. - The application.id must
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:premium in 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
body - Server-side event to send (JSON format). (required)ApiException - if fails to make API call| 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 | - |
public CompletableFuture<ApiResponse<Object>> submitProductAnalyticsEventWithHttpInfoAsync(ProductAnalyticsServerSideEventItem body)
body - Server-side event to send (JSON format). (required)Copyright © 2026. All rights reserved.