From c397b6b258d3d94ad98e8de944ba6d52ff8fa052 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 15 Jan 2026 23:10:28 +0000 Subject: [PATCH] Regenerate client from commit 938d9b0 of spec repo --- .generator/schemas/v1/openapi.yaml | 23 +++++++++++++++---- .../api/client/v1/api/MonitorsApi.java | 22 ++++++++++++++++++ ...torFormulaAndFunctionEventsDataSource.java | 5 +++- .../api/client/v1/model/MonitorType.java | 4 +++- 4 files changed, 47 insertions(+), 7 deletions(-) diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 150bd49be13..2881c1da86f 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -7973,6 +7973,7 @@ components: - spans - database_queries - network + - network_path example: rum type: string x-enum-varnames: @@ -7985,6 +7986,7 @@ components: - SPANS - DATABASE_QUERIES - NETWORK + - NETWORK_PATH MonitorFormulaAndFunctionQueryDefinition: description: A formula and function query. oneOf: @@ -8830,6 +8832,7 @@ components: - network-performance alert - cost alert - data-quality alert + - network-path alert example: query alert type: string x-enum-varnames: @@ -8853,6 +8856,7 @@ components: - NETWORK_PERFORMANCE_ALERT - COST_ALERT - DATA_QUALITY_ALERT + - NETWORK_PATH_ALERT MonitorUpdateRequest: description: Object describing a monitor update request. properties: @@ -31643,10 +31647,11 @@ paths: alert`\n- watchdog: `event-v2 alert`\n- event-v2: `event-v2 alert`\n- audit: `audit alert`\n- error-tracking: `error-tracking alert`\n- database-monitoring: `database-monitoring alert`\n- network-performance: `network-performance alert`\n- - cloud cost: `cost alert`\n\n**Notes**:\n- Synthetic monitors are created through - the Synthetics API. See the [Synthetics API](https://docs.datadoghq.com/api/latest/synthetics/) - documentation for more information.\n- Log monitors require an unscoped App - Key.\n\n#### Query Types\n\n##### Metric Alert Query\n\nExample: `time_aggr(time_window):space_aggr:metric{tags} + cloud cost: `cost alert`\n- network-path: `network-path alert`\n\n**Notes**:\n- + Synthetic monitors are created through the Synthetics API. See the [Synthetics + API](https://docs.datadoghq.com/api/latest/synthetics/) documentation for + more information.\n- Log monitors require an unscoped App Key.\n\n#### Query + Types\n\n##### Metric Alert Query\n\nExample: `time_aggr(time_window):space_aggr:metric{tags} [by {key}] operator #`\n\n- `time_aggr`: avg, sum, max, min, change, or pct_change\n- `time_window`: `last_#m` (with `#` between 1 and 10080 depending on the monitor type) or `last_#h`(with `#` between 1 and 168 depending on the monitor type) @@ -31776,7 +31781,15 @@ paths: \ - for `threshold` supports `<`, `<=`, `>`, `>=`, `==`, or `!=`\n - for `change` supports `>`, `<`\n - for `anomaly` supports `>=`\n - for `forecast` supports `>`\n- `#` an integer or decimal number used to set the - threshold." + threshold.\n\n**Network Path Alert Query**\n\nExample: `network-path(query).index(index_name).rollup(rollup_method[, + measure]).last(time_window) operator #`\n\n- `query` The search query - following + the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/).\n- + `index_name` The data type to monitor on - supports `netpath-path` and `netpath-hop`.\n- + `rollup_method` The stats roll-up method - supports `count`, `avg`, and `cardinality`.\n- + `measure` For `avg` and cardinality `rollup_method` - specify the measure + or the facet name you want to use.\n- `time_window` #m (between 1 and 2880), + #h (between 1 and 48).\n- `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.\n- + `#` an integer or decimal number used to set the threshold." operationId: CreateMonitor requestBody: content: diff --git a/src/main/java/com/datadog/api/client/v1/api/MonitorsApi.java b/src/main/java/com/datadog/api/client/v1/api/MonitorsApi.java index 19a7de551a3..af38a3413e3 100644 --- a/src/main/java/com/datadog/api/client/v1/api/MonitorsApi.java +++ b/src/main/java/com/datadog/api/client/v1/api/MonitorsApi.java @@ -253,6 +253,7 @@ public CompletableFuture createMonitorAsync(Monitor body) { *
  • database-monitoring: database-monitoring alert *
  • network-performance: network-performance alert *
  • cloud cost: cost alert + *
  • network-path: network-path alert * * *

    Notes: - Synthetic monitors are created through the Synthetics API. See the @@ -565,6 +566,27 @@ public CompletableFuture createMonitorAsync(Monitor body) { *

  • # an integer or decimal number used to set the threshold. * * + *

    Network Path Alert Query + * + *

    Example: + * network-path(query).index(index_name).rollup(rollup_method[, measure]).last(time_window) operator # + * + * + *

      + *
    • query The search query - following the Log search syntax. + *
    • index_name The data type to monitor on - supports netpath-path + * and netpath-hop. + *
    • rollup_method The stats roll-up method - supports count, + * avg, and cardinality. + *
    • measure For avg and cardinality rollup_method - + * specify the measure or the facet name you want to use. + *
    • time_window #m (between 1 and 2880), #h (between 1 and 48). + *
    • operator <, <=, >, + * >=, ==, or !=. + *
    • # an integer or decimal number used to set the threshold. + *
    + * * @param body Create a monitor request body. (required) * @return ApiResponse<Monitor> * @throws ApiException if fails to make API call diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventsDataSource.java b/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventsDataSource.java index 6dc1e32bd51..26038c804d2 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventsDataSource.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventsDataSource.java @@ -36,7 +36,8 @@ public class MonitorFormulaAndFunctionEventsDataSource extends ModelEnum "logs", "spans", "database_queries", - "network")); + "network", + "network_path")); public static final MonitorFormulaAndFunctionEventsDataSource RUM = new MonitorFormulaAndFunctionEventsDataSource("rum"); @@ -56,6 +57,8 @@ public class MonitorFormulaAndFunctionEventsDataSource extends ModelEnum new MonitorFormulaAndFunctionEventsDataSource("database_queries"); public static final MonitorFormulaAndFunctionEventsDataSource NETWORK = new MonitorFormulaAndFunctionEventsDataSource("network"); + public static final MonitorFormulaAndFunctionEventsDataSource NETWORK_PATH = + new MonitorFormulaAndFunctionEventsDataSource("network_path"); MonitorFormulaAndFunctionEventsDataSource(String value) { super(value, allowedValues); diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorType.java b/src/main/java/com/datadog/api/client/v1/model/MonitorType.java index 53fece59b34..06b258100fb 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorType.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorType.java @@ -47,7 +47,8 @@ public class MonitorType extends ModelEnum { "database-monitoring alert", "network-performance alert", "cost alert", - "data-quality alert")); + "data-quality alert", + "network-path alert")); public static final MonitorType COMPOSITE = new MonitorType("composite"); public static final MonitorType EVENT_ALERT = new MonitorType("event alert"); @@ -71,6 +72,7 @@ public class MonitorType extends ModelEnum { new MonitorType("network-performance alert"); public static final MonitorType COST_ALERT = new MonitorType("cost alert"); public static final MonitorType DATA_QUALITY_ALERT = new MonitorType("data-quality alert"); + public static final MonitorType NETWORK_PATH_ALERT = new MonitorType("network-path alert"); MonitorType(String value) { super(value, allowedValues);