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 PaginationIterableWhen 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
*/