From 2b8987cdc06ce8919703addfa700afee1f1d653d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Herv=C3=A9?= Date: Thu, 13 Aug 2020 16:00:30 +0200 Subject: [PATCH 1/2] Remove usage of legend_size constant --- .../datadog/api/v1/client/api/DashboardsApiTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/com/datadog/api/v1/client/api/DashboardsApiTest.java b/src/test/java/com/datadog/api/v1/client/api/DashboardsApiTest.java index 3d960f99885..df172b373c9 100644 --- a/src/test/java/com/datadog/api/v1/client/api/DashboardsApiTest.java +++ b/src/test/java/com/datadog/api/v1/client/api/DashboardsApiTest.java @@ -214,7 +214,7 @@ public void dashboardLifecycleTest() throws ApiException { .addEventsItem(new WidgetEvent().q("Build succeeded").tagsExecution("tags")) .title("Test Headmap Widget").showLegend(true) .titleAlign(WidgetTextAlign.CENTER).titleSize("16").time(new WidgetTime().liveSpan(WidgetLiveSpan.PAST_FIFTEEN_MINUTES)) - .showLegend(true).legendSize(WidgetLegendSize.FOUR); + .showLegend(true).legendSize("4"); Widget heatMapWidget = new Widget().definition(new WidgetDefinition(heatMapWidgetDefinition)); orderedWidgetList.add(heatMapWidget); @@ -417,7 +417,7 @@ public void dashboardLifecycleTest() throws ApiException { .title("Test Timeseries Widget").showLegend(true) .titleAlign(WidgetTextAlign.CENTER).titleSize("16") .time(new WidgetTime().liveSpan(WidgetLiveSpan.PAST_FIFTEEN_MINUTES)) - .showLegend(true).legendSize(WidgetLegendSize.SIXTEEN); + .showLegend(true).legendSize("16"); Widget timeseriesWidget = new Widget().definition(new WidgetDefinition(timeseriesWidgetDefinition)); orderedWidgetList.add(timeseriesWidget); @@ -446,7 +446,7 @@ public void dashboardLifecycleTest() throws ApiException { .title("Test Timeseries Widget with Process Query").showLegend(true) .titleAlign(WidgetTextAlign.CENTER).titleSize("16") .time(new WidgetTime().liveSpan(WidgetLiveSpan.PAST_FIFTEEN_MINUTES)) - .showLegend(true).legendSize(WidgetLegendSize.SIXTEEN); + .showLegend(true).legendSize("16"); Widget timeseriesWidgetProcessQuery = new Widget().definition(new WidgetDefinition(timeseriesWidgetDefinitionProcessQuery)); orderedWidgetList.add(timeseriesWidgetProcessQuery); @@ -477,7 +477,7 @@ public void dashboardLifecycleTest() throws ApiException { .title("Test Timeseries Widget with Log Query").showLegend(true) .titleAlign(WidgetTextAlign.CENTER).titleSize("16") .time(new WidgetTime().liveSpan(WidgetLiveSpan.PAST_FIFTEEN_MINUTES)) - .showLegend(true).legendSize(WidgetLegendSize.SIXTEEN); + .showLegend(true).legendSize("16"); Widget timeseriesWidgetLogQuery = new Widget().definition(new WidgetDefinition(timeseriesWidgetDefinitionLogQuery)); orderedWidgetList.add(timeseriesWidgetLogQuery); @@ -502,7 +502,7 @@ public void dashboardLifecycleTest() throws ApiException { .title("Test Timeseries Widget with Event Query").showLegend(true) .titleAlign(WidgetTextAlign.CENTER).titleSize("16") .time(new WidgetTime().liveSpan(WidgetLiveSpan.PAST_FIFTEEN_MINUTES)) - .showLegend(true).legendSize(WidgetLegendSize.SIXTEEN); + .showLegend(true).legendSize("16"); Widget timeseriesWidgetEventQuery = new Widget().definition(new WidgetDefinition(timeseriesWidgetDefinitionEventQuery)); orderedWidgetList.add(timeseriesWidgetEventQuery); From 7924708c577a1733aab98f5e664c021d108a6077 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 13 Aug 2020 15:38:20 +0000 Subject: [PATCH 2/2] Regenerate client from commit 6e8e271 of spec repo --- .apigentools-info | 8 +-- api/openapi.yaml | 69 ++++++++++--------- api_docs/v1/DistributionWidgetDefinition.md | 2 +- api_docs/v1/HeatMapWidgetDefinition.md | 2 +- api_docs/v1/TimeseriesWidgetDefinition.md | 2 +- api_docs/v1/WidgetLegendSize.md | 21 ------ .../model/DistributionWidgetDefinition.java | 13 ++-- .../client/model/HeatMapWidgetDefinition.java | 13 ++-- .../model/SyntheticsDeleteTestsPayload.java | 2 +- .../model/TimeseriesWidgetDefinition.java | 13 ++-- .../api/v1/client/model/WidgetDefinition.java | 1 - .../api/v1/client/model/WidgetLegendSize.java | 69 ------------------- src/main/java/com/datadog/api/v1/openapi.yaml | 19 ++--- src/main/java/com/datadog/api/v2/openapi.yaml | 15 +--- 14 files changed, 68 insertions(+), 181 deletions(-) delete mode 100644 api_docs/v1/WidgetLegendSize.md delete mode 100644 src/main/java/com/datadog/api/v1/client/model/WidgetLegendSize.java diff --git a/.apigentools-info b/.apigentools-info index 5cf8a91cd5d..031cfa696b8 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.2.0", - "regenerated": "2020-08-12 09:59:53.576511", - "spec_repo_commit": "783bb02" + "regenerated": "2020-08-13 15:38:12.648609", + "spec_repo_commit": "6e8e271" }, "v2": { "apigentools_version": "1.2.0", - "regenerated": "2020-08-12 10:00:00.109492", - "spec_repo_commit": "783bb02" + "regenerated": "2020-08-13 15:38:19.394464", + "spec_repo_commit": "6e8e271" } } } \ No newline at end of file diff --git a/api/openapi.yaml b/api/openapi.yaml index 0c35cbd243e..73c588e53a6 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -2464,14 +2464,12 @@ components: your organization. example: compute: - - aggregation: pc90 - interval: 20m - metric: '@score' - type: timeseries - - aggregation: pc90 - interval: 20m - metric: '@score' - type: timeseries + - metric: '@duration' + aggregation: pc90 + interval: 5m + - metric: '@duration' + aggregation: pc90 + interval: 5m filter: indexes: - main @@ -2481,24 +2479,26 @@ components: to: now options: timezone: GMT - timeOffset: 0 + timeOffset: 6 group_by: - - facet: host - limit: 50 - missing: missing_host + - histogram: + min: 50 + max: 100 + interval: 10 + limit: 0 sort: + aggregation: count order: asc - type: alphabetical - total: true - type: facet - - facet: host - limit: 50 - missing: missing_host + facet: host + - histogram: + min: 50 + max: 100 + interval: 10 + limit: 0 sort: + aggregation: count order: asc - type: alphabetical - total: true - type: facet + facet: host paging: after: eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ== properties: @@ -2605,6 +2605,7 @@ components: - min - max - avg + example: pc90 type: string x-enum-varnames: - COUNT @@ -2933,10 +2934,9 @@ components: LogsCompute: description: A compute rule to compute metrics or timeseries example: + metric: '@duration' aggregation: pc90 - interval: 20m - metric: '@score' - type: timeseries + interval: 5m properties: aggregation: $ref: '#/components/schemas/LogsAggregationFunction' @@ -2968,14 +2968,15 @@ components: LogsGroupBy: description: A group by rule example: - facet: host - limit: 50 - missing: missing_host + histogram: + min: 50 + max: 100 + interval: 10 + limit: 0 sort: + aggregation: count order: asc - type: alphabetical - total: true - type: facet + facet: host properties: facet: description: The name of the facet to use (required) @@ -3038,7 +3039,7 @@ components: to: now options: timezone: GMT - timeOffset: 0 + timeOffset: 6 page: cursor: eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ== limit: 25 @@ -3157,7 +3158,7 @@ components: Note: You should only supply timezone or time offset but not both otherwise the query will fail. example: timezone: GMT - timeOffset: 0 + timeOffset: 6 properties: timeOffset: description: The time offset (in seconds) to apply to the query. @@ -5204,6 +5205,10 @@ components: description: |- Used to perform a histogram computation (only for measure facets). Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval. + example: + min: 50 + max: 100 + interval: 10 properties: interval: description: The bin size of the histogram buckets diff --git a/api_docs/v1/DistributionWidgetDefinition.md b/api_docs/v1/DistributionWidgetDefinition.md index aa5ead863fb..cdca4160485 100644 --- a/api_docs/v1/DistributionWidgetDefinition.md +++ b/api_docs/v1/DistributionWidgetDefinition.md @@ -7,7 +7,7 @@ The Distribution visualization is another way of showing metrics aggregated acro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**legendSize** | [**WidgetLegendSize**](WidgetLegendSize.md) | | [optional] +**legendSize** | **String** | Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\". | [optional] **requests** | [**List<DistributionWidgetRequest>**](DistributionWidgetRequest.md) | Array of one request object to display in the widget. See the dedicated [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) to learn how to build the `REQUEST_SCHEMA`. | **showLegend** | **Boolean** | Whether or not to display the legend on this widget. | [optional] **time** | [**WidgetTime**](WidgetTime.md) | | [optional] diff --git a/api_docs/v1/HeatMapWidgetDefinition.md b/api_docs/v1/HeatMapWidgetDefinition.md index eb3bd76f16f..c5e643ba290 100644 --- a/api_docs/v1/HeatMapWidgetDefinition.md +++ b/api_docs/v1/HeatMapWidgetDefinition.md @@ -8,7 +8,7 @@ The heat map visualization shows metrics aggregated across many tags, such as ho Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **events** | [**List<WidgetEvent>**](WidgetEvent.md) | List of widget events. | [optional] -**legendSize** | [**WidgetLegendSize**](WidgetLegendSize.md) | | [optional] +**legendSize** | **String** | Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\". | [optional] **requests** | [**List<HeatMapWidgetRequest>**](HeatMapWidgetRequest.md) | List of widget types. | **showLegend** | **Boolean** | Whether or not to display the legend on this widget. | [optional] **time** | [**WidgetTime**](WidgetTime.md) | | [optional] diff --git a/api_docs/v1/TimeseriesWidgetDefinition.md b/api_docs/v1/TimeseriesWidgetDefinition.md index c07f16fbb75..05c75dc6d0c 100644 --- a/api_docs/v1/TimeseriesWidgetDefinition.md +++ b/api_docs/v1/TimeseriesWidgetDefinition.md @@ -8,7 +8,7 @@ The timeseries visualization allows you to display the evolution of one or more Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **events** | [**List<WidgetEvent>**](WidgetEvent.md) | List of widget events. | [optional] -**legendSize** | [**WidgetLegendSize**](WidgetLegendSize.md) | | [optional] +**legendSize** | **String** | Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\". | [optional] **markers** | [**List<WidgetMarker>**](WidgetMarker.md) | List of markers. | [optional] **requests** | [**List<TimeseriesWidgetRequest>**](TimeseriesWidgetRequest.md) | List of timeseries widget requests. | **showLegend** | **Boolean** | (screenboard only) Show the legend for this widget. | [optional] diff --git a/api_docs/v1/WidgetLegendSize.md b/api_docs/v1/WidgetLegendSize.md deleted file mode 100644 index c71f265b29c..00000000000 --- a/api_docs/v1/WidgetLegendSize.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# WidgetLegendSize - -## Enum - - -* `ZERO` (value: `"0"`) - -* `TWO` (value: `"2"`) - -* `FOUR` (value: `"4"`) - -* `EIGHT` (value: `"8"`) - -* `SIXTEEN` (value: `"16"`) - -* `AUTO` (value: `"auto"`) - - - diff --git a/src/main/java/com/datadog/api/v1/client/model/DistributionWidgetDefinition.java b/src/main/java/com/datadog/api/v1/client/model/DistributionWidgetDefinition.java index 51dee3ed8cb..224721343bc 100644 --- a/src/main/java/com/datadog/api/v1/client/model/DistributionWidgetDefinition.java +++ b/src/main/java/com/datadog/api/v1/client/model/DistributionWidgetDefinition.java @@ -17,7 +17,6 @@ import java.util.HashMap; import com.datadog.api.v1.client.model.DistributionWidgetDefinitionType; import com.datadog.api.v1.client.model.DistributionWidgetRequest; -import com.datadog.api.v1.client.model.WidgetLegendSize; import com.datadog.api.v1.client.model.WidgetTextAlign; import com.datadog.api.v1.client.model.WidgetTime; import com.fasterxml.jackson.annotation.JsonInclude; @@ -50,7 +49,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DistributionWidgetDefinition { public static final String JSON_PROPERTY_LEGEND_SIZE = "legend_size"; - private WidgetLegendSize legendSize; + private String legendSize; public static final String JSON_PROPERTY_REQUESTS = "requests"; private List requests = new ArrayList<>(); @@ -74,26 +73,26 @@ public class DistributionWidgetDefinition { private DistributionWidgetDefinitionType type = DistributionWidgetDefinitionType.DISTRIBUTION; - public DistributionWidgetDefinition legendSize(WidgetLegendSize legendSize) { + public DistributionWidgetDefinition legendSize(String legendSize) { this.legendSize = legendSize; return this; } /** - * Get legendSize + * Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\". * @return legendSize **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\".") @JsonProperty(JSON_PROPERTY_LEGEND_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public WidgetLegendSize getLegendSize() { + public String getLegendSize() { return legendSize; } - public void setLegendSize(WidgetLegendSize legendSize) { + public void setLegendSize(String legendSize) { this.legendSize = legendSize; } diff --git a/src/main/java/com/datadog/api/v1/client/model/HeatMapWidgetDefinition.java b/src/main/java/com/datadog/api/v1/client/model/HeatMapWidgetDefinition.java index d5676645b48..2915e08f866 100644 --- a/src/main/java/com/datadog/api/v1/client/model/HeatMapWidgetDefinition.java +++ b/src/main/java/com/datadog/api/v1/client/model/HeatMapWidgetDefinition.java @@ -19,7 +19,6 @@ import com.datadog.api.v1.client.model.HeatMapWidgetRequest; import com.datadog.api.v1.client.model.WidgetAxis; import com.datadog.api.v1.client.model.WidgetEvent; -import com.datadog.api.v1.client.model.WidgetLegendSize; import com.datadog.api.v1.client.model.WidgetTextAlign; import com.datadog.api.v1.client.model.WidgetTime; import com.fasterxml.jackson.annotation.JsonInclude; @@ -57,7 +56,7 @@ public class HeatMapWidgetDefinition { private List events = null; public static final String JSON_PROPERTY_LEGEND_SIZE = "legend_size"; - private WidgetLegendSize legendSize; + private String legendSize; public static final String JSON_PROPERTY_REQUESTS = "requests"; private List requests = new ArrayList<>(); @@ -116,26 +115,26 @@ public void setEvents(List events) { } - public HeatMapWidgetDefinition legendSize(WidgetLegendSize legendSize) { + public HeatMapWidgetDefinition legendSize(String legendSize) { this.legendSize = legendSize; return this; } /** - * Get legendSize + * Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\". * @return legendSize **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\".") @JsonProperty(JSON_PROPERTY_LEGEND_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public WidgetLegendSize getLegendSize() { + public String getLegendSize() { return legendSize; } - public void setLegendSize(WidgetLegendSize legendSize) { + public void setLegendSize(String legendSize) { this.legendSize = legendSize; } diff --git a/src/main/java/com/datadog/api/v1/client/model/SyntheticsDeleteTestsPayload.java b/src/main/java/com/datadog/api/v1/client/model/SyntheticsDeleteTestsPayload.java index 8c439a78c0e..e63c35937e1 100644 --- a/src/main/java/com/datadog/api/v1/client/model/SyntheticsDeleteTestsPayload.java +++ b/src/main/java/com/datadog/api/v1/client/model/SyntheticsDeleteTestsPayload.java @@ -59,7 +59,7 @@ public SyntheticsDeleteTestsPayload addPublicIdsItem(String publicIdsItem) { * @return publicIds **/ @javax.annotation.Nullable - @ApiModelProperty(value = "An array of Synthetic test IDs you want to delete.") + @ApiModelProperty(example = "[]", value = "An array of Synthetic test IDs you want to delete.") @JsonProperty(JSON_PROPERTY_PUBLIC_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/datadog/api/v1/client/model/TimeseriesWidgetDefinition.java b/src/main/java/com/datadog/api/v1/client/model/TimeseriesWidgetDefinition.java index 9479cf8b217..b7fecfbe008 100644 --- a/src/main/java/com/datadog/api/v1/client/model/TimeseriesWidgetDefinition.java +++ b/src/main/java/com/datadog/api/v1/client/model/TimeseriesWidgetDefinition.java @@ -19,7 +19,6 @@ import com.datadog.api.v1.client.model.TimeseriesWidgetRequest; import com.datadog.api.v1.client.model.WidgetAxis; import com.datadog.api.v1.client.model.WidgetEvent; -import com.datadog.api.v1.client.model.WidgetLegendSize; import com.datadog.api.v1.client.model.WidgetMarker; import com.datadog.api.v1.client.model.WidgetTextAlign; import com.datadog.api.v1.client.model.WidgetTime; @@ -59,7 +58,7 @@ public class TimeseriesWidgetDefinition { private List events = null; public static final String JSON_PROPERTY_LEGEND_SIZE = "legend_size"; - private WidgetLegendSize legendSize; + private String legendSize; public static final String JSON_PROPERTY_MARKERS = "markers"; private List markers = null; @@ -121,26 +120,26 @@ public void setEvents(List events) { } - public TimeseriesWidgetDefinition legendSize(WidgetLegendSize legendSize) { + public TimeseriesWidgetDefinition legendSize(String legendSize) { this.legendSize = legendSize; return this; } /** - * Get legendSize + * Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\". * @return legendSize **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\".") @JsonProperty(JSON_PROPERTY_LEGEND_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public WidgetLegendSize getLegendSize() { + public String getLegendSize() { return legendSize; } - public void setLegendSize(WidgetLegendSize legendSize) { + public void setLegendSize(String legendSize) { this.legendSize = legendSize; } diff --git a/src/main/java/com/datadog/api/v1/client/model/WidgetDefinition.java b/src/main/java/com/datadog/api/v1/client/model/WidgetDefinition.java index 98c02b31771..4839c8978a4 100644 --- a/src/main/java/com/datadog/api/v1/client/model/WidgetDefinition.java +++ b/src/main/java/com/datadog/api/v1/client/model/WidgetDefinition.java @@ -50,7 +50,6 @@ import com.datadog.api.v1.client.model.WidgetGrouping; import com.datadog.api.v1.client.model.WidgetImageSizing; import com.datadog.api.v1.client.model.WidgetLayoutType; -import com.datadog.api.v1.client.model.WidgetLegendSize; import com.datadog.api.v1.client.model.WidgetMargin; import com.datadog.api.v1.client.model.WidgetMarker; import com.datadog.api.v1.client.model.WidgetMessageDisplay; diff --git a/src/main/java/com/datadog/api/v1/client/model/WidgetLegendSize.java b/src/main/java/com/datadog/api/v1/client/model/WidgetLegendSize.java deleted file mode 100644 index be56c65785e..00000000000 --- a/src/main/java/com/datadog/api/v1/client/model/WidgetLegendSize.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. - * This product includes software developed at Datadog (https://www.datadoghq.com/). - * Copyright 2019-Present Datadog, Inc. - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.datadog.api.v1.client.model; - -import java.util.Objects; -import java.util.Arrays; -import java.util.Map; -import java.util.HashMap; -import io.swagger.annotations.ApiModel; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.datadog.api.v1.client.JSON; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Available legend sizes for a widget. - */ -public enum WidgetLegendSize { - - ZERO("0"), - - TWO("2"), - - FOUR("4"), - - EIGHT("8"), - - SIXTEEN("16"), - - AUTO("auto"); - - private String value; - - WidgetLegendSize(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static WidgetLegendSize fromValue(String value) { - for (WidgetLegendSize b : WidgetLegendSize.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } -} - diff --git a/src/main/java/com/datadog/api/v1/openapi.yaml b/src/main/java/com/datadog/api/v1/openapi.yaml index 52916104eca..2a8f7d8b6b9 100644 --- a/src/main/java/com/datadog/api/v1/openapi.yaml +++ b/src/main/java/com/datadog/api/v1/openapi.yaml @@ -5915,8 +5915,10 @@ components: properties: public_ids: description: An array of Synthetic test IDs you want to delete. + example: [] items: description: A Synthetic test ID to delete. + example: abc-def-123 type: string type: array type: object @@ -8437,22 +8439,9 @@ components: x-enum-varnames: - ORDERED WidgetLegendSize: - description: Available legend sizes for a widget. - enum: - - '0' - - '2' - - '4' - - '8' - - '16' - - auto + description: Available legend sizes for a widget. Should be one of "0", "2", + "4", "8", "16", or "auto". type: string - x-enum-varnames: - - ZERO - - TWO - - FOUR - - EIGHT - - SIXTEEN - - AUTO WidgetLineType: description: Type of lines displayed. enum: diff --git a/src/main/java/com/datadog/api/v2/openapi.yaml b/src/main/java/com/datadog/api/v2/openapi.yaml index de90d49ad1b..e4d173d508b 100644 --- a/src/main/java/com/datadog/api/v2/openapi.yaml +++ b/src/main/java/com/datadog/api/v2/openapi.yaml @@ -489,6 +489,7 @@ components: - min - max - avg + example: pc90 type: string x-enum-varnames: - COUNT @@ -769,11 +770,6 @@ components: type: object LogsCompute: description: A compute rule to compute metrics or timeseries - example: - aggregation: pc90 - interval: 20m - metric: '@score' - type: timeseries properties: aggregation: $ref: '#/components/schemas/LogsAggregationFunction' @@ -804,15 +800,6 @@ components: - TOTAL LogsGroupBy: description: A group by rule - example: - facet: host - limit: 50 - missing: missing_host - sort: - order: asc - type: alphabetical - total: true - type: facet properties: facet: description: The name of the facet to use (required)