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/lib/datadog_api_client/v1/api/monitors_api.rb b/lib/datadog_api_client/v1/api/monitors_api.rb index 24041dcf2bd..4b1c7521017 100644 --- a/lib/datadog_api_client/v1/api/monitors_api.rb +++ b/lib/datadog_api_client/v1/api/monitors_api.rb @@ -127,6 +127,7 @@ def create_monitor(body, opts = {}) # - 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 [Synthetics API](https://docs.datadoghq.com/api/latest/synthetics/) documentation for more information. @@ -318,6 +319,18 @@ def create_monitor(body, opts = {}) # - for `forecast` supports `>` # - `#` 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](https://docs.datadoghq.com/logs/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 [Monitor] Create a monitor request body. # @param opts [Hash] the optional parameters # @return [Array<(Monitor, Integer, Hash)>] Monitor data, response status code and response headers diff --git a/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb b/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb index dad6c31d97b..ca36395cec7 100644 --- a/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb +++ b/lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb @@ -30,5 +30,6 @@ class MonitorFormulaAndFunctionEventsDataSource SPANS = "spans".freeze DATABASE_QUERIES = "database_queries".freeze NETWORK = "network".freeze + NETWORK_PATH = "network_path".freeze end end diff --git a/lib/datadog_api_client/v1/models/monitor_type.rb b/lib/datadog_api_client/v1/models/monitor_type.rb index d8d40b1745a..d071517dd6c 100644 --- a/lib/datadog_api_client/v1/models/monitor_type.rb +++ b/lib/datadog_api_client/v1/models/monitor_type.rb @@ -41,5 +41,6 @@ class MonitorType NETWORK_PERFORMANCE_ALERT = "network-performance alert".freeze COST_ALERT = "cost alert".freeze DATA_QUALITY_ALERT = "data-quality alert".freeze + NETWORK_PATH_ALERT = "network-path alert".freeze end end