Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-07-02 14:50:54.316817",
"spec_repo_commit": "1e8d5fca"
"regenerated": "2024-07-02 18:17:49.729268",
"spec_repo_commit": "464f0cec"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-07-02 14:50:54.334220",
"spec_repo_commit": "1e8d5fca"
"regenerated": "2024-07-02 18:17:49.747072",
"spec_repo_commit": "464f0cec"
}
}
}
28 changes: 28 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6831,6 +6831,7 @@ components:
- logs
- spans
- database_queries
- network_performance_queries
example: rum
type: string
x-enum-varnames:
Expand All @@ -6842,6 +6843,7 @@ components:
- LOGS
- SPANS
- DATABASE_QUERIES
- NETWORK_PERFORMANCE_QUERIES
MonitorFormulaAndFunctionQueryDefinition:
description: A formula and function query.
oneOf:
Expand Down Expand Up @@ -7665,6 +7667,7 @@ components:
- ci-tests alert
- error-tracking alert
- database-monitoring alert
- network-performance alert
example: query alert
type: string
x-enum-varnames:
Expand All @@ -7685,6 +7688,7 @@ components:
- CI_TESTS_ALERT
- ERROR_TRACKING_ALERT
- DATABASE_MONITORING_ALERT
- NETWORK_PERFORMANCE_ALERT
MonitorUpdateRequest:
description: Object describing a monitor update request.
properties:
Expand Down Expand Up @@ -27009,6 +27013,8 @@ paths:

- database-monitoring: `database-monitoring alert`

- network-performance: `network-performance alert`


**Notes**:

Expand Down Expand Up @@ -27308,6 +27314,28 @@ paths:
operator #`


- `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/).

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

- `measure` For `avg` and cardinality `rollup_method` - specify the measure
or the facet name you want to use.

- `time_window` #m (between 1 and 2880), #h (between 1 and 48).

- `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.

- `#` an integer or decimal number used to set the threshold.


**Network Performance Alert Query**


Example: `network-performance(query).rollup(rollup_method[, measure]).last(time_window)
operator #`


- `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/).

- `rollup_method` The stats roll-up method - supports `count`, `avg`, and
Expand Down
12 changes: 12 additions & 0 deletions lib/datadog_api_client/v1/api/monitors_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ def create_monitor(body, opts = {})
# - audit: `audit alert`
# - error-tracking: `error-tracking alert`
# - database-monitoring: `database-monitoring alert`
# - network-performance: `network-performance alert`
#
# **Notes**:
# - Synthetic monitors are created through the Synthetics API. See the [Synthetics API](https://docs.datadoghq.com/api/latest/synthetics/) documentation for more information.
Expand Down Expand Up @@ -280,6 +281,17 @@ def create_monitor(body, opts = {})
# - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
# - `#` an integer or decimal number used to set the threshold.
#
# **Network Performance Alert Query**
#
# Example: `network-performance(query).rollup(rollup_method[, measure]).last(time_window) operator #`
#
# - `query` The search query - following the [Log search syntax](https://docs.datadoghq.com/logs/search_syntax/).
# - `rollup_method` The stats roll-up method - supports `count`, `avg`, and `cardinality`.
# - `measure` For `avg` and cardinality `rollup_method` - specify the measure or the facet name you want to use.
# - `time_window` #m (between 1 and 2880), #h (between 1 and 48).
# - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
# - `#` an integer or decimal number used to set the threshold.
#
# @param body [Monitor] Create a monitor request body.
# @param opts [Hash] the optional parameters
# @return [Array<(Monitor, Integer, Hash)>] Monitor data, response status code and response headers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ class MonitorFormulaAndFunctionEventsDataSource
LOGS = "logs".freeze
SPANS = "spans".freeze
DATABASE_QUERIES = "database_queries".freeze
NETWORK_PERFORMANCE_QUERIES = "network_performance_queries".freeze
end
end
1 change: 1 addition & 0 deletions lib/datadog_api_client/v1/models/monitor_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ class MonitorType
CI_TESTS_ALERT = "ci-tests alert".freeze
ERROR_TRACKING_ALERT = "error-tracking alert".freeze
DATABASE_MONITORING_ALERT = "database-monitoring alert".freeze
NETWORK_PERFORMANCE_ALERT = "network-performance alert".freeze
end
end