diff --git a/.apigentools-info b/.apigentools-info index b2f863da195..0ef4fc7ba0b 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -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" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index e65a13208dc..aadaea369e4 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -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: @@ -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: @@ -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 @@ -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: diff --git a/packages/datadog-api-client-v1/apis/MonitorsApi.ts b/packages/datadog-api-client-v1/apis/MonitorsApi.ts index 2392cb1f732..85c01beace0 100644 --- a/packages/datadog-api-client-v1/apis/MonitorsApi.ts +++ b/packages/datadog-api-client-v1/apis/MonitorsApi.ts @@ -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. * @@ -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( diff --git a/packages/datadog-api-client-v1/models/MonitorType.ts b/packages/datadog-api-client-v1/models/MonitorType.ts index 1973dccd147..54c4ff62c69 100644 --- a/packages/datadog-api-client-v1/models/MonitorType.ts +++ b/packages/datadog-api-client-v1/models/MonitorType.ts @@ -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"; @@ -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"; diff --git a/packages/datadog-api-client-v1/models/ObjectSerializer.ts b/packages/datadog-api-client-v1/models/ObjectSerializer.ts index e997863a2e3..c44a9dae996 100644 --- a/packages/datadog-api-client-v1/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v1/models/ObjectSerializer.ts @@ -882,6 +882,7 @@ const enumsMap: { [key: string]: any[] } = { "ci-pipelines alert", "ci-tests alert", "error-tracking alert", + "database-monitoring alert", ], MonthlyUsageAttributionSupportedMetrics: [ "api_usage",