From 4a13bd358dd58610216395d236d91470d20732ff Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 8 Jun 2023 19:47:02 +0000 Subject: [PATCH] Regenerate client from commit f3dd285f of spec repo --- .apigentools-info | 8 ++--- .generator/schemas/v1/openapi.yaml | 31 ++++++++++++++++++- .../api/client/v1/api/MonitorsApi.java | 21 +++++++++++++ .../api/client/v1/model/MonitorType.java | 5 ++- 4 files changed, 59 insertions(+), 6 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 8a6284a388b..f1b315a426b 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.160723", - "spec_repo_commit": "0df91379" + "regenerated": "2023-06-08 19:45:41.069668", + "spec_repo_commit": "f3dd285f" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2023-06-08 18:39:09.175916", - "spec_repo_commit": "0df91379" + "regenerated": "2023-06-08 19:45:41.082441", + "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/src/main/java/com/datadog/api/client/v1/api/MonitorsApi.java b/src/main/java/com/datadog/api/client/v1/api/MonitorsApi.java index 09cbe676fb0..8543e44a180 100644 --- a/src/main/java/com/datadog/api/client/v1/api/MonitorsApi.java +++ b/src/main/java/com/datadog/api/client/v1/api/MonitorsApi.java @@ -249,6 +249,7 @@ public CompletableFuture createMonitorAsync(Monitor body) { *
  • 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 @@ -508,6 +509,26 @@ public CompletableFuture createMonitorAsync(Monitor body) { *

  • # 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. + *
    • 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 body Create a monitor request body. (required) * @return ApiResponse<Monitor> * @throws ApiException if fails to make API call diff --git a/src/main/java/com/datadog/api/client/v1/model/MonitorType.java b/src/main/java/com/datadog/api/client/v1/model/MonitorType.java index 3ab74bd1145..f290f3abd01 100644 --- a/src/main/java/com/datadog/api/client/v1/model/MonitorType.java +++ b/src/main/java/com/datadog/api/client/v1/model/MonitorType.java @@ -42,6 +42,8 @@ public class MonitorType { public static final MonitorType CI_PIPELINES_ALERT = new MonitorType("ci-pipelines alert"); public static final MonitorType CI_TESTS_ALERT = new MonitorType("ci-tests alert"); public static final MonitorType ERROR_TRACKING_ALERT = new MonitorType("error-tracking alert"); + public static final MonitorType DATABASE_MONITORING_ALERT = + new MonitorType("database-monitoring alert"); private static final Set allowedValues = new HashSet( @@ -61,7 +63,8 @@ public class MonitorType { "audit alert", "ci-pipelines alert", "ci-tests alert", - "error-tracking alert")); + "error-tracking alert", + "database-monitoring alert")); private String value;