Skip to content

Commit f8beb07

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0170add of spec repo
1 parent 17f8f4d commit f8beb07

File tree

4 files changed

+47
-7
lines changed

4 files changed

+47
-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 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:

src/main/java/com/datadog/api/client/v1/api/MonitorsApi.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ public CompletableFuture<Monitor> createMonitorAsync(Monitor body) {
253253
* <li>database-monitoring: <code>database-monitoring alert</code>
254254
* <li>network-performance: <code>network-performance alert</code>
255255
* <li>cloud cost: <code>cost alert</code>
256+
* <li>network-path: <code>network-path alert</code>
256257
* </ul>
257258
*
258259
* <p><strong>Notes</strong>: - Synthetic monitors are created through the Synthetics API. See the
@@ -565,6 +566,27 @@ public CompletableFuture<Monitor> createMonitorAsync(Monitor body) {
565566
* <li><code>#</code> an integer or decimal number used to set the threshold.
566567
* </ul>
567568
*
569+
* <p><strong>Network Path Alert Query</strong>
570+
*
571+
* <p>Example: <code>
572+
* network-path(query).index(index_name).rollup(rollup_method[, measure]).last(time_window) operator #
573+
* </code>
574+
*
575+
* <ul>
576+
* <li><code>query</code> The search query - following the <a
577+
* href="https://docs.datadoghq.com/logs/search_syntax/">Log search syntax</a>.
578+
* <li><code>index_name</code> The query source - supports <code>netpath-hop</code> and <code>
579+
* netpath-path</code>.
580+
* <li><code>rollup_method</code> The stats roll-up method - supports <code>count</code>, <code>
581+
* avg</code>, and <code>cardinality</code>.
582+
* <li><code>measure</code> For <code>avg</code> and cardinality <code>rollup_method</code> -
583+
* specify the measure or the facet name you want to use.
584+
* <li><code>time_window</code> #m (between 1 and 2880), #h (between 1 and 48).
585+
* <li><code>operator</code> <code>&lt;</code>, <code>&lt;=</code>, <code>&gt;</code>, <code>
586+
* &gt;=</code>, <code>==</code>, or <code>!=</code>.
587+
* <li><code>#</code> an integer or decimal number used to set the threshold.
588+
* </ul>
589+
*
568590
* @param body Create a monitor request body. (required)
569591
* @return ApiResponse&lt;Monitor&gt;
570592
* @throws ApiException if fails to make API call

src/main/java/com/datadog/api/client/v1/model/MonitorFormulaAndFunctionEventsDataSource.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public class MonitorFormulaAndFunctionEventsDataSource extends ModelEnum<String>
3636
"logs",
3737
"spans",
3838
"database_queries",
39-
"network"));
39+
"network",
40+
"network_path"));
4041

4142
public static final MonitorFormulaAndFunctionEventsDataSource RUM =
4243
new MonitorFormulaAndFunctionEventsDataSource("rum");
@@ -56,6 +57,8 @@ public class MonitorFormulaAndFunctionEventsDataSource extends ModelEnum<String>
5657
new MonitorFormulaAndFunctionEventsDataSource("database_queries");
5758
public static final MonitorFormulaAndFunctionEventsDataSource NETWORK =
5859
new MonitorFormulaAndFunctionEventsDataSource("network");
60+
public static final MonitorFormulaAndFunctionEventsDataSource NETWORK_PATH =
61+
new MonitorFormulaAndFunctionEventsDataSource("network_path");
5962

6063
MonitorFormulaAndFunctionEventsDataSource(String value) {
6164
super(value, allowedValues);

src/main/java/com/datadog/api/client/v1/model/MonitorType.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ public class MonitorType extends ModelEnum<String> {
4747
"database-monitoring alert",
4848
"network-performance alert",
4949
"cost alert",
50-
"data-quality alert"));
50+
"data-quality alert",
51+
"network-path alert"));
5152

5253
public static final MonitorType COMPOSITE = new MonitorType("composite");
5354
public static final MonitorType EVENT_ALERT = new MonitorType("event alert");
@@ -71,6 +72,7 @@ public class MonitorType extends ModelEnum<String> {
7172
new MonitorType("network-performance alert");
7273
public static final MonitorType COST_ALERT = new MonitorType("cost alert");
7374
public static final MonitorType DATA_QUALITY_ALERT = new MonitorType("data-quality alert");
75+
public static final MonitorType NETWORK_PATH_ALERT = new MonitorType("network-path alert");
7476

7577
MonitorType(String value) {
7678
super(value, allowedValues);

0 commit comments

Comments
 (0)