Skip to content

Commit

Permalink
Regenerate client from commit f3dd285f of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jun 8, 2023
1 parent 098d126 commit 99e4a2f
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 5 deletions.
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.4",
"regenerated": "2023-06-08 18:39:09.060220",
"spec_repo_commit": "0df91379"
"regenerated": "2023-06-08 19:45:49.912624",
"spec_repo_commit": "f3dd285f"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-06-08 18:39:09.073130",
"spec_repo_commit": "0df91379"
"regenerated": "2023-06-08 19:45:49.935279",
"spec_repo_commit": "f3dd285f"
}
}
}
31 changes: 30 additions & 1 deletion .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7168,6 +7168,7 @@ components:
- ci-pipelines alert
- ci-tests alert
- error-tracking alert
- database-monitoring alert
example: query alert
type: string
x-enum-varnames:
Expand All @@ -7187,6 +7188,7 @@ components:
- CI_PIPELINES_ALERT
- CI_TESTS_ALERT
- ERROR_TRACKING_ALERT
- DATABASE_MONITORING_ALERT
MonitorUpdateRequest:
description: Object describing a monitor update request.
properties:
Expand Down Expand Up @@ -24698,6 +24700,8 @@ paths:

- error-tracking: `error-tracking alert`

- database-monitoring: `database-monitoring alert`


**Note**: Synthetic monitors are created through the Synthetics API. See the
[Synthetics API] (https://docs.datadoghq.com/api/latest/synthetics/) documentation
Expand Down Expand Up @@ -25023,7 +25027,32 @@ paths:

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

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


**Database Monitoring Alert Query**


Example: `database-monitoring(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.


**NOTE** Database Monitoring monitors are in alpha on US1.'
operationId: CreateMonitor
requestBody:
content:
Expand Down
14 changes: 14 additions & 0 deletions packages/datadog-api-client-v1/apis/MonitorsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1427,6 +1427,7 @@ export class MonitorsApi {
* - event-v2: `event-v2 alert`
* - audit: `audit alert`
* - error-tracking: `error-tracking alert`
* - database-monitoring: `database-monitoring alert`
*
* **Note**: 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 @@ -1586,6 +1587,19 @@ export class MonitorsApi {
* - `time_window` #m (between 1 and 2880), #h (between 1 and 48).
* - `operator` `<`, `<=`, `>`, `>=`, `==`, or `!=`.
* - `#` an integer or decimal number used to set the threshold.
*
* **Database Monitoring Alert Query**
*
* Example: `database-monitoring(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.
*
* **NOTE** Database Monitoring monitors are in alpha on US1.
* @param param The request object
*/
public createMonitor(
Expand Down
2 changes: 2 additions & 0 deletions packages/datadog-api-client-v1/models/MonitorType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export type MonitorType =
| typeof CI_PIPELINES_ALERT
| typeof CI_TESTS_ALERT
| typeof ERROR_TRACKING_ALERT
| typeof DATABASE_MONITORING_ALERT
| UnparsedObject;
export const COMPOSITE = "composite";
export const EVENT_ALERT = "event alert";
Expand All @@ -44,3 +45,4 @@ export const AUDIT_ALERT = "audit alert";
export const CI_PIPELINES_ALERT = "ci-pipelines alert";
export const CI_TESTS_ALERT = "ci-tests alert";
export const ERROR_TRACKING_ALERT = "error-tracking alert";
export const DATABASE_MONITORING_ALERT = "database-monitoring alert";
1 change: 1 addition & 0 deletions packages/datadog-api-client-v1/models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,7 @@ const enumsMap: { [key: string]: any[] } = {
"ci-pipelines alert",
"ci-tests alert",
"error-tracking alert",
"database-monitoring alert",
],
MonthlyUsageAttributionSupportedMetrics: [
"api_usage",
Expand Down

0 comments on commit 99e4a2f

Please sign in to comment.