Skip to content

Commit d3e4bc4

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add network performance monitor type to API spec (#1875)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent fa28f6a commit d3e4bc4

File tree

5 files changed

+46
-4
lines changed

5 files changed

+46
-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:50:54.316817",
8-
"spec_repo_commit": "1e8d5fca"
7+
"regenerated": "2024-07-02 18:17:49.729268",
8+
"spec_repo_commit": "464f0cec"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-02 14:50:54.334220",
13-
"spec_repo_commit": "1e8d5fca"
12+
"regenerated": "2024-07-02 18:17:49.747072",
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

lib/datadog_api_client/v1/api/monitors_api.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ def create_monitor(body, opts = {})
126126
# - audit: `audit alert`
127127
# - error-tracking: `error-tracking alert`
128128
# - database-monitoring: `database-monitoring alert`
129+
# - network-performance: `network-performance alert`
129130
#
130131
# **Notes**:
131132
# - Synthetic monitors are created through the Synthetics API. See the [Synthetics API](https://docs.datadoghq.com/api/latest/synthetics/) documentation for more information.
@@ -280,6 +281,17 @@ def create_monitor(body, opts = {})
280281
# - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
281282
# - `#` an integer or decimal number used to set the threshold.
282283
#
284+
# **Network Performance Alert Query**
285+
#
286+
# Example: `network-performance(query).rollup(rollup_method[, measure]).last(time_window) operator #`
287+
#
288+
# - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/).
289+
# - `rollup_method` The stats roll-up method - supports `count`, `avg`, and `cardinality`.
290+
# - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use.
291+
# - `time_window` #m (between 1 and 2880), #h (between 1 and 48).
292+
# - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
293+
# - `#` an integer or decimal number used to set the threshold.
294+
#
283295
# @param body [Monitor] Create a monitor request body.
284296
# @param opts [Hash] the optional parameters
285297
# @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
@@ -29,5 +29,6 @@ class MonitorFormulaAndFunctionEventsDataSource
2929
LOGS = "logs".freeze
3030
SPANS = "spans".freeze
3131
DATABASE_QUERIES = "database_queries".freeze
32+
NETWORK_PERFORMANCE_QUERIES = "network_performance_queries".freeze
3233
end
3334
end

lib/datadog_api_client/v1/models/monitor_type.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ class MonitorType
3838
CI_TESTS_ALERT = "ci-tests alert".freeze
3939
ERROR_TRACKING_ALERT = "error-tracking alert".freeze
4040
DATABASE_MONITORING_ALERT = "database-monitoring alert".freeze
41+
NETWORK_PERFORMANCE_ALERT = "network-performance alert".freeze
4142
end
4243
end

0 commit comments

Comments
 (0)