Skip to content

Commit 3fa182e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 938d9b0 of spec repo
1 parent 94e5072 commit 3fa182e

File tree

4 files changed

+39
-7
lines changed

4 files changed

+39
-7
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 data type to monitor on - supports `netpath-path` and `netpath-hop`.\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:

src/datadog_api_client/v1/api/monitors_api.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ def create_monitor(
404404
* database-monitoring: ``database-monitoring alert``
405405
* network-performance: ``network-performance alert``
406406
* cloud cost: ``cost alert``
407+
* network-path: ``network-path alert``
407408
408409
**Notes** :
409410
@@ -606,6 +607,18 @@ def create_monitor(
606607
607608
* ``#`` an integer or decimal number used to set the threshold.
608609
610+
**Network Path Alert Query**
611+
612+
Example: ``network-path(query).index(index_name).rollup(rollup_method[, measure]).last(time_window) operator #``
613+
614+
* ``query`` The search query - following the `Log search syntax <https://docs.datadoghq.com/logs/search_syntax/>`_.
615+
* ``index_name`` The data type to monitor on - supports ``netpath-path`` and ``netpath-hop``.
616+
* ``rollup_method`` The stats roll-up method - supports ``count`` , ``avg`` , and ``cardinality``.
617+
* ``measure`` For ``avg`` and cardinality ``rollup_method`` - specify the measure or the facet name you want to use.
618+
* ``time_window`` #m (between 1 and 2880), #h (between 1 and 48).
619+
* ``operator`` ``<`` , ``<=`` , ``>`` , ``>=`` , ``==`` , or ``!=``.
620+
* ``#`` an integer or decimal number used to set the threshold.
621+
609622
:param body: Create a monitor request body.
610623
:type body: Monitor
611624
:rtype: Monitor

src/datadog_api_client/v1/model/monitor_formula_and_function_events_data_source.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class MonitorFormulaAndFunctionEventsDataSource(ModelSimple):
1616
"""
1717
Data source for event platform-based queries.
1818
19-
:param value: Must be one of ["rum", "ci_pipelines", "ci_tests", "audit", "events", "logs", "spans", "database_queries", "network"].
19+
:param value: Must be one of ["rum", "ci_pipelines", "ci_tests", "audit", "events", "logs", "spans", "database_queries", "network", "network_path"].
2020
:type value: str
2121
"""
2222

@@ -30,6 +30,7 @@ class MonitorFormulaAndFunctionEventsDataSource(ModelSimple):
3030
"spans",
3131
"database_queries",
3232
"network",
33+
"network_path",
3334
}
3435
RUM: ClassVar["MonitorFormulaAndFunctionEventsDataSource"]
3536
CI_PIPELINES: ClassVar["MonitorFormulaAndFunctionEventsDataSource"]
@@ -40,6 +41,7 @@ class MonitorFormulaAndFunctionEventsDataSource(ModelSimple):
4041
SPANS: ClassVar["MonitorFormulaAndFunctionEventsDataSource"]
4142
DATABASE_QUERIES: ClassVar["MonitorFormulaAndFunctionEventsDataSource"]
4243
NETWORK: ClassVar["MonitorFormulaAndFunctionEventsDataSource"]
44+
NETWORK_PATH: ClassVar["MonitorFormulaAndFunctionEventsDataSource"]
4345

4446
@cached_property
4547
def openapi_types(_):
@@ -59,3 +61,4 @@ def openapi_types(_):
5961
"database_queries"
6062
)
6163
MonitorFormulaAndFunctionEventsDataSource.NETWORK = MonitorFormulaAndFunctionEventsDataSource("network")
64+
MonitorFormulaAndFunctionEventsDataSource.NETWORK_PATH = MonitorFormulaAndFunctionEventsDataSource("network_path")

src/datadog_api_client/v1/model/monitor_type.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class MonitorType(ModelSimple):
1616
"""
1717
The type of the monitor. For more information about `type`, see the [monitor options](https://docs.datadoghq.com/monitors/guide/monitor_api_options/) docs.
1818
19-
:param value: Must be one of ["composite", "event alert", "log alert", "metric alert", "process alert", "query alert", "rum alert", "service check", "synthetics alert", "trace-analytics alert", "slo alert", "event-v2 alert", "audit alert", "ci-pipelines alert", "ci-tests alert", "error-tracking alert", "database-monitoring alert", "network-performance alert", "cost alert", "data-quality alert"].
19+
:param value: Must be one of ["composite", "event alert", "log alert", "metric alert", "process alert", "query alert", "rum alert", "service check", "synthetics alert", "trace-analytics alert", "slo alert", "event-v2 alert", "audit alert", "ci-pipelines alert", "ci-tests alert", "error-tracking alert", "database-monitoring alert", "network-performance alert", "cost alert", "data-quality alert", "network-path alert"].
2020
:type value: str
2121
"""
2222

@@ -41,6 +41,7 @@ class MonitorType(ModelSimple):
4141
"network-performance alert",
4242
"cost alert",
4343
"data-quality alert",
44+
"network-path alert",
4445
}
4546
COMPOSITE: ClassVar["MonitorType"]
4647
EVENT_ALERT: ClassVar["MonitorType"]
@@ -62,6 +63,7 @@ class MonitorType(ModelSimple):
6263
NETWORK_PERFORMANCE_ALERT: ClassVar["MonitorType"]
6364
COST_ALERT: ClassVar["MonitorType"]
6465
DATA_QUALITY_ALERT: ClassVar["MonitorType"]
66+
NETWORK_PATH_ALERT: ClassVar["MonitorType"]
6567

6668
@cached_property
6769
def openapi_types(_):
@@ -90,3 +92,4 @@ def openapi_types(_):
9092
MonitorType.NETWORK_PERFORMANCE_ALERT = MonitorType("network-performance alert")
9193
MonitorType.COST_ALERT = MonitorType("cost alert")
9294
MonitorType.DATA_QUALITY_ALERT = MonitorType("data-quality alert")
95+
MonitorType.NETWORK_PATH_ALERT = MonitorType("network-path alert")

0 commit comments

Comments
 (0)