From 8ef2f7cef942048188e20524ebbc80d46858880b Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 23 Oct 2026 16:50:54 +0000 Subject: [PATCH] Regenerate client from commit 5e7a63b of spec repo --- .generator/schemas/v2/openapi.yaml | 62 ++++++++++++++----- .../api/client/v2/api/ProcessesApi.java | 33 ++++++---- .../client/v2/model/ProcessScalarQuery.java | 17 +++-- .../v2/model/ProcessTimeseriesQuery.java | 17 +++-- 4 files changed, 93 insertions(+), 36 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 96bcf5becc2..3093b31a0a0 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -96597,7 +96597,9 @@ components: x-enum-varnames: - PROCESS ProcessScalarQuery: - description: A query for host-level process metrics such as CPU and memory usage. + description: |- + Per-process metrics from Live Processes. Queries without `aggregator` fail. To scope to one process, + set `tag_filters` to its `identifying_tags` from `GET /api/v2/processes`. properties: aggregator: $ref: "#/components/schemas/MetricsAggregator" @@ -96609,11 +96611,15 @@ components: description: Whether CPU metrics should be normalized by core count. type: boolean limit: - description: Maximum number of results to return. + description: |- + Maximum number of processes or groups to return. Large values can fail with an `Unprocessable + Content` error. If so, retry with a smaller limit. format: int64 type: integer metric: - description: The process metric to query. + description: |- + The process metric to query, such as `process.stat.cpu.total_pct`, `process.stat.memory.rss`, or + `process.stat.memory.vms`. example: process.stat.cpu.total_pct type: string name: @@ -96623,7 +96629,9 @@ components: sort: $ref: "#/components/schemas/QuerySortOrder" tag_filters: - description: Tag filters to narrow down processes. + description: |- + Tags to narrow down processes. To scope to one process, use its `identifying_tags` from + `GET /api/v2/processes`, for example `host:web-01` and `pid:1234`. items: description: A tag filter value. example: "env:prod" @@ -96735,7 +96743,9 @@ components: x-enum-varnames: - PROCESS ProcessTimeseriesQuery: - description: A query for host-level process metrics such as CPU and memory usage. + description: |- + Per-process metrics from Live Processes over time, such as CPU and memory usage. To scope to one + process, set `tag_filters` to its `identifying_tags` from `GET /api/v2/processes`. properties: cross_org_uuids: $ref: "#/components/schemas/CrossOrgUuids" @@ -96745,11 +96755,15 @@ components: description: Whether CPU metrics should be normalized by core count. type: boolean limit: - description: Maximum number of results to return. + description: |- + Maximum number of processes or groups to return. Large values can fail with an `Unprocessable + Content` error. If so, retry with a smaller limit. format: int64 type: integer metric: - description: The process metric to query. + description: |- + The process metric to query, such as `process.stat.cpu.total_pct`, `process.stat.memory.rss`, or + `process.stat.memory.vms`. example: process.stat.cpu.total_pct type: string name: @@ -96759,7 +96773,9 @@ components: sort: $ref: "#/components/schemas/QuerySortOrder" tag_filters: - description: Tag filters to narrow down processes. + description: |- + Tags to narrow down processes. To scope to one process, use its `identifying_tags` from + `GET /api/v2/processes`, for example `host:web-01` and `pid:1234`. items: description: A tag filter value. example: "env:prod" @@ -210901,16 +210917,28 @@ paths: - dashboards_write /api/v2/processes: get: - description: Get all processes for your organization. + description: |- + Get processes collected by Live Processes for your organization. One request covers a window of + at most 1 hour that starts within the past 36 hours. To cover a longer period, make one request + per hour. Older data is not available from this endpoint. + + When a process includes `identifying_tags`, pass them as `tag_filters` in a `process` data source + query to `/api/v2/query/scalar` or `/api/v2/query/timeseries` to get CPU or memory metrics for that + one process. If absent, don't substitute an empty filter, which would query all processes. operationId: ListProcesses parameters: - - description: String to search processes by. + - description: |- + Free-text search over process fields such as the executable and user. When it contains several + words, a process must match all of them. Use `tags` for exact values such as host. in: query name: search required: false schema: type: string - - description: Comma-separated list of tags to filter processes by. + - description: |- + Comma-separated `key:value` tags. A process must match every tag. Wildcards, negation + (`-key:value`), spaces, and `IN (...)` are not supported. To cover several hosts, make one + request per host. example: account:prod,user:admin in: query name: tags @@ -210918,9 +210946,9 @@ paths: schema: type: string - description: |- - Unix timestamp (number of seconds since epoch) of the start of the query window. - If not provided, the start of the query window will be 15 minutes before the `to` timestamp. If neither - `from` nor `to` are provided, the query window will be `[now - 15m, now]`. + Start of the query window, in Unix seconds. Must be within the past 36 hours and at most 1 hour + before `to`. If not provided, the start of the query window is 15 minutes before the `to` timestamp. + If neither `from` nor `to` is provided, the query window is `[now - 15m, now]`. in: query name: from required: false @@ -210928,9 +210956,9 @@ paths: format: int64 type: integer - description: |- - Unix timestamp (number of seconds since epoch) of the end of the query window. - If not provided, the end of the query window will be 15 minutes after the `from` timestamp. If neither - `from` nor `to` are provided, the query window will be `[now - 15m, now]`. + End of the query window, in Unix seconds. Must be at most 1 hour after `from`. If not provided, the + end of the query window is 15 minutes after the `from` timestamp. If neither `from` nor `to` is + provided, the query window is `[now - 15m, now]`. in: query name: to required: false diff --git a/src/main/java/com/datadog/api/client/v2/api/ProcessesApi.java b/src/main/java/com/datadog/api/client/v2/api/ProcessesApi.java index 170166f9bc6..e6e56742e63 100644 --- a/src/main/java/com/datadog/api/client/v2/api/ProcessesApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/ProcessesApi.java @@ -59,7 +59,9 @@ public static class ListProcessesOptionalParameters { /** * Set search. * - * @param search String to search processes by. (optional) + * @param search Free-text search over process fields such as the executable and user. When it + * contains several words, a process must match all of them. Use tags for exact + * values such as host. (optional) * @return ListProcessesOptionalParameters */ public ListProcessesOptionalParameters search(String search) { @@ -70,7 +72,9 @@ public ListProcessesOptionalParameters search(String search) { /** * Set tags. * - * @param tags Comma-separated list of tags to filter processes by. (optional) + * @param tags Comma-separated key:value tags. A process must match every tag. + * Wildcards, negation (-key:value), spaces, and IN (...) are not + * supported. To cover several hosts, make one request per host. (optional) * @return ListProcessesOptionalParameters */ public ListProcessesOptionalParameters tags(String tags) { @@ -81,10 +85,10 @@ public ListProcessesOptionalParameters tags(String tags) { /** * Set from. * - * @param from Unix timestamp (number of seconds since epoch) of the start of the query window. - * If not provided, the start of the query window will be 15 minutes before the to - * timestamp. If neither from nor to are provided, the - * query window will be [now - 15m, now]. (optional) + * @param from Start of the query window, in Unix seconds. Must be within the past 36 hours and + * at most 1 hour before to. If not provided, the start of the query window is + * 15 minutes before the to timestamp. If neither from nor + * to is provided, the query window is [now - 15m, now]. (optional) * @return ListProcessesOptionalParameters */ public ListProcessesOptionalParameters from(Long from) { @@ -95,10 +99,10 @@ public ListProcessesOptionalParameters from(Long from) { /** * Set to. * - * @param to Unix timestamp (number of seconds since epoch) of the end of the query window. If - * not provided, the end of the query window will be 15 minutes after the from - * timestamp. If neither from nor to are provided, the query - * window will be [now - 15m, now]. (optional) + * @param to End of the query window, in Unix seconds. Must be at most 1 hour after from + * . If not provided, the end of the query window is 15 minutes after the from + * timestamp. If neither from nor to is provided, the + * query window is [now - 15m, now]. (optional) * @return ListProcessesOptionalParameters */ public ListProcessesOptionalParameters to(Long to) { @@ -243,7 +247,14 @@ public PaginationIterable listProcessesWithPagination( } /** - * Get all processes for your organization. + * Get processes collected by Live Processes for your organization. One request covers a window of + * at most 1 hour that starts within the past 36 hours. To cover a longer period, make one request + * per hour. Older data is not available from this endpoint. + * + *

When a process includes identifying_tags, pass them as tag_filters + * in a process data source query to /api/v2/query/scalar or + * /api/v2/query/timeseries to get CPU or memory metrics for that one process. If absent, + * don't substitute an empty filter, which would query all processes. * * @param parameters Optional parameters for the request. * @return ApiResponse<ProcessSummariesResponse> diff --git a/src/main/java/com/datadog/api/client/v2/model/ProcessScalarQuery.java b/src/main/java/com/datadog/api/client/v2/model/ProcessScalarQuery.java index 6c1f4094f04..b5fc6e5959c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ProcessScalarQuery.java +++ b/src/main/java/com/datadog/api/client/v2/model/ProcessScalarQuery.java @@ -19,7 +19,11 @@ import java.util.Map; import java.util.Objects; -/** A query for host-level process metrics such as CPU and memory usage. */ +/** + * Per-process metrics from Live Processes. Queries without aggregator fail. To scope + * to one process, set tag_filters to its identifying_tags from + * GET /api/v2/processes. + */ @JsonPropertyOrder({ ProcessScalarQuery.JSON_PROPERTY_AGGREGATOR, ProcessScalarQuery.JSON_PROPERTY_CROSS_ORG_UUIDS, @@ -187,7 +191,9 @@ public ProcessScalarQuery limit(Long limit) { } /** - * Maximum number of results to return. + * Maximum number of processes or groups to return. Large values can fail with an + * Unprocessable + * Content error. If so, retry with a smaller limit. * * @return limit */ @@ -208,7 +214,8 @@ public ProcessScalarQuery metric(String metric) { } /** - * The process metric to query. + * The process metric to query, such as process.stat.cpu.total_pct, + * process.stat.memory.rss, or process.stat.memory.vms. * * @return metric */ @@ -281,7 +288,9 @@ public ProcessScalarQuery addTagFiltersItem(String tagFiltersItem) { } /** - * Tag filters to narrow down processes. + * Tags to narrow down processes. To scope to one process, use its identifying_tags + * from GET /api/v2/processes, for example host:web-01 and + * pid:1234. * * @return tagFilters */ diff --git a/src/main/java/com/datadog/api/client/v2/model/ProcessTimeseriesQuery.java b/src/main/java/com/datadog/api/client/v2/model/ProcessTimeseriesQuery.java index 1eaedb8a08e..9b7c082323e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ProcessTimeseriesQuery.java +++ b/src/main/java/com/datadog/api/client/v2/model/ProcessTimeseriesQuery.java @@ -19,7 +19,11 @@ import java.util.Map; import java.util.Objects; -/** A query for host-level process metrics such as CPU and memory usage. */ +/** + * Per-process metrics from Live Processes over time, such as CPU and memory usage. To scope to one + * process, set tag_filters to its identifying_tags from + * GET /api/v2/processes. + */ @JsonPropertyOrder({ ProcessTimeseriesQuery.JSON_PROPERTY_CROSS_ORG_UUIDS, ProcessTimeseriesQuery.JSON_PROPERTY_DATA_SOURCE, @@ -158,7 +162,9 @@ public ProcessTimeseriesQuery limit(Long limit) { } /** - * Maximum number of results to return. + * Maximum number of processes or groups to return. Large values can fail with an + * Unprocessable + * Content error. If so, retry with a smaller limit. * * @return limit */ @@ -179,7 +185,8 @@ public ProcessTimeseriesQuery metric(String metric) { } /** - * The process metric to query. + * The process metric to query, such as process.stat.cpu.total_pct, + * process.stat.memory.rss, or process.stat.memory.vms. * * @return metric */ @@ -252,7 +259,9 @@ public ProcessTimeseriesQuery addTagFiltersItem(String tagFiltersItem) { } /** - * Tag filters to narrow down processes. + * Tags to narrow down processes. To scope to one process, use its identifying_tags + * from GET /api/v2/processes, for example host:web-01 and + * pid:1234. * * @return tagFilters */