Skip to content

Commit 06f04d5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0170add of spec repo
1 parent 6823564 commit 06f04d5

File tree

4 files changed

+33
-5
lines changed

4 files changed

+33
-5
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7973,6 +7973,7 @@ components:
79737973
- spans
79747974
- database_queries
79757975
- network
7976+
- network_path
79767977
example: rum
79777978
type: string
79787979
x-enum-varnames:
@@ -7985,6 +7986,7 @@ components:
79857986
- SPANS
79867987
- DATABASE_QUERIES
79877988
- NETWORK
7989+
- NETWORK_PATH
79887990
MonitorFormulaAndFunctionQueryDefinition:
79897991
description: A formula and function query.
79907992
oneOf:
@@ -8830,6 +8832,7 @@ components:
88308832
- network-performance alert
88318833
- cost alert
88328834
- data-quality alert
8835+
- network-path alert
88338836
example: query alert
88348837
type: string
88358838
x-enum-varnames:
@@ -8853,6 +8856,7 @@ components:
88538856
- NETWORK_PERFORMANCE_ALERT
88548857
- COST_ALERT
88558858
- DATA_QUALITY_ALERT
8859+
- NETWORK_PATH_ALERT
88568860
MonitorUpdateRequest:
88578861
description: Object describing a monitor update request.
88588862
properties:
@@ -31643,10 +31647,11 @@ paths:
3164331647
alert`\n- watchdog: `event-v2 alert`\n- event-v2: `event-v2 alert`\n- audit:
3164431648
`audit alert`\n- error-tracking: `error-tracking alert`\n- database-monitoring:
3164531649
`database-monitoring alert`\n- network-performance: `network-performance alert`\n-
31646-
cloud cost: `cost alert`\n\n**Notes**:\n- Synthetic monitors are created through
31647-
the Synthetics API. See the [Synthetics API](https://docs.datadoghq.com/api/latest/synthetics/)
31648-
documentation for more information.\n- Log monitors require an unscoped App
31649-
Key.\n\n#### Query Types\n\n##### Metric Alert Query\n\nExample: `time_aggr(time_window):space_aggr:metric{tags}
31650+
cloud cost: `cost alert`\n- network-path: `network-path alert`\n\n**Notes**:\n-
31651+
Synthetic monitors are created through the Synthetics API. See the [Synthetics
31652+
API](https://docs.datadoghq.com/api/latest/synthetics/) documentation for
31653+
more information.\n- Log monitors require an unscoped App Key.\n\n#### Query
31654+
Types\n\n##### Metric Alert Query\n\nExample: `time_aggr(time_window):space_aggr:metric{tags}
3165031655
[by {key}] operator #`\n\n- `time_aggr`: avg, sum, max, min, change, or pct_change\n-
3165131656
`time_window`: `last_#m` (with `#` between 1 and 10080 depending on the monitor
3165231657
type) or `last_#h`(with `#` between 1 and 168 depending on the monitor type)
@@ -31776,7 +31781,15 @@ paths:
3177631781
\ - for `threshold` supports `<`, `<=`, `>`, `>=`, `==`, or `!=`\n -
3177731782
for `change` supports `>`, `<`\n - for `anomaly` supports `>=`\n - for
3177831783
`forecast` supports `>`\n- `#` an integer or decimal number used to set the
31779-
threshold."
31784+
threshold.\n\n**Network Path Alert Query**\n\nExample: `network-path(query).index(index_name).rollup(rollup_method[,
31785+
measure]).last(time_window) operator #`\n\n- `query` The search query - following
31786+
the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/).\n-
31787+
`index_name` The query source - supports `netpath-hop` and `netpath-path`.\n-
31788+
`rollup_method` The stats roll-up method - supports `count`, `avg`, and `cardinality`.\n-
31789+
`measure` For `avg` and cardinality `rollup_method` - specify the measure
31790+
or the facet name you want to use.\n- `time_window` #m (between 1 and 2880),
31791+
#h (between 1 and 48).\n- `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.\n-
31792+
`#` an integer or decimal number used to set the threshold."
3178031793
operationId: CreateMonitor
3178131794
requestBody:
3178231795
content:

lib/datadog_api_client/v1/api/monitors_api.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ def create_monitor(body, opts = {})
127127
# - database-monitoring: `database-monitoring alert`
128128
# - network-performance: `network-performance alert`
129129
# - cloud cost: `cost alert`
130+
# - network-path: `network-path alert`
130131
#
131132
# **Notes**:
132133
# - 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 = {})
318319
# - for `forecast` supports `>`
319320
# - `#` an integer or decimal number used to set the threshold.
320321
#
322+
# **Network Path Alert Query**
323+
#
324+
# Example: `network-path(query).index(index_name).rollup(rollup_method[, measure]).last(time_window) operator #`
325+
#
326+
# - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/).
327+
# - `index_name` The query source - supports `netpath-hop` and `netpath-path`.
328+
# - `rollup_method` The stats roll-up method - supports `count`, `avg`, and `cardinality`.
329+
# - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use.
330+
# - `time_window` #m (between 1 and 2880), #h (between 1 and 48).
331+
# - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
332+
# - `#` an integer or decimal number used to set the threshold.
333+
#
321334
# @param body [Monitor] Create a monitor request body.
322335
# @param opts [Hash] the optional parameters
323336
# @return [Array<(Monitor, Integer, Hash)>] Monitor data, response status code and response headers

lib/datadog_api_client/v1/models/monitor_formula_and_function_events_data_source.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ class MonitorFormulaAndFunctionEventsDataSource
3030
SPANS = "spans".freeze
3131
DATABASE_QUERIES = "database_queries".freeze
3232
NETWORK = "network".freeze
33+
NETWORK_PATH = "network_path".freeze
3334
end
3435
end

lib/datadog_api_client/v1/models/monitor_type.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@ class MonitorType
4141
NETWORK_PERFORMANCE_ALERT = "network-performance alert".freeze
4242
COST_ALERT = "cost alert".freeze
4343
DATA_QUALITY_ALERT = "data-quality alert".freeze
44+
NETWORK_PATH_ALERT = "network-path alert".freeze
4445
end
4546
end

0 commit comments

Comments
 (0)