diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index 23d3b7fb9b8..b491129c0db 100644
--- a/.generator/schemas/v2/openapi.yaml
+++ b/.generator/schemas/v2/openapi.yaml
@@ -61215,7 +61215,8 @@ components:
- rollout_steps
type: object
FacetInfoRequest:
- description: Request body for retrieving facet value information for a specified attribute with optional filtering.
+ description: >-
+ Request body for retrieving facet value information for a specified attribute with optional filtering.
example:
data:
attributes:
@@ -61290,7 +61291,8 @@ components:
- USERS_FACET_INFO_REQUEST
- ACCOUNTS_FACET_INFO_REQUEST
FacetInfoResponse:
- description: Response containing facet information for an attribute, including its distinct values and occurrence counts.
+ description: >-
+ Response containing facet information for an attribute, including its distinct values and occurrence counts.
example:
data:
attributes:
@@ -67957,7 +67959,8 @@ components:
- TEAM_OWNERS
- WATCHES
GetMappingResponse:
- description: Response containing the entity attribute mapping configuration including all available attributes and their properties.
+ description: >-
+ Response containing the entity attribute mapping configuration including all available attributes and their properties.
example:
data:
attributes:
@@ -89771,7 +89774,8 @@ components:
type: array
type: object
ListConnectionsResponseDataAttributesConnectionsItems:
- description: Details of a single data source connection, including its fields, join configuration, and audit metadata.
+ description: >-
+ Details of a single data source connection, including its fields, join configuration, and audit metadata.
properties:
created_at:
description: Timestamp indicating when the connection was created.
@@ -114515,12 +114519,13 @@ components:
$ref: "#/components/schemas/ProductAnalyticsJourneyFunnelStep"
type: array
initial_count:
- description: Number of entities that entered the funnel.
+ description: |-
+ Number of entities that entered the funnel. The service does not return it today; use the `value`
+ of the first entry in `funnel_steps` instead.
example: 1200
format: int64
type: integer
required:
- - initial_count
- end_to_end_conversion_rate
- end_to_end_elapsed_time
- funnel_steps
@@ -114557,7 +114562,7 @@ components:
elapsed_time_to_next_step:
$ref: "#/components/schemas/ProductAnalyticsElapsedTime"
groups:
- description: Breakdown of this step by the requested group-by facets.
+ description: Breakdown of this step by the requested group-by facets. Omitted when the query has no group-by.
items:
$ref: "#/components/schemas/ProductAnalyticsJourneyFunnelStepGroup"
type: array
@@ -114566,8 +114571,8 @@ components:
example: A
type: string
unit:
- description: Unit of the elapsed time values.
- example: millisecond
+ description: The entity counted in `value`, such as `session` or `user`, set by the join key.
+ example: session
type: string
value:
description: Value of the computed metric at this step.
@@ -114579,7 +114584,6 @@ components:
- label
- unit
- elapsed_time_to_next_step
- - groups
type: object
ProductAnalyticsJourneyFunnelStepGroup:
description: Breakdown of a funnel step for one combination of group-by values.
@@ -114621,7 +114625,9 @@ components:
conversion_type:
$ref: "#/components/schemas/ProductAnalyticsJourneyConversionType"
entity_columns:
- description: Attribute columns to return for each row, in addition to the identity join key and `timestamp`.
+ description: |-
+ Attribute columns to return for each row, in addition to the identity join key and `timestamp`.
+ For example, `@usr.id` returns the user of each session.
items:
description: An attribute column to return.
type: string
@@ -115183,7 +115189,11 @@ components:
x-enum-varnames:
- CALENDAR
ProductAnalyticsRetentionCellScope:
- description: Narrows a retention query to a single cell, at the intersection of one cohort and one return period.
+ description: |-
+ Narrows a retention query to a single cell, at the intersection of one cohort and one return period.
+ Both indexes are zero-based. The cohort index plus the return period index must be lower than the number
+ of cohorts in the query window. For example, return period `1` of cohort `0` needs a window with at least
+ two cohort intervals, such as two weeks for weekly cohorts. Otherwise the request fails with `invalid index`.
properties:
cohort_target:
$ref: "#/components/schemas/ProductAnalyticsRetentionCohortTarget"
@@ -115253,7 +115263,9 @@ components:
- aggregation
type: object
ProductAnalyticsRetentionComputeMetric:
- description: The retention metric to compute, either an absolute count or a rate.
+ description: |-
+ The retention metric to compute. Use `__dd.retention` for the number of retained entities,
+ or `__dd.retention_rate` for the share of the cohort that was retained. No other value is accepted.
enum:
- "__dd.retention"
- "__dd.retention_rate"
@@ -115584,7 +115596,9 @@ components:
type:
$ref: "#/components/schemas/ProductAnalyticsRetentionIndexTargetType"
value:
- description: Zero-based index of the targeted cohort or return period.
+ description: |-
+ Zero-based index of the targeted cohort or return period. It must be lower than the number of cohorts
+ in the query window, which is the number of cohort intervals that start between `from` and `to`.
example: 0
format: int64
minimum: 0
@@ -115855,7 +115869,11 @@ components:
x-enum-varnames:
- AGGREGATED
ProductAnalyticsSankeyDefinition:
- description: The shape of the Sankey diagram, expressed as the facets to flow between and how many steps to show.
+ description: |-
+ The shape of the Sankey diagram: the step it is anchored on and how many steps to show.
+ Set exactly one of `source` or `target` to a step, and send the other one as an empty string.
+ Sending both returns `Invalid Sankey Mode`. Sending both empty starts the diagram from any view.
+ Each column of the diagram lists view names.
properties:
entries_per_step:
description: |-
@@ -115876,12 +115894,18 @@ components:
minimum: 0
type: integer
source:
- description: Facet forming the first column of the diagram.
- example: "@view.name"
+ description: |-
+ The step the diagram starts from. The diagram shows where sessions go after it.
+ It is a value, not a facet name: use a view name such as `/logs`, or a query matching one view
+ such as `@type:view @view.name:"/logs"`. Do not send `@view.name`.
+ Send an empty string when `target` is set.
+ example: '@type:view @view.name:"/logs"'
type: string
target:
- description: Facet forming the last column of the diagram.
- example: "@view.name"
+ description: |-
+ The step the diagram ends at. The diagram shows the paths sessions take to reach it.
+ It takes the same values as `source`. Send an empty string when `source` is set.
+ example: ""
type: string
required:
- source
@@ -117130,7 +117154,14 @@ components:
format: int64
type: integer
query:
- description: Filter expression using account attribute conditions to narrow results.
+ description: |-
+ Filter expression using account attribute conditions to narrow results.
+ Filter timestamp attributes such as `first_seen` with Unix timestamps in milliseconds, for example
+ `first_seen:>=1793750400000` or `first_seen:[1793750400000 TO 1794355200000]`, or with offsets in
+ milliseconds
+ relative to now, for example `first_seen:[-604800000 TO 0]` for the last 7 days. A range needs an upper
+ bound.
+ Date strings such as `2026-10-26T00:00:00Z` are not supported, because their colons break the query syntax.
type: string
select_columns:
description: List of account attribute column names to include in the response.
@@ -117171,20 +117202,19 @@ components:
event_query:
query: "@type:view AND @view.loading_time:>3000 AND @application.name:ecommerce-platform"
time_frame:
- end: 1761309676
- start: 1760100076
+ end: 1761309676000
+ start: 1760100076000
include_row_count: true
limit: 25
- query: user_org_id:5001 AND first_country_code:US AND first_browser_name:Chrome
+ query: first_country_code:US AND first_browser_name:Chrome
select_columns:
- user_id
- user_email
+ - user_name
+ - first_seen
+ - last_seen
- first_country_code
- first_browser_name
- - events_count
- - session_count
- - error_count
- - avg_loading_time
id: query_event_filtered_users_request
type: query_event_filtered_users_request
properties:
@@ -117217,17 +117247,32 @@ components:
format: int64
type: integer
query:
- description: Filter expression using user attribute conditions to narrow results.
+ description: |-
+ Filter expression on user profile attributes, such as `first_country_code:US`.
+ It uses the same attribute names as `select_columns`.
+ Filter timestamp attributes such as `first_seen` or `last_seen` with Unix timestamps in milliseconds, for
+ example
+ `first_seen:>=1793750400000` or `first_seen:[1793750400000 TO 1794355200000]`, or with offsets in
+ milliseconds
+ relative to now, for example `first_seen:[-604800000 TO 0]` for the last 7 days. A range needs an upper
+ bound.
+ Date strings such as `2026-10-26T00:00:00Z` are not supported, because their colons break the query syntax.
type: string
select_columns:
- description: List of user attribute column names to include in the response.
+ description: |-
+ User profile attribute names to include in the response, such as `user_id`, `user_email`, `user_name`,
+ `first_seen`, `last_seen`, or `first_country_code`. These are profile attributes, not event facets or
+ computed metrics. An unknown name returns a 400 error. Use the get mapping endpoint with entity `users` to
+ list the
+ attributes available in your organization. Omit it to return every attribute.
items:
description: Name of a user attribute column to include in the response.
type: string
type: array
type: object
QueryEventFilteredUsersRequestDataAttributesEventQuery:
- description: Event platform query used to filter users based on their event activity within a specified time window.
+ description: >-
+ Event platform query used to filter users based on their event activity within a specified time window.
properties:
query:
description: The event platform query expression for filtering users by their event activity.
@@ -117236,14 +117281,14 @@ components:
$ref: "#/components/schemas/QueryEventFilteredUsersRequestDataAttributesEventQueryTimeFrame"
type: object
QueryEventFilteredUsersRequestDataAttributesEventQueryTimeFrame:
- description: The time window defining the start and end of the event query period as Unix timestamps.
+ description: The time window of the event query, as Unix timestamps in milliseconds.
properties:
end:
- description: End of the time frame as a Unix timestamp in seconds.
+ description: End of the time frame as a Unix timestamp in milliseconds. `0` means now.
format: int64
type: integer
start:
- description: Start of the time frame as a Unix timestamp in seconds.
+ description: Start of the time frame as a Unix timestamp in milliseconds. It must not be after `end`.
format: int64
type: integer
type: object
@@ -117407,7 +117452,15 @@ components:
format: int64
type: integer
query:
- description: Filter expression using user attribute conditions to narrow results.
+ description: |-
+ Filter expression using user attribute conditions to narrow results.
+ Filter timestamp attributes such as `first_seen` or `last_seen` with Unix timestamps in milliseconds, for
+ example
+ `first_seen:>=1793750400000` or `first_seen:[1793750400000 TO 1794355200000]`, or with offsets in
+ milliseconds
+ relative to now, for example `first_seen:[-604800000 TO 0]` for the last 7 days. A range needs an upper
+ bound.
+ Date strings such as `2026-10-26T00:00:00Z` are not supported, because their colons break the query syntax.
type: string
select_columns:
description: List of user attribute column names to include in the response.
@@ -158491,7 +158544,8 @@ components:
- attributes
type: object
UpdateConnectionRequest:
- description: Request body for updating an existing data source connection by adding, modifying, or removing fields.
+ description: >-
+ Request body for updating an existing data source connection by adding, modifying, or removing fields.
example:
data:
attributes:
@@ -158519,7 +158573,8 @@ components:
$ref: "#/components/schemas/UpdateConnectionRequestData"
type: object
UpdateConnectionRequestData:
- description: The data object containing the resource identifier and attributes for updating an existing connection.
+ description: >-
+ The data object containing the resource identifier and attributes for updating an existing connection.
properties:
attributes:
$ref: "#/components/schemas/UpdateConnectionRequestDataAttributes"
@@ -158558,7 +158613,8 @@ components:
type: string
type: object
UpdateConnectionRequestDataAttributesFieldsToUpdateItems:
- description: Specification for updating an existing field in a connection, including which field to modify and the new values.
+ description: >-
+ Specification for updating an existing field in a connection, including which field to modify and the new values.
properties:
field_id:
description: The identifier of the existing field to update.
@@ -240003,6 +240059,9 @@ paths:
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
in `entity_columns`.
+ This endpoint only lists sessions: omit `query.search.join_keys` or set its `primary` to `@session.id`.
+ Any other primary join key, such as `@usr.id`, returns a 400 error.
+ To get the users behind the sessions, add `@usr.id` or `@usr.email` to `entity_columns`.
operationId: QueryProductAnalyticsJourneyList
requestBody:
content:
@@ -240289,6 +240348,8 @@ paths:
description: |-
List the individual users or accounts counted in one cell of the retention grid.
Set `computation_scope` to the cohort and return period you want to examine.
+ Indexes are zero-based, and the cohort index plus the return period index must be lower than the number of
+ cohorts between `from` and `to`. Make the window long enough to contain the return period you ask for.
operationId: QueryProductAnalyticsRetentionList
requestBody:
content:
@@ -240298,7 +240359,7 @@ paths:
value:
data:
attributes:
- from: 1756425600000
+ from: 1756684800000
query:
columns:
- field:
@@ -240325,7 +240386,7 @@ paths:
type: week
retention_entity: "@usr.id"
return_condition: conversion_on_or_after
- to: 1756857600000
+ to: 1759104000000
type: retention_list_request
schema:
$ref: "#/components/schemas/ProductAnalyticsRetentionListRequest"
@@ -240518,8 +240579,9 @@ paths:
/api/v2/product-analytics/sankey:
post:
description: |-
- Compute a Sankey diagram of how sessions flow between the values of two facets,
+ Compute a Sankey diagram of how sessions flow from or to one view,
showing where users continue and where they drop off at each step.
+ Set either `definition.source` or `definition.target`, and send the other one as an empty string.
operationId: QueryProductAnalyticsSankey
requestBody:
content:
@@ -240532,8 +240594,8 @@ paths:
definition:
entries_per_step: 10
number_of_steps: 3
- source: "@view.name"
- target: "@view.name"
+ source: '@type:view @view.name:"/logs"'
+ target: ""
search:
query: "@type:view"
time:
@@ -240579,7 +240641,11 @@ paths:
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/product-analytics/users/event_filtered_query:
post:
- description: Query users filtered by both user properties and event platform data
+ description: |-
+ Query users filtered by both user properties and event platform data.
+ `event_query.query` selects users who have matching events in `event_query.time_frame`, which is in
+ milliseconds.
+ `query` and `select_columns` use user profile attribute names, not event facets.
operationId: QueryEventFilteredUsers
requestBody:
content:
@@ -240592,20 +240658,19 @@ paths:
event_query:
query: "@type:view AND @view.loading_time:>3000 AND @application.name:ecommerce-platform"
time_frame:
- end: 1761309676
- start: 1760100076
+ end: 1761309676000
+ start: 1760100076000
include_row_count: true
limit: 25
- query: user_org_id:5001 AND first_country_code:US AND first_browser_name:Chrome
+ query: first_country_code:US AND first_browser_name:Chrome
select_columns:
- user_id
- user_email
+ - user_name
+ - first_seen
+ - last_seen
- first_country_code
- first_browser_name
- - events_count
- - session_count
- - error_count
- - avg_loading_time
id: query_event_filtered_users_request
type: query_event_filtered_users_request
schema:
@@ -240768,7 +240833,8 @@ paths:
delete:
description: |-
Delete a Product Analytics user profile.
- Deletion is asynchronous: the request is accepted and the profile is removed shortly after, usually within a few minutes.
+ Deletion is asynchronous: the request is accepted and the profile is removed shortly after, usually within a few
+ minutes.
This only deletes the user profile. To delete the RUM events of the user, use the RUM data deletion API.
operationId: DeleteUserProfile
parameters:
diff --git a/examples/v2/product-analytics/QueryProductAnalyticsSankey.java b/examples/v2/product-analytics/QueryProductAnalyticsSankey.java
index 4f3e3307cb0..09bd07d694a 100644
--- a/examples/v2/product-analytics/QueryProductAnalyticsSankey.java
+++ b/examples/v2/product-analytics/QueryProductAnalyticsSankey.java
@@ -36,8 +36,10 @@ public static void main(String[] args) {
new ProductAnalyticsSankeyDefinition()
.entriesPerStep(10L)
.numberOfSteps(3L)
- .source("@view.name")
- .target("@view.name"))
+ .source("""
+@type:view @view.name:"/logs"
+""")
+ .target(""))
.search(
new ProductAnalyticsSankeySearch()
.audienceFilters(
diff --git a/examples/v2/rum-audience-management/QueryEventFilteredUsers.java b/examples/v2/rum-audience-management/QueryEventFilteredUsers.java
index 633346b7c3f..efc275d5bb2 100644
--- a/examples/v2/rum-audience-management/QueryEventFilteredUsers.java
+++ b/examples/v2/rum-audience-management/QueryEventFilteredUsers.java
@@ -32,23 +32,20 @@ public static void main(String[] args) {
+ " @application.name:ecommerce-platform")
.timeFrame(
new QueryEventFilteredUsersRequestDataAttributesEventQueryTimeFrame()
- .end(1761309676L)
- .start(1760100076L)))
+ .end(1761309676000L)
+ .start(1760100076000L)))
.includeRowCount(true)
.limit(25L)
- .query(
- "user_org_id:5001 AND first_country_code:US AND"
- + " first_browser_name:Chrome")
+ .query("first_country_code:US AND first_browser_name:Chrome")
.selectColumns(
Arrays.asList(
"user_id",
"user_email",
+ "user_name",
+ "first_seen",
+ "last_seen",
"first_country_code",
- "first_browser_name",
- "events_count",
- "session_count",
- "error_count",
- "avg_loading_time")))
+ "first_browser_name")))
.id("query_event_filtered_users_request")
.type(
QueryEventFilteredUsersRequestDataType.QUERY_EVENT_FILTERED_USERS_REQUEST));
diff --git a/src/main/java/com/datadog/api/client/v2/api/ProductAnalyticsApi.java b/src/main/java/com/datadog/api/client/v2/api/ProductAnalyticsApi.java
index a36f7cc50fa..7fde1c3cad0 100644
--- a/src/main/java/com/datadog/api/client/v2/api/ProductAnalyticsApi.java
+++ b/src/main/java/com/datadog/api/client/v2/api/ProductAnalyticsApi.java
@@ -257,7 +257,11 @@ public ProductAnalyticsJourneyListResponse queryProductAnalyticsJourneyList(
/**
* 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 in
- * entity_columns.
+ * entity_columns. This endpoint only lists sessions: omit
+ * query.search.join_keys or set its primary to @session.id. Any
+ * other primary join key, such as @usr.id, returns a 400 error. To get the users
+ * behind the sessions, add @usr.id or @usr.email to
+ * entity_columns.
*
* @param body (required)
* @return ApiResponse<ProductAnalyticsJourneyListResponse>
@@ -1049,7 +1053,10 @@ public ProductAnalyticsRetentionListResponse queryProductAnalyticsRetentionList(
/**
* List the individual users or accounts counted in one cell of the retention grid. Set
- * computation_scope to the cohort and return period you want to examine.
+ * computation_scope to the cohort and return period you want to examine. Indexes are
+ * zero-based, and the cohort index plus the return period index must be lower than the number of
+ * cohorts between from and to. Make the window long enough to contain
+ * the return period you ask for.
*
* @param body The retention list query. (required)
* @return ApiResponse<ProductAnalyticsRetentionListResponse>
@@ -1526,8 +1533,9 @@ public CompletableFuture queryProductAnalyticsSa
}
/**
- * 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 of how sessions flow from or to one view, showing where users continue
+ * and where they drop off at each step. Set either definition.source or
+ * definition.target, and send the other one as an empty string.
*
* @param body The Sankey diagram query. (required)
* @return ApiResponse<ProductAnalyticsSankeyResponse>
diff --git a/src/main/java/com/datadog/api/client/v2/api/RumAudienceManagementApi.java b/src/main/java/com/datadog/api/client/v2/api/RumAudienceManagementApi.java
index ca99f54a5b3..d29586e308f 100644
--- a/src/main/java/com/datadog/api/client/v2/api/RumAudienceManagementApi.java
+++ b/src/main/java/com/datadog/api/client/v2/api/RumAudienceManagementApi.java
@@ -1314,7 +1314,10 @@ public CompletableFuture queryEventFilteredUsersAsync(
}
/**
- * Query users filtered by both user properties and event platform data
+ * Query users filtered by both user properties and event platform data. event_query.query
+ * selects users who have matching events in event_query.time_frame, which is
+ * in milliseconds. query and select_columns use user profile attribute
+ * names, not event facets.
*
* @param body (required)
* @return ApiResponse<QueryResponse>
diff --git a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsJourneyFunnelResponseAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsJourneyFunnelResponseAttributes.java
index 438303de8b7..5e61cca164b 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsJourneyFunnelResponseAttributes.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsJourneyFunnelResponseAttributes.java
@@ -52,8 +52,7 @@ public ProductAnalyticsJourneyFunnelResponseAttributes(
@JsonProperty(required = true, value = JSON_PROPERTY_END_TO_END_ELAPSED_TIME)
ProductAnalyticsElapsedTime endToEndElapsedTime,
@JsonProperty(required = true, value = JSON_PROPERTY_FUNNEL_STEPS)
- List funnelSteps,
- @JsonProperty(required = true, value = JSON_PROPERTY_INITIAL_COUNT) Long initialCount) {
+ List funnelSteps) {
this.endToEndConversionRate = endToEndConversionRate;
this.endToEndElapsedTime = endToEndElapsedTime;
this.unparsed |= endToEndElapsedTime.unparsed;
@@ -61,7 +60,6 @@ public ProductAnalyticsJourneyFunnelResponseAttributes(
for (ProductAnalyticsJourneyFunnelStep item : funnelSteps) {
this.unparsed |= item.unparsed;
}
- this.initialCount = initialCount;
}
public ProductAnalyticsJourneyFunnelResponseAttributes endToEndConversionRate(
@@ -152,12 +150,14 @@ public ProductAnalyticsJourneyFunnelResponseAttributes initialCount(Long initial
}
/**
- * Number of entities that entered the funnel.
+ * Number of entities that entered the funnel. The service does not return it today; use the
+ * value of the first entry in funnel_steps instead.
*
* @return initialCount
*/
+ @jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_INITIAL_COUNT)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getInitialCount() {
return initialCount;
}
diff --git a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsJourneyFunnelStep.java b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsJourneyFunnelStep.java
index a49f3d161c5..b527b98d3f7 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsJourneyFunnelStep.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsJourneyFunnelStep.java
@@ -35,7 +35,7 @@ public class ProductAnalyticsJourneyFunnelStep {
private ProductAnalyticsElapsedTime elapsedTimeToNextStep;
public static final String JSON_PROPERTY_GROUPS = "groups";
- private List groups = new ArrayList<>();
+ private List groups = null;
public static final String JSON_PROPERTY_LABEL = "label";
private String label;
@@ -52,17 +52,11 @@ public ProductAnalyticsJourneyFunnelStep() {}
public ProductAnalyticsJourneyFunnelStep(
@JsonProperty(required = true, value = JSON_PROPERTY_ELAPSED_TIME_TO_NEXT_STEP)
ProductAnalyticsElapsedTime elapsedTimeToNextStep,
- @JsonProperty(required = true, value = JSON_PROPERTY_GROUPS)
- List groups,
@JsonProperty(required = true, value = JSON_PROPERTY_LABEL) String label,
@JsonProperty(required = true, value = JSON_PROPERTY_UNIT) String unit,
@JsonProperty(required = true, value = JSON_PROPERTY_VALUE) Double value) {
this.elapsedTimeToNextStep = elapsedTimeToNextStep;
this.unparsed |= elapsedTimeToNextStep.unparsed;
- this.groups = groups;
- for (ProductAnalyticsJourneyFunnelStepGroup item : groups) {
- this.unparsed |= item.unparsed;
- }
this.label = label;
this.unit = unit;
this.value = value;
@@ -96,26 +90,33 @@ public void setElapsedTimeToNextStep(ProductAnalyticsElapsedTime elapsedTimeToNe
public ProductAnalyticsJourneyFunnelStep groups(
List groups) {
this.groups = groups;
- for (ProductAnalyticsJourneyFunnelStepGroup item : groups) {
- this.unparsed |= item.unparsed;
+ if (groups != null) {
+ for (ProductAnalyticsJourneyFunnelStepGroup item : groups) {
+ this.unparsed |= item.unparsed;
+ }
}
return this;
}
public ProductAnalyticsJourneyFunnelStep addGroupsItem(
ProductAnalyticsJourneyFunnelStepGroup groupsItem) {
+ if (this.groups == null) {
+ this.groups = new ArrayList<>();
+ }
this.groups.add(groupsItem);
this.unparsed |= groupsItem.unparsed;
return this;
}
/**
- * Breakdown of this step by the requested group-by facets.
+ * Breakdown of this step by the requested group-by facets. Omitted when the query has no
+ * group-by.
*
* @return groups
*/
+ @jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_GROUPS)
- @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getGroups() {
return groups;
}
@@ -155,7 +156,8 @@ public ProductAnalyticsJourneyFunnelStep unit(String unit) {
}
/**
- * Unit of the elapsed time values.
+ * The entity counted in value, such as session or user,
+ * set by the join key.
*
* @return unit
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsJourneyListQuery.java b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsJourneyListQuery.java
index d433ce881e2..d554b0fb082 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsJourneyListQuery.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsJourneyListQuery.java
@@ -155,7 +155,7 @@ public ProductAnalyticsJourneyListQuery addEntityColumnsItem(String entityColumn
/**
* Attribute columns to return for each row, in addition to the identity join key and
- * timestamp.
+ * timestamp. For example, @usr.id returns the user of each session.
*
* @return entityColumns
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionCellScope.java b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionCellScope.java
index 61381786f5c..0a4ea64a91b 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionCellScope.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionCellScope.java
@@ -19,7 +19,10 @@
/**
* Narrows a retention query to a single cell, at the intersection of one cohort and one return
- * period.
+ * period. Both indexes are zero-based. The cohort index plus the return period index must be lower
+ * than the number of cohorts in the query window. For example, return period 1 of
+ * cohort 0 needs a window with at least two cohort intervals, such as two weeks for
+ * weekly cohorts. Otherwise the request fails with invalid index.
*/
@JsonPropertyOrder({
ProductAnalyticsRetentionCellScope.JSON_PROPERTY_COHORT_TARGET,
diff --git a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionCompute.java b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionCompute.java
index 498873c85eb..bd4d40a4742 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionCompute.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionCompute.java
@@ -71,7 +71,9 @@ public ProductAnalyticsRetentionCompute metric(ProductAnalyticsRetentionComputeM
}
/**
- * The retention metric to compute, either an absolute count or a rate.
+ * The retention metric to compute. Use __dd.retention for the number of retained
+ * entities, or __dd.retention_rate for the share of the cohort that was retained. No
+ * other value is accepted.
*
* @return metric
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionComputeMetric.java b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionComputeMetric.java
index 4dcd2492f3b..2aabc87ef1f 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionComputeMetric.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionComputeMetric.java
@@ -18,7 +18,11 @@
import java.util.HashSet;
import java.util.Set;
-/** The retention metric to compute, either an absolute count or a rate. */
+/**
+ * The retention metric to compute. Use __dd.retention for the number of retained
+ * entities, or __dd.retention_rate for the share of the cohort that was retained. No
+ * other value is accepted.
+ */
@JsonSerialize(
using =
ProductAnalyticsRetentionComputeMetric.ProductAnalyticsRetentionComputeMetricSerializer
diff --git a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionIndexTarget.java b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionIndexTarget.java
index 9fc3d872042..f69a88bdc77 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionIndexTarget.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionIndexTarget.java
@@ -74,7 +74,9 @@ public ProductAnalyticsRetentionIndexTarget value(Long value) {
}
/**
- * Zero-based index of the targeted cohort or return period. minimum: 0
+ * Zero-based index of the targeted cohort or return period. It must be lower than the number of
+ * cohorts in the query window, which is the number of cohort intervals that start between
+ * from and to. minimum: 0
*
* @return value
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionListQuery.java b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionListQuery.java
index 6747576ee98..2ddbddbcc58 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionListQuery.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsRetentionListQuery.java
@@ -107,7 +107,10 @@ public ProductAnalyticsRetentionListQuery computationScope(
/**
* Narrows a retention query to a single cell, at the intersection of one cohort and one return
- * period.
+ * period. Both indexes are zero-based. The cohort index plus the return period index must be
+ * lower than the number of cohorts in the query window. For example, return period 1
+ * of cohort 0 needs a window with at least two cohort intervals, such as two weeks
+ * for weekly cohorts. Otherwise the request fails with invalid index.
*
* @return computationScope
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsSankeyDefinition.java b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsSankeyDefinition.java
index 552643f0957..d98c357b795 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsSankeyDefinition.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsSankeyDefinition.java
@@ -18,8 +18,10 @@
import java.util.Objects;
/**
- * The shape of the Sankey diagram, expressed as the facets to flow between and how many steps to
- * show.
+ * The shape of the Sankey diagram: the step it is anchored on and how many steps to show. Set
+ * exactly one of source or target to a step, and send the other one as an
+ * empty string. Sending both returns Invalid Sankey Mode. Sending both empty starts
+ * the diagram from any view. Each column of the diagram lists view names.
*/
@JsonPropertyOrder({
ProductAnalyticsSankeyDefinition.JSON_PROPERTY_ENTRIES_PER_STEP,
@@ -104,7 +106,10 @@ public ProductAnalyticsSankeyDefinition source(String source) {
}
/**
- * Facet forming the first column of the diagram.
+ * The step the diagram starts from. The diagram shows where sessions go after it. It is a value,
+ * not a facet name: use a view name such as /logs, or a query matching one view such
+ * as @type:view @view.name:"/logs". Do not send @view.name. Send an
+ * empty string when target is set.
*
* @return source
*/
@@ -124,7 +129,8 @@ public ProductAnalyticsSankeyDefinition target(String target) {
}
/**
- * Facet forming the last column of the diagram.
+ * The step the diagram ends at. The diagram shows the paths sessions take to reach it. It takes
+ * the same values as source. Send an empty string when source is set.
*
* @return target
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsSankeyRequestAttributes.java b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsSankeyRequestAttributes.java
index 30e08c67262..b3affadfd02 100644
--- a/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsSankeyRequestAttributes.java
+++ b/src/main/java/com/datadog/api/client/v2/model/ProductAnalyticsSankeyRequestAttributes.java
@@ -61,8 +61,10 @@ public ProductAnalyticsSankeyRequestAttributes definition(
}
/**
- * The shape of the Sankey diagram, expressed as the facets to flow between and how many steps to
- * show.
+ * The shape of the Sankey diagram: the step it is anchored on and how many steps to show. Set
+ * exactly one of source or target to a step, and send the other one as
+ * an empty string. Sending both returns Invalid Sankey Mode. Sending both empty
+ * starts the diagram from any view. Each column of the diagram lists view names.
*
* @return definition
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/QueryAccountRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/QueryAccountRequestDataAttributes.java
index e566a72febe..606adf86dc6 100644
--- a/src/main/java/com/datadog/api/client/v2/model/QueryAccountRequestDataAttributes.java
+++ b/src/main/java/com/datadog/api/client/v2/model/QueryAccountRequestDataAttributes.java
@@ -72,7 +72,13 @@ public QueryAccountRequestDataAttributes query(String query) {
}
/**
- * Filter expression using account attribute conditions to narrow results.
+ * Filter expression using account attribute conditions to narrow results. Filter timestamp
+ * attributes such as first_seen with Unix timestamps in milliseconds, for example
+ * first_seen:>=1793750400000 or first_seen:[1793750400000 TO 1794355200000]
+ * , or with offsets in milliseconds relative to now, for example
+ * first_seen:[-604800000 TO 0] for the last 7 days. A range needs an upper bound. Date
+ * strings such as 2026-10-26T00:00:00Z are not supported, because their colons break
+ * the query syntax.
*
* @return query
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/QueryEventFilteredUsersRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/QueryEventFilteredUsersRequestDataAttributes.java
index eddda60eb55..0ee97418ff9 100644
--- a/src/main/java/com/datadog/api/client/v2/model/QueryEventFilteredUsersRequestDataAttributes.java
+++ b/src/main/java/com/datadog/api/client/v2/model/QueryEventFilteredUsersRequestDataAttributes.java
@@ -120,7 +120,14 @@ public QueryEventFilteredUsersRequestDataAttributes query(String query) {
}
/**
- * Filter expression using user attribute conditions to narrow results.
+ * Filter expression on user profile attributes, such as first_country_code:US. It
+ * uses the same attribute names as select_columns. Filter timestamp attributes such
+ * as first_seen or last_seen with Unix timestamps in milliseconds, for
+ * example first_seen:>=1793750400000 or
+ * first_seen:[1793750400000 TO 1794355200000], or with offsets in milliseconds relative to
+ * now, for example first_seen:[-604800000 TO 0] for the last 7 days. A range needs
+ * an upper bound. Date strings such as 2026-10-26T00:00:00Z are not supported,
+ * because their colons break the query syntax.
*
* @return query
*/
@@ -150,7 +157,12 @@ public QueryEventFilteredUsersRequestDataAttributes addSelectColumnsItem(
}
/**
- * List of user attribute column names to include in the response.
+ * User profile attribute names to include in the response, such as user_id,
+ * user_email, user_name, first_seen, last_seen, or
+ * first_country_code. These are profile attributes, not event facets or computed
+ * metrics. An unknown name returns a 400 error. Use the get mapping endpoint with entity
+ * users to list the attributes available in your organization. Omit it to return every
+ * attribute.
*
* @return selectColumns
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/QueryEventFilteredUsersRequestDataAttributesEventQuery.java b/src/main/java/com/datadog/api/client/v2/model/QueryEventFilteredUsersRequestDataAttributesEventQuery.java
index 3dccbd07c8f..dc6331108d9 100644
--- a/src/main/java/com/datadog/api/client/v2/model/QueryEventFilteredUsersRequestDataAttributesEventQuery.java
+++ b/src/main/java/com/datadog/api/client/v2/model/QueryEventFilteredUsersRequestDataAttributesEventQuery.java
@@ -63,7 +63,7 @@ public QueryEventFilteredUsersRequestDataAttributesEventQuery timeFrame(
}
/**
- * The time window defining the start and end of the event query period as Unix timestamps.
+ * The time window of the event query, as Unix timestamps in milliseconds.
*
* @return timeFrame
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/QueryEventFilteredUsersRequestDataAttributesEventQueryTimeFrame.java b/src/main/java/com/datadog/api/client/v2/model/QueryEventFilteredUsersRequestDataAttributesEventQueryTimeFrame.java
index 26520de57aa..fad37efef6f 100644
--- a/src/main/java/com/datadog/api/client/v2/model/QueryEventFilteredUsersRequestDataAttributesEventQueryTimeFrame.java
+++ b/src/main/java/com/datadog/api/client/v2/model/QueryEventFilteredUsersRequestDataAttributesEventQueryTimeFrame.java
@@ -16,7 +16,7 @@
import java.util.Map;
import java.util.Objects;
-/** The time window defining the start and end of the event query period as Unix timestamps. */
+/** The time window of the event query, as Unix timestamps in milliseconds. */
@JsonPropertyOrder({
QueryEventFilteredUsersRequestDataAttributesEventQueryTimeFrame.JSON_PROPERTY_END,
QueryEventFilteredUsersRequestDataAttributesEventQueryTimeFrame.JSON_PROPERTY_START
@@ -37,7 +37,7 @@ public QueryEventFilteredUsersRequestDataAttributesEventQueryTimeFrame end(Long
}
/**
- * End of the time frame as a Unix timestamp in seconds.
+ * End of the time frame as a Unix timestamp in milliseconds. 0 means now.
*
* @return end
*/
@@ -58,7 +58,8 @@ public QueryEventFilteredUsersRequestDataAttributesEventQueryTimeFrame start(Lon
}
/**
- * Start of the time frame as a Unix timestamp in seconds.
+ * Start of the time frame as a Unix timestamp in milliseconds. It must not be after end
+ * .
*
* @return start
*/
diff --git a/src/main/java/com/datadog/api/client/v2/model/QueryUsersRequestDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/QueryUsersRequestDataAttributes.java
index bbac275b9be..c5789a0c966 100644
--- a/src/main/java/com/datadog/api/client/v2/model/QueryUsersRequestDataAttributes.java
+++ b/src/main/java/com/datadog/api/client/v2/model/QueryUsersRequestDataAttributes.java
@@ -72,7 +72,13 @@ public QueryUsersRequestDataAttributes query(String query) {
}
/**
- * Filter expression using user attribute conditions to narrow results.
+ * Filter expression using user attribute conditions to narrow results. Filter timestamp
+ * attributes such as first_seen or last_seen with Unix timestamps in
+ * milliseconds, for example first_seen:>=1793750400000 or
+ * first_seen:[1793750400000 TO 1794355200000], or with offsets in milliseconds relative to
+ * now, for example first_seen:[-604800000 TO 0] for the last 7 days. A range needs
+ * an upper bound. Date strings such as 2026-10-26T00:00:00Z are not supported,
+ * because their colons break the query syntax.
*
* @return query
*/
diff --git a/src/test/resources/com/datadog/api/client/v2/api/product_analytics.feature b/src/test/resources/com/datadog/api/client/v2/api/product_analytics.feature
index 1af45e54a76..8302c78cc7a 100644
--- a/src/test/resources/com/datadog/api/client/v2/api/product_analytics.feature
+++ b/src/test/resources/com/datadog/api/client/v2/api/product_analytics.feature
@@ -19,7 +19,7 @@ Feature: Product Analytics
Given a valid "appKeyAuth" key in the system
And operation "QueryProductAnalyticsSankey" enabled
And new "QueryProductAnalyticsSankey" request
- And body with value {"data": {"attributes": {"definition": {"entries_per_step": 10, "number_of_steps": 3, "source": "@view.name", "target": "@view.name"}, "search": {"audience_filters": {"accounts": [{"name": ""}], "formula": "u", "segments": [{"name": "", "segment_id": "00000000-0000-0000-0000-000000000000"}], "users": [{"name": "u", "query": "*"}]}, "join_keys": {"primary": "@session.id", "secondary": []}, "query": "@type:view"}, "time": {"from": 1756425600000, "to": 1756857600000}}, "type": "sankey_request"}}
+ And body with value {"data": {"attributes": {"definition": {"entries_per_step": 10, "number_of_steps": 3, "source": "@type:view @view.name:\"/logs\"", "target": ""}, "search": {"audience_filters": {"accounts": [{"name": ""}], "formula": "u", "segments": [{"name": "", "segment_id": "00000000-0000-0000-0000-000000000000"}], "users": [{"name": "u", "query": "*"}]}, "join_keys": {"primary": "@session.id", "secondary": []}, "query": "@type:view"}, "time": {"from": 1756425600000, "to": 1756857600000}}, "type": "sankey_request"}}
When the request is sent
Then the response status is 400 Bad Request
@@ -28,7 +28,7 @@ Feature: Product Analytics
Given a valid "appKeyAuth" key in the system
And operation "QueryProductAnalyticsSankey" enabled
And new "QueryProductAnalyticsSankey" request
- And body with value {"data": {"attributes": {"definition": {"entries_per_step": 10, "number_of_steps": 3, "source": "@view.name", "target": "@view.name"}, "search": {"audience_filters": {"accounts": [{"name": ""}], "formula": "u", "segments": [{"name": "", "segment_id": "00000000-0000-0000-0000-000000000000"}], "users": [{"name": "u", "query": "*"}]}, "join_keys": {"primary": "@session.id", "secondary": []}, "query": "@type:view"}, "time": {"from": 1756425600000, "to": 1756857600000}}, "type": "sankey_request"}}
+ And body with value {"data": {"attributes": {"definition": {"entries_per_step": 10, "number_of_steps": 3, "source": "@type:view @view.name:\"/logs\"", "target": ""}, "search": {"audience_filters": {"accounts": [{"name": ""}], "formula": "u", "segments": [{"name": "", "segment_id": "00000000-0000-0000-0000-000000000000"}], "users": [{"name": "u", "query": "*"}]}, "join_keys": {"primary": "@session.id", "secondary": []}, "query": "@type:view"}, "time": {"from": 1756425600000, "to": 1756857600000}}, "type": "sankey_request"}}
When the request is sent
Then the response status is 200 OK
diff --git a/src/test/resources/com/datadog/api/client/v2/api/rum_audience_management.feature b/src/test/resources/com/datadog/api/client/v2/api/rum_audience_management.feature
index e4514231dfe..f061598ebb1 100644
--- a/src/test/resources/com/datadog/api/client/v2/api/rum_audience_management.feature
+++ b/src/test/resources/com/datadog/api/client/v2/api/rum_audience_management.feature
@@ -85,7 +85,7 @@ Feature: Rum Audience Management
Scenario: Query event filtered users returns "Successful response with filtered user data" response
Given operation "QueryEventFilteredUsers" enabled
And new "QueryEventFilteredUsers" request
- And body with value {"data": {"attributes": {"event_query": {"query": "@type:view AND @view.loading_time:>3000 AND @application.name:ecommerce-platform", "time_frame": {"end": 1761309676, "start": 1760100076}}, "include_row_count": true, "limit": 25, "query": "user_org_id:5001 AND first_country_code:US AND first_browser_name:Chrome", "select_columns": ["user_id", "user_email", "first_country_code", "first_browser_name", "events_count", "session_count", "error_count", "avg_loading_time"]}, "id": "query_event_filtered_users_request", "type": "query_event_filtered_users_request"}}
+ And body with value {"data": {"attributes": {"event_query": {"query": "@type:view AND @view.loading_time:>3000 AND @application.name:ecommerce-platform", "time_frame": {"end": 1761309676000, "start": 1760100076000}}, "include_row_count": true, "limit": 25, "query": "first_country_code:US AND first_browser_name:Chrome", "select_columns": ["user_id", "user_email", "user_name", "first_seen", "last_seen", "first_country_code", "first_browser_name"]}, "id": "query_event_filtered_users_request", "type": "query_event_filtered_users_request"}}
When the request is sent
Then the response status is 200 Successful response with filtered user data