Skip to content

Commit 84500a9

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add network performance monitor type to API spec (#1674)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 65ab464 commit 84500a9

File tree

6 files changed

+50
-4
lines changed

6 files changed

+50
-4
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-07-02 14:51:00.055693",
8-
"spec_repo_commit": "1e8d5fca"
7+
"regenerated": "2024-07-02 18:17:50.120632",
8+
"spec_repo_commit": "464f0cec"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-02 14:51:00.073237",
13-
"spec_repo_commit": "1e8d5fca"
12+
"regenerated": "2024-07-02 18:17:50.138246",
13+
"spec_repo_commit": "464f0cec"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6831,6 +6831,7 @@ components:
68316831
- logs
68326832
- spans
68336833
- database_queries
6834+
- network_performance_queries
68346835
example: rum
68356836
type: string
68366837
x-enum-varnames:
@@ -6842,6 +6843,7 @@ components:
68426843
- LOGS
68436844
- SPANS
68446845
- DATABASE_QUERIES
6846+
- NETWORK_PERFORMANCE_QUERIES
68456847
MonitorFormulaAndFunctionQueryDefinition:
68466848
description: A formula and function query.
68476849
oneOf:
@@ -7665,6 +7667,7 @@ components:
76657667
- ci-tests alert
76667668
- error-tracking alert
76677669
- database-monitoring alert
7670+
- network-performance alert
76687671
example: query alert
76697672
type: string
76707673
x-enum-varnames:
@@ -7685,6 +7688,7 @@ components:
76857688
- CI_TESTS_ALERT
76867689
- ERROR_TRACKING_ALERT
76877690
- DATABASE_MONITORING_ALERT
7691+
- NETWORK_PERFORMANCE_ALERT
76887692
MonitorUpdateRequest:
76897693
description: Object describing a monitor update request.
76907694
properties:
@@ -27009,6 +27013,8 @@ paths:
2700927013

2701027014
- database-monitoring: `database-monitoring alert`
2701127015

27016+
- network-performance: `network-performance alert`
27017+
2701227018

2701327019
**Notes**:
2701427020

@@ -27308,6 +27314,28 @@ paths:
2730827314
operator #`
2730927315

2731027316

27317+
- `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/).
27318+
27319+
- `rollup_method` The stats roll-up method - supports `count`, `avg`, and
27320+
`cardinality`.
27321+
27322+
- `measure` For `avg` and cardinality `rollup_method` - specify the measure
27323+
or the facet name you want to use.
27324+
27325+
- `time_window` #m (between 1 and 2880), #h (between 1 and 48).
27326+
27327+
- `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
27328+
27329+
- `#` an integer or decimal number used to set the threshold.
27330+
27331+
27332+
**Network Performance Alert Query**
27333+
27334+
27335+
Example: `network-performance(query).rollup(rollup_method[, measure]).last(time_window)
27336+
operator #`
27337+
27338+
2731127339
- `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/).
2731227340

2731327341
- `rollup_method` The stats roll-up method - supports `count`, `avg`, and

packages/datadog-api-client-v1/apis/MonitorsApi.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,7 @@ export class MonitorsApi {
14161416
* - audit: `audit alert`
14171417
* - error-tracking: `error-tracking alert`
14181418
* - database-monitoring: `database-monitoring alert`
1419+
* - network-performance: `network-performance alert`
14191420
*
14201421
* **Notes**:
14211422
* - Synthetic monitors are created through the Synthetics API. See the [Synthetics API](https://docs.datadoghq.com/api/latest/synthetics/) documentation for more information.
@@ -1569,6 +1570,17 @@ export class MonitorsApi {
15691570
* - `time_window` #m (between 1 and 2880), #h (between 1 and 48).
15701571
* - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
15711572
* - `#` an integer or decimal number used to set the threshold.
1573+
*
1574+
* **Network Performance Alert Query**
1575+
*
1576+
* Example: `network-performance(query).rollup(rollup_method[, measure]).last(time_window) operator #`
1577+
*
1578+
* - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/).
1579+
* - `rollup_method` The stats roll-up method - supports `count`, `avg`, and `cardinality`.
1580+
* - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use.
1581+
* - `time_window` #m (between 1 and 2880), #h (between 1 and 48).
1582+
* - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
1583+
* - `#` an integer or decimal number used to set the threshold.
15721584
* @param param The request object
15731585
*/
15741586
public createMonitor(

packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventsDataSource.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export type MonitorFormulaAndFunctionEventsDataSource =
1919
| typeof LOGS
2020
| typeof SPANS
2121
| typeof DATABASE_QUERIES
22+
| typeof NETWORK_PERFORMANCE_QUERIES
2223
| UnparsedObject;
2324
export const RUM = "rum";
2425
export const CI_PIPELINES = "ci_pipelines";
@@ -28,3 +29,4 @@ export const EVENTS = "events";
2829
export const LOGS = "logs";
2930
export const SPANS = "spans";
3031
export const DATABASE_QUERIES = "database_queries";
32+
export const NETWORK_PERFORMANCE_QUERIES = "network_performance_queries";

packages/datadog-api-client-v1/models/MonitorType.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export type MonitorType =
2828
| typeof CI_TESTS_ALERT
2929
| typeof ERROR_TRACKING_ALERT
3030
| typeof DATABASE_MONITORING_ALERT
31+
| typeof NETWORK_PERFORMANCE_ALERT
3132
| UnparsedObject;
3233
export const COMPOSITE = "composite";
3334
export const EVENT_ALERT = "event alert";
@@ -46,3 +47,4 @@ export const CI_PIPELINES_ALERT = "ci-pipelines alert";
4647
export const CI_TESTS_ALERT = "ci-tests alert";
4748
export const ERROR_TRACKING_ALERT = "error-tracking alert";
4849
export const DATABASE_MONITORING_ALERT = "database-monitoring alert";
50+
export const NETWORK_PERFORMANCE_ALERT = "network-performance alert";

packages/datadog-api-client-v1/models/ObjectSerializer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,7 @@ const enumsMap: { [key: string]: any[] } = {
924924
"logs",
925925
"spans",
926926
"database_queries",
927+
"network_performance_queries",
927928
],
928929
MonitorOptionsNotificationPresets: [
929930
"show_all",
@@ -960,6 +961,7 @@ const enumsMap: { [key: string]: any[] } = {
960961
"ci-tests alert",
961962
"error-tracking alert",
962963
"database-monitoring alert",
964+
"network-performance alert",
963965
],
964966
MonthlyUsageAttributionSupportedMetrics: [
965967
"api_usage",

0 commit comments

Comments
 (0)