From ab04cfa6ad280f03080dbb174e5a6c20df82f1a7 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 24 Feb 2021 15:04:12 +0000 Subject: [PATCH] Regenerate client from commit 960dc55 of spec repo --- .apigentools-info | 8 +- .../FormulaAndFunctionEventQueryDefinition.md | 18 ++ ...AndFunctionEventQueryDefinitionCompute.md} | 2 +- ...aAndFunctionEventQueryDefinitionSearch.md} | 2 +- ...=> FormulaAndFunctionEventQueryGroupBy.md} | 4 +- ...ormulaAndFunctionEventQueryGroupBySort.md} | 2 +- ...ormulaAndFunctionMetricQueryDefinition.md} | 4 +- ...rmulaAndFunctionProcessQueryDefinition.md} | 2 +- .../v1/FormulaAndFunctionQueryDefinition.md | 52 ++-- api_docs/v1/README.md | 14 +- ...sFormulaAndFunctionEventQueryDefinition.md | 18 -- ...rmulaAndFunctionEventQueryDefinition.java} | 76 ++--- ...dFunctionEventQueryDefinitionCompute.java} | 26 +- ...ndFunctionEventQueryDefinitionSearch.java} | 14 +- ... FormulaAndFunctionEventQueryGroupBy.java} | 34 +- ...mulaAndFunctionEventQueryGroupBySort.java} | 26 +- ...mulaAndFunctionMetricQueryDefinition.java} | 36 +-- ...ulaAndFunctionProcessQueryDefinition.java} | 64 ++-- .../FormulaAndFunctionQueryDefinition.java | 122 ++++---- src/main/java/com/datadog/api/v1/openapi.yaml | 292 +++++++++--------- 20 files changed, 408 insertions(+), 408 deletions(-) create mode 100644 api_docs/v1/FormulaAndFunctionEventQueryDefinition.md rename api_docs/v1/{TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.md => FormulaAndFunctionEventQueryDefinitionCompute.md} (85%) rename api_docs/v1/{TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch.md => FormulaAndFunctionEventQueryDefinitionSearch.md} (76%) rename api_docs/v1/{TimeSeriesFormulaAndFunctionEventQueryGroupBy.md => FormulaAndFunctionEventQueryGroupBy.md} (57%) rename api_docs/v1/{TimeSeriesFormulaAndFunctionEventQueryGroupBySort.md => FormulaAndFunctionEventQueryGroupBySort.md} (86%) rename api_docs/v1/{TimeSeriesFormulaAndFunctionMetricQueryDefinition.md => FormulaAndFunctionMetricQueryDefinition.md} (78%) rename api_docs/v1/{TimeSeriesFormulaAndFunctionProcessQueryDefinition.md => FormulaAndFunctionProcessQueryDefinition.md} (93%) delete mode 100644 api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryDefinition.md rename src/main/java/com/datadog/api/v1/client/model/{TimeSeriesFormulaAndFunctionEventQueryDefinition.java => FormulaAndFunctionEventQueryDefinition.java} (62%) rename src/main/java/com/datadog/api/v1/client/model/{TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.java => FormulaAndFunctionEventQueryDefinitionCompute.java} (74%) rename src/main/java/com/datadog/api/v1/client/model/{TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch.java => FormulaAndFunctionEventQueryDefinitionSearch.java} (77%) rename src/main/java/com/datadog/api/v1/client/model/{TimeSeriesFormulaAndFunctionEventQueryGroupBy.java => FormulaAndFunctionEventQueryGroupBy.java} (70%) rename src/main/java/com/datadog/api/v1/client/model/{TimeSeriesFormulaAndFunctionEventQueryGroupBySort.java => FormulaAndFunctionEventQueryGroupBySort.java} (76%) rename src/main/java/com/datadog/api/v1/client/model/{TimeSeriesFormulaAndFunctionMetricQueryDefinition.java => FormulaAndFunctionMetricQueryDefinition.java} (73%) rename src/main/java/com/datadog/api/v1/client/model/{TimeSeriesFormulaAndFunctionProcessQueryDefinition.java => FormulaAndFunctionProcessQueryDefinition.java} (73%) diff --git a/.apigentools-info b/.apigentools-info index f3b87925ffc..832145feba0 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.4.1.dev2", - "regenerated": "2021-02-23 19:10:40.127296", - "spec_repo_commit": "0e18234" + "regenerated": "2021-02-24 15:03:58.637397", + "spec_repo_commit": "960dc55" }, "v2": { "apigentools_version": "1.4.1.dev2", - "regenerated": "2021-02-23 19:10:50.913808", - "spec_repo_commit": "0e18234" + "regenerated": "2021-02-24 15:04:10.052298", + "spec_repo_commit": "960dc55" } } } \ No newline at end of file diff --git a/api_docs/v1/FormulaAndFunctionEventQueryDefinition.md b/api_docs/v1/FormulaAndFunctionEventQueryDefinition.md new file mode 100644 index 00000000000..58fca04711f --- /dev/null +++ b/api_docs/v1/FormulaAndFunctionEventQueryDefinition.md @@ -0,0 +1,18 @@ + + +# FormulaAndFunctionEventQueryDefinition + +A formula and functions events query. +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**compute** | [**FormulaAndFunctionEventQueryDefinitionCompute**](FormulaAndFunctionEventQueryDefinitionCompute.md) | | +**dataSource** | **FormulaAndFunctionEventsDataSource** | | +**groupBy** | [**List<FormulaAndFunctionEventQueryGroupBy>**](FormulaAndFunctionEventQueryGroupBy.md) | Group by options. | [optional] +**indexes** | **List<String>** | An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. | [optional] +**name** | **String** | Name of the query for use in formulas. | [optional] +**search** | [**FormulaAndFunctionEventQueryDefinitionSearch**](FormulaAndFunctionEventQueryDefinitionSearch.md) | | [optional] + + + diff --git a/api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.md b/api_docs/v1/FormulaAndFunctionEventQueryDefinitionCompute.md similarity index 85% rename from api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.md rename to api_docs/v1/FormulaAndFunctionEventQueryDefinitionCompute.md index e06e7e8eb2f..b90ae5eac4b 100644 --- a/api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.md +++ b/api_docs/v1/FormulaAndFunctionEventQueryDefinitionCompute.md @@ -1,6 +1,6 @@ -# TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute +# FormulaAndFunctionEventQueryDefinitionCompute Compute options. ## Properties diff --git a/api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch.md b/api_docs/v1/FormulaAndFunctionEventQueryDefinitionSearch.md similarity index 76% rename from api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch.md rename to api_docs/v1/FormulaAndFunctionEventQueryDefinitionSearch.md index 84354a06782..6ce4d53fb23 100644 --- a/api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch.md +++ b/api_docs/v1/FormulaAndFunctionEventQueryDefinitionSearch.md @@ -1,6 +1,6 @@ -# TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch +# FormulaAndFunctionEventQueryDefinitionSearch Search options. ## Properties diff --git a/api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryGroupBy.md b/api_docs/v1/FormulaAndFunctionEventQueryGroupBy.md similarity index 57% rename from api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryGroupBy.md rename to api_docs/v1/FormulaAndFunctionEventQueryGroupBy.md index 7da1fe09912..b232a8fe84f 100644 --- a/api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryGroupBy.md +++ b/api_docs/v1/FormulaAndFunctionEventQueryGroupBy.md @@ -1,6 +1,6 @@ -# TimeSeriesFormulaAndFunctionEventQueryGroupBy +# FormulaAndFunctionEventQueryGroupBy List of objects used to group by. ## Properties @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **facet** | **String** | Event facet. | **limit** | **Long** | Number of groups to return. | [optional] -**sort** | [**TimeSeriesFormulaAndFunctionEventQueryGroupBySort**](TimeSeriesFormulaAndFunctionEventQueryGroupBySort.md) | | [optional] +**sort** | [**FormulaAndFunctionEventQueryGroupBySort**](FormulaAndFunctionEventQueryGroupBySort.md) | | [optional] diff --git a/api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryGroupBySort.md b/api_docs/v1/FormulaAndFunctionEventQueryGroupBySort.md similarity index 86% rename from api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryGroupBySort.md rename to api_docs/v1/FormulaAndFunctionEventQueryGroupBySort.md index 0eb94bdbdaa..e3ea039d3ba 100644 --- a/api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryGroupBySort.md +++ b/api_docs/v1/FormulaAndFunctionEventQueryGroupBySort.md @@ -1,6 +1,6 @@ -# TimeSeriesFormulaAndFunctionEventQueryGroupBySort +# FormulaAndFunctionEventQueryGroupBySort Options for sorting group by results. ## Properties diff --git a/api_docs/v1/TimeSeriesFormulaAndFunctionMetricQueryDefinition.md b/api_docs/v1/FormulaAndFunctionMetricQueryDefinition.md similarity index 78% rename from api_docs/v1/TimeSeriesFormulaAndFunctionMetricQueryDefinition.md rename to api_docs/v1/FormulaAndFunctionMetricQueryDefinition.md index 7392ecbc860..9ee8c407cd4 100644 --- a/api_docs/v1/TimeSeriesFormulaAndFunctionMetricQueryDefinition.md +++ b/api_docs/v1/FormulaAndFunctionMetricQueryDefinition.md @@ -1,8 +1,8 @@ -# TimeSeriesFormulaAndFunctionMetricQueryDefinition +# FormulaAndFunctionMetricQueryDefinition -A timeseries formula and functions metrics query. +A formula and functions metrics query. ## Properties Name | Type | Description | Notes diff --git a/api_docs/v1/TimeSeriesFormulaAndFunctionProcessQueryDefinition.md b/api_docs/v1/FormulaAndFunctionProcessQueryDefinition.md similarity index 93% rename from api_docs/v1/TimeSeriesFormulaAndFunctionProcessQueryDefinition.md rename to api_docs/v1/FormulaAndFunctionProcessQueryDefinition.md index 2880268daff..edff131752f 100644 --- a/api_docs/v1/TimeSeriesFormulaAndFunctionProcessQueryDefinition.md +++ b/api_docs/v1/FormulaAndFunctionProcessQueryDefinition.md @@ -1,6 +1,6 @@ -# TimeSeriesFormulaAndFunctionProcessQueryDefinition +# FormulaAndFunctionProcessQueryDefinition Process query using formulas and functions. ## Properties diff --git a/api_docs/v1/FormulaAndFunctionQueryDefinition.md b/api_docs/v1/FormulaAndFunctionQueryDefinition.md index 5047c6ac61d..aeb09259d74 100644 --- a/api_docs/v1/FormulaAndFunctionQueryDefinition.md +++ b/api_docs/v1/FormulaAndFunctionQueryDefinition.md @@ -5,42 +5,42 @@ A formula and function query. ## oneOf schemas -* [TimeSeriesFormulaAndFunctionEventQueryDefinition](TimeSeriesFormulaAndFunctionEventQueryDefinition.md) -* [TimeSeriesFormulaAndFunctionMetricQueryDefinition](TimeSeriesFormulaAndFunctionMetricQueryDefinition.md) -* [TimeSeriesFormulaAndFunctionProcessQueryDefinition](TimeSeriesFormulaAndFunctionProcessQueryDefinition.md) +* [FormulaAndFunctionEventQueryDefinition](FormulaAndFunctionEventQueryDefinition.md) +* [FormulaAndFunctionMetricQueryDefinition](FormulaAndFunctionMetricQueryDefinition.md) +* [FormulaAndFunctionProcessQueryDefinition](FormulaAndFunctionProcessQueryDefinition.md) ## Example ```java // Import classes: import com.datadog.api.v1.client.model.FormulaAndFunctionQueryDefinition; -import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionEventQueryDefinition; -import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionMetricQueryDefinition; -import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionProcessQueryDefinition; +import com.datadog.api.v1.client.model.FormulaAndFunctionEventQueryDefinition; +import com.datadog.api.v1.client.model.FormulaAndFunctionMetricQueryDefinition; +import com.datadog.api.v1.client.model.FormulaAndFunctionProcessQueryDefinition; public class Example { public static void main(String[] args) { FormulaAndFunctionQueryDefinition exampleFormulaAndFunctionQueryDefinition = new FormulaAndFunctionQueryDefinition(); - // create a new TimeSeriesFormulaAndFunctionEventQueryDefinition - TimeSeriesFormulaAndFunctionEventQueryDefinition exampleTimeSeriesFormulaAndFunctionEventQueryDefinition = new TimeSeriesFormulaAndFunctionEventQueryDefinition(); - // set FormulaAndFunctionQueryDefinition to TimeSeriesFormulaAndFunctionEventQueryDefinition - exampleFormulaAndFunctionQueryDefinition.setActualInstance(exampleTimeSeriesFormulaAndFunctionEventQueryDefinition); - // to get back the TimeSeriesFormulaAndFunctionEventQueryDefinition set earlier - TimeSeriesFormulaAndFunctionEventQueryDefinition testTimeSeriesFormulaAndFunctionEventQueryDefinition = (TimeSeriesFormulaAndFunctionEventQueryDefinition) exampleFormulaAndFunctionQueryDefinition.getActualInstance(); - - // create a new TimeSeriesFormulaAndFunctionMetricQueryDefinition - TimeSeriesFormulaAndFunctionMetricQueryDefinition exampleTimeSeriesFormulaAndFunctionMetricQueryDefinition = new TimeSeriesFormulaAndFunctionMetricQueryDefinition(); - // set FormulaAndFunctionQueryDefinition to TimeSeriesFormulaAndFunctionMetricQueryDefinition - exampleFormulaAndFunctionQueryDefinition.setActualInstance(exampleTimeSeriesFormulaAndFunctionMetricQueryDefinition); - // to get back the TimeSeriesFormulaAndFunctionMetricQueryDefinition set earlier - TimeSeriesFormulaAndFunctionMetricQueryDefinition testTimeSeriesFormulaAndFunctionMetricQueryDefinition = (TimeSeriesFormulaAndFunctionMetricQueryDefinition) exampleFormulaAndFunctionQueryDefinition.getActualInstance(); - - // create a new TimeSeriesFormulaAndFunctionProcessQueryDefinition - TimeSeriesFormulaAndFunctionProcessQueryDefinition exampleTimeSeriesFormulaAndFunctionProcessQueryDefinition = new TimeSeriesFormulaAndFunctionProcessQueryDefinition(); - // set FormulaAndFunctionQueryDefinition to TimeSeriesFormulaAndFunctionProcessQueryDefinition - exampleFormulaAndFunctionQueryDefinition.setActualInstance(exampleTimeSeriesFormulaAndFunctionProcessQueryDefinition); - // to get back the TimeSeriesFormulaAndFunctionProcessQueryDefinition set earlier - TimeSeriesFormulaAndFunctionProcessQueryDefinition testTimeSeriesFormulaAndFunctionProcessQueryDefinition = (TimeSeriesFormulaAndFunctionProcessQueryDefinition) exampleFormulaAndFunctionQueryDefinition.getActualInstance(); + // create a new FormulaAndFunctionEventQueryDefinition + FormulaAndFunctionEventQueryDefinition exampleFormulaAndFunctionEventQueryDefinition = new FormulaAndFunctionEventQueryDefinition(); + // set FormulaAndFunctionQueryDefinition to FormulaAndFunctionEventQueryDefinition + exampleFormulaAndFunctionQueryDefinition.setActualInstance(exampleFormulaAndFunctionEventQueryDefinition); + // to get back the FormulaAndFunctionEventQueryDefinition set earlier + FormulaAndFunctionEventQueryDefinition testFormulaAndFunctionEventQueryDefinition = (FormulaAndFunctionEventQueryDefinition) exampleFormulaAndFunctionQueryDefinition.getActualInstance(); + + // create a new FormulaAndFunctionMetricQueryDefinition + FormulaAndFunctionMetricQueryDefinition exampleFormulaAndFunctionMetricQueryDefinition = new FormulaAndFunctionMetricQueryDefinition(); + // set FormulaAndFunctionQueryDefinition to FormulaAndFunctionMetricQueryDefinition + exampleFormulaAndFunctionQueryDefinition.setActualInstance(exampleFormulaAndFunctionMetricQueryDefinition); + // to get back the FormulaAndFunctionMetricQueryDefinition set earlier + FormulaAndFunctionMetricQueryDefinition testFormulaAndFunctionMetricQueryDefinition = (FormulaAndFunctionMetricQueryDefinition) exampleFormulaAndFunctionQueryDefinition.getActualInstance(); + + // create a new FormulaAndFunctionProcessQueryDefinition + FormulaAndFunctionProcessQueryDefinition exampleFormulaAndFunctionProcessQueryDefinition = new FormulaAndFunctionProcessQueryDefinition(); + // set FormulaAndFunctionQueryDefinition to FormulaAndFunctionProcessQueryDefinition + exampleFormulaAndFunctionQueryDefinition.setActualInstance(exampleFormulaAndFunctionProcessQueryDefinition); + // to get back the FormulaAndFunctionProcessQueryDefinition set earlier + FormulaAndFunctionProcessQueryDefinition testFormulaAndFunctionProcessQueryDefinition = (FormulaAndFunctionProcessQueryDefinition) exampleFormulaAndFunctionQueryDefinition.getActualInstance(); } } ``` diff --git a/api_docs/v1/README.md b/api_docs/v1/README.md index 2fc3aa2cc89..5c07d31b72e 100644 --- a/api_docs/v1/README.md +++ b/api_docs/v1/README.md @@ -253,10 +253,17 @@ Class | Method | HTTP request | Description - [EventTimelineWidgetDefinition](EventTimelineWidgetDefinition.md) - [EventTimelineWidgetDefinitionType](EventTimelineWidgetDefinitionType.md) - [FormulaAndFunctionEventAggregation](FormulaAndFunctionEventAggregation.md) + - [FormulaAndFunctionEventQueryDefinition](FormulaAndFunctionEventQueryDefinition.md) + - [FormulaAndFunctionEventQueryDefinitionCompute](FormulaAndFunctionEventQueryDefinitionCompute.md) + - [FormulaAndFunctionEventQueryDefinitionSearch](FormulaAndFunctionEventQueryDefinitionSearch.md) + - [FormulaAndFunctionEventQueryGroupBy](FormulaAndFunctionEventQueryGroupBy.md) + - [FormulaAndFunctionEventQueryGroupBySort](FormulaAndFunctionEventQueryGroupBySort.md) - [FormulaAndFunctionEventsDataSource](FormulaAndFunctionEventsDataSource.md) - [FormulaAndFunctionMetricAggregation](FormulaAndFunctionMetricAggregation.md) - [FormulaAndFunctionMetricDataSource](FormulaAndFunctionMetricDataSource.md) + - [FormulaAndFunctionMetricQueryDefinition](FormulaAndFunctionMetricQueryDefinition.md) - [FormulaAndFunctionProcessQueryDataSource](FormulaAndFunctionProcessQueryDataSource.md) + - [FormulaAndFunctionProcessQueryDefinition](FormulaAndFunctionProcessQueryDefinition.md) - [FormulaAndFunctionQueryDefinition](FormulaAndFunctionQueryDefinition.md) - [FormulaAndFunctionResponseFormat](FormulaAndFunctionResponseFormat.md) - [FreeTextWidgetDefinition](FreeTextWidgetDefinition.md) @@ -534,13 +541,6 @@ Class | Method | HTTP request | Description - [TableWidgetRequest](TableWidgetRequest.md) - [TagToHosts](TagToHosts.md) - [TargetFormatType](TargetFormatType.md) - - [TimeSeriesFormulaAndFunctionEventQueryDefinition](TimeSeriesFormulaAndFunctionEventQueryDefinition.md) - - [TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute](TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.md) - - [TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch](TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch.md) - - [TimeSeriesFormulaAndFunctionEventQueryGroupBy](TimeSeriesFormulaAndFunctionEventQueryGroupBy.md) - - [TimeSeriesFormulaAndFunctionEventQueryGroupBySort](TimeSeriesFormulaAndFunctionEventQueryGroupBySort.md) - - [TimeSeriesFormulaAndFunctionMetricQueryDefinition](TimeSeriesFormulaAndFunctionMetricQueryDefinition.md) - - [TimeSeriesFormulaAndFunctionProcessQueryDefinition](TimeSeriesFormulaAndFunctionProcessQueryDefinition.md) - [TimeseriesWidgetDefinition](TimeseriesWidgetDefinition.md) - [TimeseriesWidgetDefinitionType](TimeseriesWidgetDefinitionType.md) - [TimeseriesWidgetExpressionAlias](TimeseriesWidgetExpressionAlias.md) diff --git a/api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryDefinition.md b/api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryDefinition.md deleted file mode 100644 index 1d0a7c6929b..00000000000 --- a/api_docs/v1/TimeSeriesFormulaAndFunctionEventQueryDefinition.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# TimeSeriesFormulaAndFunctionEventQueryDefinition - -A timeseries formula and functions events query. -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**compute** | [**TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute**](TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.md) | | -**dataSource** | **FormulaAndFunctionEventsDataSource** | | -**groupBy** | [**List<TimeSeriesFormulaAndFunctionEventQueryGroupBy>**](TimeSeriesFormulaAndFunctionEventQueryGroupBy.md) | Group by options. | [optional] -**indexes** | **List<String>** | An array of index names to query in the stream. Omit or use `[]` to query all indexes at once. | [optional] -**name** | **String** | Name of the query for use in formulas. | [optional] -**search** | [**TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch**](TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch.md) | | [optional] - - - diff --git a/src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionEventQueryDefinition.java b/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionEventQueryDefinition.java similarity index 62% rename from src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionEventQueryDefinition.java rename to src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionEventQueryDefinition.java index 297f9fb38a9..044343f46e8 100644 --- a/src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionEventQueryDefinition.java +++ b/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionEventQueryDefinition.java @@ -15,10 +15,10 @@ import java.util.Arrays; import java.util.Map; import java.util.HashMap; +import com.datadog.api.v1.client.model.FormulaAndFunctionEventQueryDefinitionCompute; +import com.datadog.api.v1.client.model.FormulaAndFunctionEventQueryDefinitionSearch; +import com.datadog.api.v1.client.model.FormulaAndFunctionEventQueryGroupBy; import com.datadog.api.v1.client.model.FormulaAndFunctionEventsDataSource; -import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute; -import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch; -import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionEventQueryGroupBy; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -33,27 +33,27 @@ /** - * A timeseries formula and functions events query. + * A formula and functions events query. */ -@ApiModel(description = "A timeseries formula and functions events query.") +@ApiModel(description = "A formula and functions events query.") @JsonPropertyOrder({ - TimeSeriesFormulaAndFunctionEventQueryDefinition.JSON_PROPERTY_COMPUTE, - TimeSeriesFormulaAndFunctionEventQueryDefinition.JSON_PROPERTY_DATA_SOURCE, - TimeSeriesFormulaAndFunctionEventQueryDefinition.JSON_PROPERTY_GROUP_BY, - TimeSeriesFormulaAndFunctionEventQueryDefinition.JSON_PROPERTY_INDEXES, - TimeSeriesFormulaAndFunctionEventQueryDefinition.JSON_PROPERTY_NAME, - TimeSeriesFormulaAndFunctionEventQueryDefinition.JSON_PROPERTY_SEARCH + FormulaAndFunctionEventQueryDefinition.JSON_PROPERTY_COMPUTE, + FormulaAndFunctionEventQueryDefinition.JSON_PROPERTY_DATA_SOURCE, + FormulaAndFunctionEventQueryDefinition.JSON_PROPERTY_GROUP_BY, + FormulaAndFunctionEventQueryDefinition.JSON_PROPERTY_INDEXES, + FormulaAndFunctionEventQueryDefinition.JSON_PROPERTY_NAME, + FormulaAndFunctionEventQueryDefinition.JSON_PROPERTY_SEARCH }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class TimeSeriesFormulaAndFunctionEventQueryDefinition { +public class FormulaAndFunctionEventQueryDefinition { public static final String JSON_PROPERTY_COMPUTE = "compute"; - private TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute compute; + private FormulaAndFunctionEventQueryDefinitionCompute compute; public static final String JSON_PROPERTY_DATA_SOURCE = "data_source"; private FormulaAndFunctionEventsDataSource dataSource; public static final String JSON_PROPERTY_GROUP_BY = "group_by"; - private List groupBy = null; + private List groupBy = null; public static final String JSON_PROPERTY_INDEXES = "indexes"; private List indexes = null; @@ -62,10 +62,10 @@ public class TimeSeriesFormulaAndFunctionEventQueryDefinition { private String name; public static final String JSON_PROPERTY_SEARCH = "search"; - private TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch search; + private FormulaAndFunctionEventQueryDefinitionSearch search; - public TimeSeriesFormulaAndFunctionEventQueryDefinition compute(TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute compute) { + public FormulaAndFunctionEventQueryDefinition compute(FormulaAndFunctionEventQueryDefinitionCompute compute) { this.compute = compute; return this; } @@ -78,17 +78,17 @@ public TimeSeriesFormulaAndFunctionEventQueryDefinition compute(TimeSeriesFormul @JsonProperty(JSON_PROPERTY_COMPUTE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute getCompute() { + public FormulaAndFunctionEventQueryDefinitionCompute getCompute() { return compute; } - public void setCompute(TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute compute) { + public void setCompute(FormulaAndFunctionEventQueryDefinitionCompute compute) { this.compute = compute; } - public TimeSeriesFormulaAndFunctionEventQueryDefinition dataSource(FormulaAndFunctionEventsDataSource dataSource) { + public FormulaAndFunctionEventQueryDefinition dataSource(FormulaAndFunctionEventsDataSource dataSource) { this.dataSource = dataSource; return this; } @@ -111,12 +111,12 @@ public void setDataSource(FormulaAndFunctionEventsDataSource dataSource) { } - public TimeSeriesFormulaAndFunctionEventQueryDefinition groupBy(List groupBy) { + public FormulaAndFunctionEventQueryDefinition groupBy(List groupBy) { this.groupBy = groupBy; return this; } - public TimeSeriesFormulaAndFunctionEventQueryDefinition addGroupByItem(TimeSeriesFormulaAndFunctionEventQueryGroupBy groupByItem) { + public FormulaAndFunctionEventQueryDefinition addGroupByItem(FormulaAndFunctionEventQueryGroupBy groupByItem) { if (this.groupBy == null) { this.groupBy = new ArrayList<>(); } @@ -133,22 +133,22 @@ public TimeSeriesFormulaAndFunctionEventQueryDefinition addGroupByItem(TimeSerie @JsonProperty(JSON_PROPERTY_GROUP_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getGroupBy() { + public List getGroupBy() { return groupBy; } - public void setGroupBy(List groupBy) { + public void setGroupBy(List groupBy) { this.groupBy = groupBy; } - public TimeSeriesFormulaAndFunctionEventQueryDefinition indexes(List indexes) { + public FormulaAndFunctionEventQueryDefinition indexes(List indexes) { this.indexes = indexes; return this; } - public TimeSeriesFormulaAndFunctionEventQueryDefinition addIndexesItem(String indexesItem) { + public FormulaAndFunctionEventQueryDefinition addIndexesItem(String indexesItem) { if (this.indexes == null) { this.indexes = new ArrayList<>(); } @@ -175,7 +175,7 @@ public void setIndexes(List indexes) { } - public TimeSeriesFormulaAndFunctionEventQueryDefinition name(String name) { + public FormulaAndFunctionEventQueryDefinition name(String name) { this.name = name; return this; } @@ -199,7 +199,7 @@ public void setName(String name) { } - public TimeSeriesFormulaAndFunctionEventQueryDefinition search(TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch search) { + public FormulaAndFunctionEventQueryDefinition search(FormulaAndFunctionEventQueryDefinitionSearch search) { this.search = search; return this; } @@ -213,18 +213,18 @@ public TimeSeriesFormulaAndFunctionEventQueryDefinition search(TimeSeriesFormula @JsonProperty(JSON_PROPERTY_SEARCH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch getSearch() { + public FormulaAndFunctionEventQueryDefinitionSearch getSearch() { return search; } - public void setSearch(TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch search) { + public void setSearch(FormulaAndFunctionEventQueryDefinitionSearch search) { this.search = search; } /** - * Return true if this TimeSeriesFormulaAndFunctionEventQueryDefinition object is equal to o. + * Return true if this FormulaAndFunctionEventQueryDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -234,13 +234,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TimeSeriesFormulaAndFunctionEventQueryDefinition timeSeriesFormulaAndFunctionEventQueryDefinition = (TimeSeriesFormulaAndFunctionEventQueryDefinition) o; - return Objects.equals(this.compute, timeSeriesFormulaAndFunctionEventQueryDefinition.compute) && - Objects.equals(this.dataSource, timeSeriesFormulaAndFunctionEventQueryDefinition.dataSource) && - Objects.equals(this.groupBy, timeSeriesFormulaAndFunctionEventQueryDefinition.groupBy) && - Objects.equals(this.indexes, timeSeriesFormulaAndFunctionEventQueryDefinition.indexes) && - Objects.equals(this.name, timeSeriesFormulaAndFunctionEventQueryDefinition.name) && - Objects.equals(this.search, timeSeriesFormulaAndFunctionEventQueryDefinition.search); + FormulaAndFunctionEventQueryDefinition formulaAndFunctionEventQueryDefinition = (FormulaAndFunctionEventQueryDefinition) o; + return Objects.equals(this.compute, formulaAndFunctionEventQueryDefinition.compute) && + Objects.equals(this.dataSource, formulaAndFunctionEventQueryDefinition.dataSource) && + Objects.equals(this.groupBy, formulaAndFunctionEventQueryDefinition.groupBy) && + Objects.equals(this.indexes, formulaAndFunctionEventQueryDefinition.indexes) && + Objects.equals(this.name, formulaAndFunctionEventQueryDefinition.name) && + Objects.equals(this.search, formulaAndFunctionEventQueryDefinition.search); } @Override @@ -252,7 +252,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class TimeSeriesFormulaAndFunctionEventQueryDefinition {\n"); + sb.append("class FormulaAndFunctionEventQueryDefinition {\n"); sb.append(" compute: ").append(toIndentedString(compute)).append("\n"); sb.append(" dataSource: ").append(toIndentedString(dataSource)).append("\n"); sb.append(" groupBy: ").append(toIndentedString(groupBy)).append("\n"); diff --git a/src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.java b/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionEventQueryDefinitionCompute.java similarity index 74% rename from src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.java rename to src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionEventQueryDefinitionCompute.java index f07f3fe99e4..4d6e5ebc667 100644 --- a/src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.java +++ b/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionEventQueryDefinitionCompute.java @@ -32,12 +32,12 @@ */ @ApiModel(description = "Compute options.") @JsonPropertyOrder({ - TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.JSON_PROPERTY_AGGREGATION, - TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.JSON_PROPERTY_INTERVAL, - TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.JSON_PROPERTY_METRIC + FormulaAndFunctionEventQueryDefinitionCompute.JSON_PROPERTY_AGGREGATION, + FormulaAndFunctionEventQueryDefinitionCompute.JSON_PROPERTY_INTERVAL, + FormulaAndFunctionEventQueryDefinitionCompute.JSON_PROPERTY_METRIC }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute { +public class FormulaAndFunctionEventQueryDefinitionCompute { public static final String JSON_PROPERTY_AGGREGATION = "aggregation"; private FormulaAndFunctionEventAggregation aggregation; @@ -48,7 +48,7 @@ public class TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute { private String metric; - public TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute aggregation(FormulaAndFunctionEventAggregation aggregation) { + public FormulaAndFunctionEventQueryDefinitionCompute aggregation(FormulaAndFunctionEventAggregation aggregation) { this.aggregation = aggregation; return this; } @@ -71,7 +71,7 @@ public void setAggregation(FormulaAndFunctionEventAggregation aggregation) { } - public TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute interval(Long interval) { + public FormulaAndFunctionEventQueryDefinitionCompute interval(Long interval) { this.interval = interval; return this; } @@ -95,7 +95,7 @@ public void setInterval(Long interval) { } - public TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute metric(String metric) { + public FormulaAndFunctionEventQueryDefinitionCompute metric(String metric) { this.metric = metric; return this; } @@ -120,7 +120,7 @@ public void setMetric(String metric) { /** - * Return true if this TimeSeriesFormulaAndFunctionEventQueryDefinition_compute object is equal to o. + * Return true if this FormulaAndFunctionEventQueryDefinition_compute object is equal to o. */ @Override public boolean equals(Object o) { @@ -130,10 +130,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute timeSeriesFormulaAndFunctionEventQueryDefinitionCompute = (TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute) o; - return Objects.equals(this.aggregation, timeSeriesFormulaAndFunctionEventQueryDefinitionCompute.aggregation) && - Objects.equals(this.interval, timeSeriesFormulaAndFunctionEventQueryDefinitionCompute.interval) && - Objects.equals(this.metric, timeSeriesFormulaAndFunctionEventQueryDefinitionCompute.metric); + FormulaAndFunctionEventQueryDefinitionCompute formulaAndFunctionEventQueryDefinitionCompute = (FormulaAndFunctionEventQueryDefinitionCompute) o; + return Objects.equals(this.aggregation, formulaAndFunctionEventQueryDefinitionCompute.aggregation) && + Objects.equals(this.interval, formulaAndFunctionEventQueryDefinitionCompute.interval) && + Objects.equals(this.metric, formulaAndFunctionEventQueryDefinitionCompute.metric); } @Override @@ -145,7 +145,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute {\n"); + sb.append("class FormulaAndFunctionEventQueryDefinitionCompute {\n"); sb.append(" aggregation: ").append(toIndentedString(aggregation)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); diff --git a/src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch.java b/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionEventQueryDefinitionSearch.java similarity index 77% rename from src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch.java rename to src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionEventQueryDefinitionSearch.java index 8a60cf799f4..e4061d2d158 100644 --- a/src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch.java +++ b/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionEventQueryDefinitionSearch.java @@ -31,15 +31,15 @@ */ @ApiModel(description = "Search options.") @JsonPropertyOrder({ - TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch.JSON_PROPERTY_QUERY + FormulaAndFunctionEventQueryDefinitionSearch.JSON_PROPERTY_QUERY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch { +public class FormulaAndFunctionEventQueryDefinitionSearch { public static final String JSON_PROPERTY_QUERY = "query"; private String query; - public TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch query(String query) { + public FormulaAndFunctionEventQueryDefinitionSearch query(String query) { this.query = query; return this; } @@ -63,7 +63,7 @@ public void setQuery(String query) { /** - * Return true if this TimeSeriesFormulaAndFunctionEventQueryDefinition_search object is equal to o. + * Return true if this FormulaAndFunctionEventQueryDefinition_search object is equal to o. */ @Override public boolean equals(Object o) { @@ -73,8 +73,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch timeSeriesFormulaAndFunctionEventQueryDefinitionSearch = (TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch) o; - return Objects.equals(this.query, timeSeriesFormulaAndFunctionEventQueryDefinitionSearch.query); + FormulaAndFunctionEventQueryDefinitionSearch formulaAndFunctionEventQueryDefinitionSearch = (FormulaAndFunctionEventQueryDefinitionSearch) o; + return Objects.equals(this.query, formulaAndFunctionEventQueryDefinitionSearch.query); } @Override @@ -86,7 +86,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch {\n"); + sb.append("class FormulaAndFunctionEventQueryDefinitionSearch {\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionEventQueryGroupBy.java b/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionEventQueryGroupBy.java similarity index 70% rename from src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionEventQueryGroupBy.java rename to src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionEventQueryGroupBy.java index 5f64ba59307..7cef46d89cc 100644 --- a/src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionEventQueryGroupBy.java +++ b/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionEventQueryGroupBy.java @@ -15,7 +15,7 @@ import java.util.Arrays; import java.util.Map; import java.util.HashMap; -import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionEventQueryGroupBySort; +import com.datadog.api.v1.client.model.FormulaAndFunctionEventQueryGroupBySort; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -32,12 +32,12 @@ */ @ApiModel(description = "List of objects used to group by.") @JsonPropertyOrder({ - TimeSeriesFormulaAndFunctionEventQueryGroupBy.JSON_PROPERTY_FACET, - TimeSeriesFormulaAndFunctionEventQueryGroupBy.JSON_PROPERTY_LIMIT, - TimeSeriesFormulaAndFunctionEventQueryGroupBy.JSON_PROPERTY_SORT + FormulaAndFunctionEventQueryGroupBy.JSON_PROPERTY_FACET, + FormulaAndFunctionEventQueryGroupBy.JSON_PROPERTY_LIMIT, + FormulaAndFunctionEventQueryGroupBy.JSON_PROPERTY_SORT }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class TimeSeriesFormulaAndFunctionEventQueryGroupBy { +public class FormulaAndFunctionEventQueryGroupBy { public static final String JSON_PROPERTY_FACET = "facet"; private String facet; @@ -45,10 +45,10 @@ public class TimeSeriesFormulaAndFunctionEventQueryGroupBy { private Long limit; public static final String JSON_PROPERTY_SORT = "sort"; - private TimeSeriesFormulaAndFunctionEventQueryGroupBySort sort; + private FormulaAndFunctionEventQueryGroupBySort sort; - public TimeSeriesFormulaAndFunctionEventQueryGroupBy facet(String facet) { + public FormulaAndFunctionEventQueryGroupBy facet(String facet) { this.facet = facet; return this; } @@ -71,7 +71,7 @@ public void setFacet(String facet) { } - public TimeSeriesFormulaAndFunctionEventQueryGroupBy limit(Long limit) { + public FormulaAndFunctionEventQueryGroupBy limit(Long limit) { this.limit = limit; return this; } @@ -95,7 +95,7 @@ public void setLimit(Long limit) { } - public TimeSeriesFormulaAndFunctionEventQueryGroupBy sort(TimeSeriesFormulaAndFunctionEventQueryGroupBySort sort) { + public FormulaAndFunctionEventQueryGroupBy sort(FormulaAndFunctionEventQueryGroupBySort sort) { this.sort = sort; return this; } @@ -109,18 +109,18 @@ public TimeSeriesFormulaAndFunctionEventQueryGroupBy sort(TimeSeriesFormulaAndFu @JsonProperty(JSON_PROPERTY_SORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TimeSeriesFormulaAndFunctionEventQueryGroupBySort getSort() { + public FormulaAndFunctionEventQueryGroupBySort getSort() { return sort; } - public void setSort(TimeSeriesFormulaAndFunctionEventQueryGroupBySort sort) { + public void setSort(FormulaAndFunctionEventQueryGroupBySort sort) { this.sort = sort; } /** - * Return true if this TimeSeriesFormulaAndFunctionEventQueryGroupBy object is equal to o. + * Return true if this FormulaAndFunctionEventQueryGroupBy object is equal to o. */ @Override public boolean equals(Object o) { @@ -130,10 +130,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TimeSeriesFormulaAndFunctionEventQueryGroupBy timeSeriesFormulaAndFunctionEventQueryGroupBy = (TimeSeriesFormulaAndFunctionEventQueryGroupBy) o; - return Objects.equals(this.facet, timeSeriesFormulaAndFunctionEventQueryGroupBy.facet) && - Objects.equals(this.limit, timeSeriesFormulaAndFunctionEventQueryGroupBy.limit) && - Objects.equals(this.sort, timeSeriesFormulaAndFunctionEventQueryGroupBy.sort); + FormulaAndFunctionEventQueryGroupBy formulaAndFunctionEventQueryGroupBy = (FormulaAndFunctionEventQueryGroupBy) o; + return Objects.equals(this.facet, formulaAndFunctionEventQueryGroupBy.facet) && + Objects.equals(this.limit, formulaAndFunctionEventQueryGroupBy.limit) && + Objects.equals(this.sort, formulaAndFunctionEventQueryGroupBy.sort); } @Override @@ -145,7 +145,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class TimeSeriesFormulaAndFunctionEventQueryGroupBy {\n"); + sb.append("class FormulaAndFunctionEventQueryGroupBy {\n"); sb.append(" facet: ").append(toIndentedString(facet)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); diff --git a/src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionEventQueryGroupBySort.java b/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionEventQueryGroupBySort.java similarity index 76% rename from src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionEventQueryGroupBySort.java rename to src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionEventQueryGroupBySort.java index 1ddf248c4a9..11f56bcf0d5 100644 --- a/src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionEventQueryGroupBySort.java +++ b/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionEventQueryGroupBySort.java @@ -33,12 +33,12 @@ */ @ApiModel(description = "Options for sorting group by results.") @JsonPropertyOrder({ - TimeSeriesFormulaAndFunctionEventQueryGroupBySort.JSON_PROPERTY_AGGREGATION, - TimeSeriesFormulaAndFunctionEventQueryGroupBySort.JSON_PROPERTY_METRIC, - TimeSeriesFormulaAndFunctionEventQueryGroupBySort.JSON_PROPERTY_ORDER + FormulaAndFunctionEventQueryGroupBySort.JSON_PROPERTY_AGGREGATION, + FormulaAndFunctionEventQueryGroupBySort.JSON_PROPERTY_METRIC, + FormulaAndFunctionEventQueryGroupBySort.JSON_PROPERTY_ORDER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class TimeSeriesFormulaAndFunctionEventQueryGroupBySort { +public class FormulaAndFunctionEventQueryGroupBySort { public static final String JSON_PROPERTY_AGGREGATION = "aggregation"; private FormulaAndFunctionEventAggregation aggregation; @@ -49,7 +49,7 @@ public class TimeSeriesFormulaAndFunctionEventQueryGroupBySort { private QuerySortOrder order = QuerySortOrder.DESC; - public TimeSeriesFormulaAndFunctionEventQueryGroupBySort aggregation(FormulaAndFunctionEventAggregation aggregation) { + public FormulaAndFunctionEventQueryGroupBySort aggregation(FormulaAndFunctionEventAggregation aggregation) { this.aggregation = aggregation; return this; } @@ -72,7 +72,7 @@ public void setAggregation(FormulaAndFunctionEventAggregation aggregation) { } - public TimeSeriesFormulaAndFunctionEventQueryGroupBySort metric(String metric) { + public FormulaAndFunctionEventQueryGroupBySort metric(String metric) { this.metric = metric; return this; } @@ -96,7 +96,7 @@ public void setMetric(String metric) { } - public TimeSeriesFormulaAndFunctionEventQueryGroupBySort order(QuerySortOrder order) { + public FormulaAndFunctionEventQueryGroupBySort order(QuerySortOrder order) { this.order = order; return this; } @@ -121,7 +121,7 @@ public void setOrder(QuerySortOrder order) { /** - * Return true if this TimeSeriesFormulaAndFunctionEventQueryGroupBy_sort object is equal to o. + * Return true if this FormulaAndFunctionEventQueryGroupBy_sort object is equal to o. */ @Override public boolean equals(Object o) { @@ -131,10 +131,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TimeSeriesFormulaAndFunctionEventQueryGroupBySort timeSeriesFormulaAndFunctionEventQueryGroupBySort = (TimeSeriesFormulaAndFunctionEventQueryGroupBySort) o; - return Objects.equals(this.aggregation, timeSeriesFormulaAndFunctionEventQueryGroupBySort.aggregation) && - Objects.equals(this.metric, timeSeriesFormulaAndFunctionEventQueryGroupBySort.metric) && - Objects.equals(this.order, timeSeriesFormulaAndFunctionEventQueryGroupBySort.order); + FormulaAndFunctionEventQueryGroupBySort formulaAndFunctionEventQueryGroupBySort = (FormulaAndFunctionEventQueryGroupBySort) o; + return Objects.equals(this.aggregation, formulaAndFunctionEventQueryGroupBySort.aggregation) && + Objects.equals(this.metric, formulaAndFunctionEventQueryGroupBySort.metric) && + Objects.equals(this.order, formulaAndFunctionEventQueryGroupBySort.order); } @Override @@ -146,7 +146,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class TimeSeriesFormulaAndFunctionEventQueryGroupBySort {\n"); + sb.append("class FormulaAndFunctionEventQueryGroupBySort {\n"); sb.append(" aggregation: ").append(toIndentedString(aggregation)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); diff --git a/src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionMetricQueryDefinition.java b/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionMetricQueryDefinition.java similarity index 73% rename from src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionMetricQueryDefinition.java rename to src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionMetricQueryDefinition.java index fcef1c6883e..366459d118b 100644 --- a/src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionMetricQueryDefinition.java +++ b/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionMetricQueryDefinition.java @@ -29,17 +29,17 @@ /** - * A timeseries formula and functions metrics query. + * A formula and functions metrics query. */ -@ApiModel(description = "A timeseries formula and functions metrics query.") +@ApiModel(description = "A formula and functions metrics query.") @JsonPropertyOrder({ - TimeSeriesFormulaAndFunctionMetricQueryDefinition.JSON_PROPERTY_AGGREGATOR, - TimeSeriesFormulaAndFunctionMetricQueryDefinition.JSON_PROPERTY_DATA_SOURCE, - TimeSeriesFormulaAndFunctionMetricQueryDefinition.JSON_PROPERTY_NAME, - TimeSeriesFormulaAndFunctionMetricQueryDefinition.JSON_PROPERTY_QUERY + FormulaAndFunctionMetricQueryDefinition.JSON_PROPERTY_AGGREGATOR, + FormulaAndFunctionMetricQueryDefinition.JSON_PROPERTY_DATA_SOURCE, + FormulaAndFunctionMetricQueryDefinition.JSON_PROPERTY_NAME, + FormulaAndFunctionMetricQueryDefinition.JSON_PROPERTY_QUERY }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class TimeSeriesFormulaAndFunctionMetricQueryDefinition { +public class FormulaAndFunctionMetricQueryDefinition { public static final String JSON_PROPERTY_AGGREGATOR = "aggregator"; private FormulaAndFunctionMetricAggregation aggregator; @@ -53,7 +53,7 @@ public class TimeSeriesFormulaAndFunctionMetricQueryDefinition { private String query; - public TimeSeriesFormulaAndFunctionMetricQueryDefinition aggregator(FormulaAndFunctionMetricAggregation aggregator) { + public FormulaAndFunctionMetricQueryDefinition aggregator(FormulaAndFunctionMetricAggregation aggregator) { this.aggregator = aggregator; return this; } @@ -77,7 +77,7 @@ public void setAggregator(FormulaAndFunctionMetricAggregation aggregator) { } - public TimeSeriesFormulaAndFunctionMetricQueryDefinition dataSource(FormulaAndFunctionMetricDataSource dataSource) { + public FormulaAndFunctionMetricQueryDefinition dataSource(FormulaAndFunctionMetricDataSource dataSource) { this.dataSource = dataSource; return this; } @@ -100,7 +100,7 @@ public void setDataSource(FormulaAndFunctionMetricDataSource dataSource) { } - public TimeSeriesFormulaAndFunctionMetricQueryDefinition name(String name) { + public FormulaAndFunctionMetricQueryDefinition name(String name) { this.name = name; return this; } @@ -124,7 +124,7 @@ public void setName(String name) { } - public TimeSeriesFormulaAndFunctionMetricQueryDefinition query(String query) { + public FormulaAndFunctionMetricQueryDefinition query(String query) { this.query = query; return this; } @@ -148,7 +148,7 @@ public void setQuery(String query) { /** - * Return true if this TimeSeriesFormulaAndFunctionMetricQueryDefinition object is equal to o. + * Return true if this FormulaAndFunctionMetricQueryDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -158,11 +158,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TimeSeriesFormulaAndFunctionMetricQueryDefinition timeSeriesFormulaAndFunctionMetricQueryDefinition = (TimeSeriesFormulaAndFunctionMetricQueryDefinition) o; - return Objects.equals(this.aggregator, timeSeriesFormulaAndFunctionMetricQueryDefinition.aggregator) && - Objects.equals(this.dataSource, timeSeriesFormulaAndFunctionMetricQueryDefinition.dataSource) && - Objects.equals(this.name, timeSeriesFormulaAndFunctionMetricQueryDefinition.name) && - Objects.equals(this.query, timeSeriesFormulaAndFunctionMetricQueryDefinition.query); + FormulaAndFunctionMetricQueryDefinition formulaAndFunctionMetricQueryDefinition = (FormulaAndFunctionMetricQueryDefinition) o; + return Objects.equals(this.aggregator, formulaAndFunctionMetricQueryDefinition.aggregator) && + Objects.equals(this.dataSource, formulaAndFunctionMetricQueryDefinition.dataSource) && + Objects.equals(this.name, formulaAndFunctionMetricQueryDefinition.name) && + Objects.equals(this.query, formulaAndFunctionMetricQueryDefinition.query); } @Override @@ -174,7 +174,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class TimeSeriesFormulaAndFunctionMetricQueryDefinition {\n"); + sb.append("class FormulaAndFunctionMetricQueryDefinition {\n"); sb.append(" aggregator: ").append(toIndentedString(aggregator)).append("\n"); sb.append(" dataSource: ").append(toIndentedString(dataSource)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionProcessQueryDefinition.java b/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionProcessQueryDefinition.java similarity index 73% rename from src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionProcessQueryDefinition.java rename to src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionProcessQueryDefinition.java index 3d2167ecddc..37fb37e0ca7 100644 --- a/src/main/java/com/datadog/api/v1/client/model/TimeSeriesFormulaAndFunctionProcessQueryDefinition.java +++ b/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionProcessQueryDefinition.java @@ -36,18 +36,18 @@ */ @ApiModel(description = "Process query using formulas and functions.") @JsonPropertyOrder({ - TimeSeriesFormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_AGGREGATOR, - TimeSeriesFormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_DATA_SOURCE, - TimeSeriesFormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_IS_NORMALIZED_CPU, - TimeSeriesFormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_LIMIT, - TimeSeriesFormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_METRIC, - TimeSeriesFormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_NAME, - TimeSeriesFormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_SORT, - TimeSeriesFormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_TAG_FILTERS, - TimeSeriesFormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_TEXT_FILTER + FormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_AGGREGATOR, + FormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_DATA_SOURCE, + FormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_IS_NORMALIZED_CPU, + FormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_LIMIT, + FormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_METRIC, + FormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_NAME, + FormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_SORT, + FormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_TAG_FILTERS, + FormulaAndFunctionProcessQueryDefinition.JSON_PROPERTY_TEXT_FILTER }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class TimeSeriesFormulaAndFunctionProcessQueryDefinition { +public class FormulaAndFunctionProcessQueryDefinition { public static final String JSON_PROPERTY_AGGREGATOR = "aggregator"; private FormulaAndFunctionMetricAggregation aggregator; @@ -76,7 +76,7 @@ public class TimeSeriesFormulaAndFunctionProcessQueryDefinition { private String textFilter; - public TimeSeriesFormulaAndFunctionProcessQueryDefinition aggregator(FormulaAndFunctionMetricAggregation aggregator) { + public FormulaAndFunctionProcessQueryDefinition aggregator(FormulaAndFunctionMetricAggregation aggregator) { this.aggregator = aggregator; return this; } @@ -100,7 +100,7 @@ public void setAggregator(FormulaAndFunctionMetricAggregation aggregator) { } - public TimeSeriesFormulaAndFunctionProcessQueryDefinition dataSource(FormulaAndFunctionProcessQueryDataSource dataSource) { + public FormulaAndFunctionProcessQueryDefinition dataSource(FormulaAndFunctionProcessQueryDataSource dataSource) { this.dataSource = dataSource; return this; } @@ -123,7 +123,7 @@ public void setDataSource(FormulaAndFunctionProcessQueryDataSource dataSource) { } - public TimeSeriesFormulaAndFunctionProcessQueryDefinition isNormalizedCpu(Boolean isNormalizedCpu) { + public FormulaAndFunctionProcessQueryDefinition isNormalizedCpu(Boolean isNormalizedCpu) { this.isNormalizedCpu = isNormalizedCpu; return this; } @@ -147,7 +147,7 @@ public void setIsNormalizedCpu(Boolean isNormalizedCpu) { } - public TimeSeriesFormulaAndFunctionProcessQueryDefinition limit(Long limit) { + public FormulaAndFunctionProcessQueryDefinition limit(Long limit) { this.limit = limit; return this; } @@ -171,7 +171,7 @@ public void setLimit(Long limit) { } - public TimeSeriesFormulaAndFunctionProcessQueryDefinition metric(String metric) { + public FormulaAndFunctionProcessQueryDefinition metric(String metric) { this.metric = metric; return this; } @@ -194,7 +194,7 @@ public void setMetric(String metric) { } - public TimeSeriesFormulaAndFunctionProcessQueryDefinition name(String name) { + public FormulaAndFunctionProcessQueryDefinition name(String name) { this.name = name; return this; } @@ -218,7 +218,7 @@ public void setName(String name) { } - public TimeSeriesFormulaAndFunctionProcessQueryDefinition sort(QuerySortOrder sort) { + public FormulaAndFunctionProcessQueryDefinition sort(QuerySortOrder sort) { this.sort = sort; return this; } @@ -242,12 +242,12 @@ public void setSort(QuerySortOrder sort) { } - public TimeSeriesFormulaAndFunctionProcessQueryDefinition tagFilters(List tagFilters) { + public FormulaAndFunctionProcessQueryDefinition tagFilters(List tagFilters) { this.tagFilters = tagFilters; return this; } - public TimeSeriesFormulaAndFunctionProcessQueryDefinition addTagFiltersItem(String tagFiltersItem) { + public FormulaAndFunctionProcessQueryDefinition addTagFiltersItem(String tagFiltersItem) { if (this.tagFilters == null) { this.tagFilters = new ArrayList<>(); } @@ -274,7 +274,7 @@ public void setTagFilters(List tagFilters) { } - public TimeSeriesFormulaAndFunctionProcessQueryDefinition textFilter(String textFilter) { + public FormulaAndFunctionProcessQueryDefinition textFilter(String textFilter) { this.textFilter = textFilter; return this; } @@ -299,7 +299,7 @@ public void setTextFilter(String textFilter) { /** - * Return true if this TimeSeriesFormulaAndFunctionProcessQueryDefinition object is equal to o. + * Return true if this FormulaAndFunctionProcessQueryDefinition object is equal to o. */ @Override public boolean equals(Object o) { @@ -309,16 +309,16 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TimeSeriesFormulaAndFunctionProcessQueryDefinition timeSeriesFormulaAndFunctionProcessQueryDefinition = (TimeSeriesFormulaAndFunctionProcessQueryDefinition) o; - return Objects.equals(this.aggregator, timeSeriesFormulaAndFunctionProcessQueryDefinition.aggregator) && - Objects.equals(this.dataSource, timeSeriesFormulaAndFunctionProcessQueryDefinition.dataSource) && - Objects.equals(this.isNormalizedCpu, timeSeriesFormulaAndFunctionProcessQueryDefinition.isNormalizedCpu) && - Objects.equals(this.limit, timeSeriesFormulaAndFunctionProcessQueryDefinition.limit) && - Objects.equals(this.metric, timeSeriesFormulaAndFunctionProcessQueryDefinition.metric) && - Objects.equals(this.name, timeSeriesFormulaAndFunctionProcessQueryDefinition.name) && - Objects.equals(this.sort, timeSeriesFormulaAndFunctionProcessQueryDefinition.sort) && - Objects.equals(this.tagFilters, timeSeriesFormulaAndFunctionProcessQueryDefinition.tagFilters) && - Objects.equals(this.textFilter, timeSeriesFormulaAndFunctionProcessQueryDefinition.textFilter); + FormulaAndFunctionProcessQueryDefinition formulaAndFunctionProcessQueryDefinition = (FormulaAndFunctionProcessQueryDefinition) o; + return Objects.equals(this.aggregator, formulaAndFunctionProcessQueryDefinition.aggregator) && + Objects.equals(this.dataSource, formulaAndFunctionProcessQueryDefinition.dataSource) && + Objects.equals(this.isNormalizedCpu, formulaAndFunctionProcessQueryDefinition.isNormalizedCpu) && + Objects.equals(this.limit, formulaAndFunctionProcessQueryDefinition.limit) && + Objects.equals(this.metric, formulaAndFunctionProcessQueryDefinition.metric) && + Objects.equals(this.name, formulaAndFunctionProcessQueryDefinition.name) && + Objects.equals(this.sort, formulaAndFunctionProcessQueryDefinition.sort) && + Objects.equals(this.tagFilters, formulaAndFunctionProcessQueryDefinition.tagFilters) && + Objects.equals(this.textFilter, formulaAndFunctionProcessQueryDefinition.textFilter); } @Override @@ -330,7 +330,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class TimeSeriesFormulaAndFunctionProcessQueryDefinition {\n"); + sb.append("class FormulaAndFunctionProcessQueryDefinition {\n"); sb.append(" aggregator: ").append(toIndentedString(aggregator)).append("\n"); sb.append(" dataSource: ").append(toIndentedString(dataSource)).append("\n"); sb.append(" isNormalizedCpu: ").append(toIndentedString(isNormalizedCpu)).append("\n"); diff --git a/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionQueryDefinition.java b/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionQueryDefinition.java index fa0d88f8aff..ec2391b7e32 100644 --- a/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionQueryDefinition.java +++ b/src/main/java/com/datadog/api/v1/client/model/FormulaAndFunctionQueryDefinition.java @@ -15,15 +15,15 @@ import java.util.Arrays; import java.util.Map; import java.util.HashMap; +import com.datadog.api.v1.client.model.FormulaAndFunctionEventQueryDefinition; +import com.datadog.api.v1.client.model.FormulaAndFunctionEventQueryDefinitionCompute; +import com.datadog.api.v1.client.model.FormulaAndFunctionEventQueryDefinitionSearch; +import com.datadog.api.v1.client.model.FormulaAndFunctionEventQueryGroupBy; import com.datadog.api.v1.client.model.FormulaAndFunctionMetricAggregation; +import com.datadog.api.v1.client.model.FormulaAndFunctionMetricQueryDefinition; import com.datadog.api.v1.client.model.FormulaAndFunctionProcessQueryDataSource; +import com.datadog.api.v1.client.model.FormulaAndFunctionProcessQueryDefinition; import com.datadog.api.v1.client.model.QuerySortOrder; -import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionEventQueryDefinition; -import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute; -import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch; -import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionEventQueryGroupBy; -import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionMetricQueryDefinition; -import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionProcessQueryDefinition; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -100,82 +100,82 @@ public FormulaAndFunctionQueryDefinition deserialize(JsonParser jp, Deserializat boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize TimeSeriesFormulaAndFunctionEventQueryDefinition + // deserialize FormulaAndFunctionEventQueryDefinition try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - if (TimeSeriesFormulaAndFunctionEventQueryDefinition.class.equals(Integer.class) || TimeSeriesFormulaAndFunctionEventQueryDefinition.class.equals(Long.class) || TimeSeriesFormulaAndFunctionEventQueryDefinition.class.equals(Float.class) || TimeSeriesFormulaAndFunctionEventQueryDefinition.class.equals(Double.class) || TimeSeriesFormulaAndFunctionEventQueryDefinition.class.equals(Boolean.class) || TimeSeriesFormulaAndFunctionEventQueryDefinition.class.equals(String.class)) { + if (FormulaAndFunctionEventQueryDefinition.class.equals(Integer.class) || FormulaAndFunctionEventQueryDefinition.class.equals(Long.class) || FormulaAndFunctionEventQueryDefinition.class.equals(Float.class) || FormulaAndFunctionEventQueryDefinition.class.equals(Double.class) || FormulaAndFunctionEventQueryDefinition.class.equals(Boolean.class) || FormulaAndFunctionEventQueryDefinition.class.equals(String.class)) { attemptParsing = typeCoercion; if (!attemptParsing) { - attemptParsing |= ((TimeSeriesFormulaAndFunctionEventQueryDefinition.class.equals(Integer.class) || TimeSeriesFormulaAndFunctionEventQueryDefinition.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= ((TimeSeriesFormulaAndFunctionEventQueryDefinition.class.equals(Float.class) || TimeSeriesFormulaAndFunctionEventQueryDefinition.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= (TimeSeriesFormulaAndFunctionEventQueryDefinition.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); - attemptParsing |= (TimeSeriesFormulaAndFunctionEventQueryDefinition.class.equals(String.class) && token == JsonToken.VALUE_STRING); + attemptParsing |= ((FormulaAndFunctionEventQueryDefinition.class.equals(Integer.class) || FormulaAndFunctionEventQueryDefinition.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= ((FormulaAndFunctionEventQueryDefinition.class.equals(Float.class) || FormulaAndFunctionEventQueryDefinition.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= (FormulaAndFunctionEventQueryDefinition.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (FormulaAndFunctionEventQueryDefinition.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(TimeSeriesFormulaAndFunctionEventQueryDefinition.class); + deserialized = tree.traverse(jp.getCodec()).readValueAs(FormulaAndFunctionEventQueryDefinition.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. match++; - log.log(Level.FINER, "Input data matches schema 'TimeSeriesFormulaAndFunctionEventQueryDefinition'"); + log.log(Level.FINER, "Input data matches schema 'FormulaAndFunctionEventQueryDefinition'"); } } catch (Exception e) { // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'TimeSeriesFormulaAndFunctionEventQueryDefinition'", e); + log.log(Level.FINER, "Input data does not match schema 'FormulaAndFunctionEventQueryDefinition'", e); } - // deserialize TimeSeriesFormulaAndFunctionMetricQueryDefinition + // deserialize FormulaAndFunctionMetricQueryDefinition try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - if (TimeSeriesFormulaAndFunctionMetricQueryDefinition.class.equals(Integer.class) || TimeSeriesFormulaAndFunctionMetricQueryDefinition.class.equals(Long.class) || TimeSeriesFormulaAndFunctionMetricQueryDefinition.class.equals(Float.class) || TimeSeriesFormulaAndFunctionMetricQueryDefinition.class.equals(Double.class) || TimeSeriesFormulaAndFunctionMetricQueryDefinition.class.equals(Boolean.class) || TimeSeriesFormulaAndFunctionMetricQueryDefinition.class.equals(String.class)) { + if (FormulaAndFunctionMetricQueryDefinition.class.equals(Integer.class) || FormulaAndFunctionMetricQueryDefinition.class.equals(Long.class) || FormulaAndFunctionMetricQueryDefinition.class.equals(Float.class) || FormulaAndFunctionMetricQueryDefinition.class.equals(Double.class) || FormulaAndFunctionMetricQueryDefinition.class.equals(Boolean.class) || FormulaAndFunctionMetricQueryDefinition.class.equals(String.class)) { attemptParsing = typeCoercion; if (!attemptParsing) { - attemptParsing |= ((TimeSeriesFormulaAndFunctionMetricQueryDefinition.class.equals(Integer.class) || TimeSeriesFormulaAndFunctionMetricQueryDefinition.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= ((TimeSeriesFormulaAndFunctionMetricQueryDefinition.class.equals(Float.class) || TimeSeriesFormulaAndFunctionMetricQueryDefinition.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= (TimeSeriesFormulaAndFunctionMetricQueryDefinition.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); - attemptParsing |= (TimeSeriesFormulaAndFunctionMetricQueryDefinition.class.equals(String.class) && token == JsonToken.VALUE_STRING); + attemptParsing |= ((FormulaAndFunctionMetricQueryDefinition.class.equals(Integer.class) || FormulaAndFunctionMetricQueryDefinition.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= ((FormulaAndFunctionMetricQueryDefinition.class.equals(Float.class) || FormulaAndFunctionMetricQueryDefinition.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= (FormulaAndFunctionMetricQueryDefinition.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (FormulaAndFunctionMetricQueryDefinition.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(TimeSeriesFormulaAndFunctionMetricQueryDefinition.class); + deserialized = tree.traverse(jp.getCodec()).readValueAs(FormulaAndFunctionMetricQueryDefinition.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. match++; - log.log(Level.FINER, "Input data matches schema 'TimeSeriesFormulaAndFunctionMetricQueryDefinition'"); + log.log(Level.FINER, "Input data matches schema 'FormulaAndFunctionMetricQueryDefinition'"); } } catch (Exception e) { // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'TimeSeriesFormulaAndFunctionMetricQueryDefinition'", e); + log.log(Level.FINER, "Input data does not match schema 'FormulaAndFunctionMetricQueryDefinition'", e); } - // deserialize TimeSeriesFormulaAndFunctionProcessQueryDefinition + // deserialize FormulaAndFunctionProcessQueryDefinition try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - if (TimeSeriesFormulaAndFunctionProcessQueryDefinition.class.equals(Integer.class) || TimeSeriesFormulaAndFunctionProcessQueryDefinition.class.equals(Long.class) || TimeSeriesFormulaAndFunctionProcessQueryDefinition.class.equals(Float.class) || TimeSeriesFormulaAndFunctionProcessQueryDefinition.class.equals(Double.class) || TimeSeriesFormulaAndFunctionProcessQueryDefinition.class.equals(Boolean.class) || TimeSeriesFormulaAndFunctionProcessQueryDefinition.class.equals(String.class)) { + if (FormulaAndFunctionProcessQueryDefinition.class.equals(Integer.class) || FormulaAndFunctionProcessQueryDefinition.class.equals(Long.class) || FormulaAndFunctionProcessQueryDefinition.class.equals(Float.class) || FormulaAndFunctionProcessQueryDefinition.class.equals(Double.class) || FormulaAndFunctionProcessQueryDefinition.class.equals(Boolean.class) || FormulaAndFunctionProcessQueryDefinition.class.equals(String.class)) { attemptParsing = typeCoercion; if (!attemptParsing) { - attemptParsing |= ((TimeSeriesFormulaAndFunctionProcessQueryDefinition.class.equals(Integer.class) || TimeSeriesFormulaAndFunctionProcessQueryDefinition.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= ((TimeSeriesFormulaAndFunctionProcessQueryDefinition.class.equals(Float.class) || TimeSeriesFormulaAndFunctionProcessQueryDefinition.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= (TimeSeriesFormulaAndFunctionProcessQueryDefinition.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); - attemptParsing |= (TimeSeriesFormulaAndFunctionProcessQueryDefinition.class.equals(String.class) && token == JsonToken.VALUE_STRING); + attemptParsing |= ((FormulaAndFunctionProcessQueryDefinition.class.equals(Integer.class) || FormulaAndFunctionProcessQueryDefinition.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= ((FormulaAndFunctionProcessQueryDefinition.class.equals(Float.class) || FormulaAndFunctionProcessQueryDefinition.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= (FormulaAndFunctionProcessQueryDefinition.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (FormulaAndFunctionProcessQueryDefinition.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(TimeSeriesFormulaAndFunctionProcessQueryDefinition.class); + deserialized = tree.traverse(jp.getCodec()).readValueAs(FormulaAndFunctionProcessQueryDefinition.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. match++; - log.log(Level.FINER, "Input data matches schema 'TimeSeriesFormulaAndFunctionProcessQueryDefinition'"); + log.log(Level.FINER, "Input data matches schema 'FormulaAndFunctionProcessQueryDefinition'"); } } catch (Exception e) { // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'TimeSeriesFormulaAndFunctionProcessQueryDefinition'", e); + log.log(Level.FINER, "Input data does not match schema 'FormulaAndFunctionProcessQueryDefinition'", e); } if (match == 1) { @@ -202,27 +202,27 @@ public FormulaAndFunctionQueryDefinition() { super("oneOf", Boolean.FALSE); } - public FormulaAndFunctionQueryDefinition(TimeSeriesFormulaAndFunctionEventQueryDefinition o) { + public FormulaAndFunctionQueryDefinition(FormulaAndFunctionEventQueryDefinition o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } - public FormulaAndFunctionQueryDefinition(TimeSeriesFormulaAndFunctionMetricQueryDefinition o) { + public FormulaAndFunctionQueryDefinition(FormulaAndFunctionMetricQueryDefinition o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } - public FormulaAndFunctionQueryDefinition(TimeSeriesFormulaAndFunctionProcessQueryDefinition o) { + public FormulaAndFunctionQueryDefinition(FormulaAndFunctionProcessQueryDefinition o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("TimeSeriesFormulaAndFunctionEventQueryDefinition", new GenericType() { + schemas.put("FormulaAndFunctionEventQueryDefinition", new GenericType() { }); - schemas.put("TimeSeriesFormulaAndFunctionMetricQueryDefinition", new GenericType() { + schemas.put("FormulaAndFunctionMetricQueryDefinition", new GenericType() { }); - schemas.put("TimeSeriesFormulaAndFunctionProcessQueryDefinition", new GenericType() { + schemas.put("FormulaAndFunctionProcessQueryDefinition", new GenericType() { }); JSON.registerDescendants(FormulaAndFunctionQueryDefinition.class, Collections.unmodifiableMap(schemas)); } @@ -235,36 +235,36 @@ public Map getSchemas() { /** * Set the instance that matches the oneOf child schema, check * the instance parameter is valid against the oneOf child schemas: - * TimeSeriesFormulaAndFunctionEventQueryDefinition, TimeSeriesFormulaAndFunctionMetricQueryDefinition, TimeSeriesFormulaAndFunctionProcessQueryDefinition + * FormulaAndFunctionEventQueryDefinition, FormulaAndFunctionMetricQueryDefinition, FormulaAndFunctionProcessQueryDefinition * * It could be an instance of the 'oneOf' schemas. * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). */ @Override public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(TimeSeriesFormulaAndFunctionEventQueryDefinition.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(FormulaAndFunctionEventQueryDefinition.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } - if (JSON.isInstanceOf(TimeSeriesFormulaAndFunctionMetricQueryDefinition.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(FormulaAndFunctionMetricQueryDefinition.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } - if (JSON.isInstanceOf(TimeSeriesFormulaAndFunctionProcessQueryDefinition.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(FormulaAndFunctionProcessQueryDefinition.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be TimeSeriesFormulaAndFunctionEventQueryDefinition, TimeSeriesFormulaAndFunctionMetricQueryDefinition, TimeSeriesFormulaAndFunctionProcessQueryDefinition"); + throw new RuntimeException("Invalid instance type. Must be FormulaAndFunctionEventQueryDefinition, FormulaAndFunctionMetricQueryDefinition, FormulaAndFunctionProcessQueryDefinition"); } /** * Get the actual instance, which can be the following: - * TimeSeriesFormulaAndFunctionEventQueryDefinition, TimeSeriesFormulaAndFunctionMetricQueryDefinition, TimeSeriesFormulaAndFunctionProcessQueryDefinition + * FormulaAndFunctionEventQueryDefinition, FormulaAndFunctionMetricQueryDefinition, FormulaAndFunctionProcessQueryDefinition * - * @return The actual instance (TimeSeriesFormulaAndFunctionEventQueryDefinition, TimeSeriesFormulaAndFunctionMetricQueryDefinition, TimeSeriesFormulaAndFunctionProcessQueryDefinition) + * @return The actual instance (FormulaAndFunctionEventQueryDefinition, FormulaAndFunctionMetricQueryDefinition, FormulaAndFunctionProcessQueryDefinition) */ @Override public Object getActualInstance() { @@ -272,36 +272,36 @@ public Object getActualInstance() { } /** - * Get the actual instance of `TimeSeriesFormulaAndFunctionEventQueryDefinition`. If the actual instanct is not `TimeSeriesFormulaAndFunctionEventQueryDefinition`, + * Get the actual instance of `FormulaAndFunctionEventQueryDefinition`. If the actual instanct is not `FormulaAndFunctionEventQueryDefinition`, * the ClassCastException will be thrown. * - * @return The actual instance of `TimeSeriesFormulaAndFunctionEventQueryDefinition` - * @throws ClassCastException if the instance is not `TimeSeriesFormulaAndFunctionEventQueryDefinition` + * @return The actual instance of `FormulaAndFunctionEventQueryDefinition` + * @throws ClassCastException if the instance is not `FormulaAndFunctionEventQueryDefinition` */ - public TimeSeriesFormulaAndFunctionEventQueryDefinition getTimeSeriesFormulaAndFunctionEventQueryDefinition() throws ClassCastException { - return (TimeSeriesFormulaAndFunctionEventQueryDefinition)super.getActualInstance(); + public FormulaAndFunctionEventQueryDefinition getFormulaAndFunctionEventQueryDefinition() throws ClassCastException { + return (FormulaAndFunctionEventQueryDefinition)super.getActualInstance(); } /** - * Get the actual instance of `TimeSeriesFormulaAndFunctionMetricQueryDefinition`. If the actual instanct is not `TimeSeriesFormulaAndFunctionMetricQueryDefinition`, + * Get the actual instance of `FormulaAndFunctionMetricQueryDefinition`. If the actual instanct is not `FormulaAndFunctionMetricQueryDefinition`, * the ClassCastException will be thrown. * - * @return The actual instance of `TimeSeriesFormulaAndFunctionMetricQueryDefinition` - * @throws ClassCastException if the instance is not `TimeSeriesFormulaAndFunctionMetricQueryDefinition` + * @return The actual instance of `FormulaAndFunctionMetricQueryDefinition` + * @throws ClassCastException if the instance is not `FormulaAndFunctionMetricQueryDefinition` */ - public TimeSeriesFormulaAndFunctionMetricQueryDefinition getTimeSeriesFormulaAndFunctionMetricQueryDefinition() throws ClassCastException { - return (TimeSeriesFormulaAndFunctionMetricQueryDefinition)super.getActualInstance(); + public FormulaAndFunctionMetricQueryDefinition getFormulaAndFunctionMetricQueryDefinition() throws ClassCastException { + return (FormulaAndFunctionMetricQueryDefinition)super.getActualInstance(); } /** - * Get the actual instance of `TimeSeriesFormulaAndFunctionProcessQueryDefinition`. If the actual instanct is not `TimeSeriesFormulaAndFunctionProcessQueryDefinition`, + * Get the actual instance of `FormulaAndFunctionProcessQueryDefinition`. If the actual instanct is not `FormulaAndFunctionProcessQueryDefinition`, * the ClassCastException will be thrown. * - * @return The actual instance of `TimeSeriesFormulaAndFunctionProcessQueryDefinition` - * @throws ClassCastException if the instance is not `TimeSeriesFormulaAndFunctionProcessQueryDefinition` + * @return The actual instance of `FormulaAndFunctionProcessQueryDefinition` + * @throws ClassCastException if the instance is not `FormulaAndFunctionProcessQueryDefinition` */ - public TimeSeriesFormulaAndFunctionProcessQueryDefinition getTimeSeriesFormulaAndFunctionProcessQueryDefinition() throws ClassCastException { - return (TimeSeriesFormulaAndFunctionProcessQueryDefinition)super.getActualInstance(); + public FormulaAndFunctionProcessQueryDefinition getFormulaAndFunctionProcessQueryDefinition() throws ClassCastException { + return (FormulaAndFunctionProcessQueryDefinition)super.getActualInstance(); } } diff --git a/src/main/java/com/datadog/api/v1/openapi.yaml b/src/main/java/com/datadog/api/v1/openapi.yaml index e2d0a1cf352..4bdf4205514 100644 --- a/src/main/java/com/datadog/api/v1/openapi.yaml +++ b/src/main/java/com/datadog/api/v1/openapi.yaml @@ -1598,6 +1598,91 @@ components: - MIN - MAX - AVG + FormulaAndFunctionEventQueryDefinition: + description: A formula and functions events query. + properties: + compute: + description: Compute options. + properties: + aggregation: + $ref: '#/components/schemas/FormulaAndFunctionEventAggregation' + interval: + description: A time interval in milliseconds. + example: 60000 + format: int64 + type: integer + metric: + description: Measurable attribute to compute. + example: '@duration' + type: string + required: + - aggregation + type: object + data_source: + $ref: '#/components/schemas/FormulaAndFunctionEventsDataSource' + group_by: + description: Group by options. + items: + $ref: '#/components/schemas/FormulaAndFunctionEventQueryGroupBy' + type: array + indexes: + description: An array of index names to query in the stream. Omit or use + `[]` to query all indexes at once. + example: + - days-3 + - days-7 + items: + description: A log index set up for your organization. For additional + indexes, see the [multiple indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes) + documentation. + type: string + type: array + name: + description: Name of the query for use in formulas. + example: query_errors + type: string + search: + description: Search options. + properties: + query: + description: Events search string. + example: service:query + type: string + required: + - query + type: object + required: + - data_source + - compute + type: object + FormulaAndFunctionEventQueryGroupBy: + description: List of objects used to group by. + properties: + facet: + description: Event facet. + example: status. + type: string + limit: + description: Number of groups to return. + example: 10 + format: int64 + type: integer + sort: + description: Options for sorting group by results. + properties: + aggregation: + $ref: '#/components/schemas/FormulaAndFunctionEventAggregation' + metric: + description: Metric used for sorting group by results. + type: string + order: + $ref: '#/components/schemas/QuerySortOrder' + required: + - aggregation + type: object + required: + - facet + type: object FormulaAndFunctionEventsDataSource: description: Data source for event platform-based queries. enum: @@ -1644,6 +1729,28 @@ components: type: string x-enum-varnames: - METRICS + FormulaAndFunctionMetricQueryDefinition: + description: A formula and functions metrics query. + example: + data_source: metrics + query: avg:system.cpu.user{*} + properties: + aggregator: + $ref: '#/components/schemas/FormulaAndFunctionMetricAggregation' + data_source: + $ref: '#/components/schemas/FormulaAndFunctionMetricDataSource' + name: + description: Name of the query for use in formulas. + example: my_query + type: string + query: + description: Metrics query definition. + example: avg:system.cpu.user{*} + type: string + required: + - data_source + - query + type: object FormulaAndFunctionProcessQueryDataSource: description: Data sources that rely on the process backend. enum: @@ -1653,12 +1760,48 @@ components: x-enum-varnames: - PROCESS - CONTAINER + FormulaAndFunctionProcessQueryDefinition: + description: Process query using formulas and functions. + properties: + aggregator: + $ref: '#/components/schemas/FormulaAndFunctionMetricAggregation' + data_source: + $ref: '#/components/schemas/FormulaAndFunctionProcessQueryDataSource' + is_normalized_cpu: + description: Whether to normalize the CPU percentages. + type: boolean + limit: + description: Number of hits to return. + format: int64 + type: integer + metric: + description: Process metric name. + example: avg:system.cpu.user{*} + type: string + name: + description: Name of query for use in formulas. + type: string + sort: + $ref: '#/components/schemas/QuerySortOrder' + tag_filters: + description: An array of tags to filter by. + items: + description: One of the tags to filter by. + type: string + type: array + text_filter: + description: Text to use as filter. + type: string + required: + - data_source + - metric + type: object FormulaAndFunctionQueryDefinition: description: A formula and function query. oneOf: - - $ref: '#/components/schemas/TimeSeriesFormulaAndFunctionMetricQueryDefinition' - - $ref: '#/components/schemas/TimeSeriesFormulaAndFunctionEventQueryDefinition' - - $ref: '#/components/schemas/TimeSeriesFormulaAndFunctionProcessQueryDefinition' + - $ref: '#/components/schemas/FormulaAndFunctionMetricQueryDefinition' + - $ref: '#/components/schemas/FormulaAndFunctionEventQueryDefinition' + - $ref: '#/components/schemas/FormulaAndFunctionProcessQueryDefinition' type: object FormulaAndFunctionResponseFormat: description: Timeseries or Scalar response. This feature is currently in beta. @@ -7808,149 +7951,6 @@ components: - STRING - INTEGER - DOUBLE - TimeSeriesFormulaAndFunctionEventQueryDefinition: - description: A timeseries formula and functions events query. - properties: - compute: - description: Compute options. - properties: - aggregation: - $ref: '#/components/schemas/FormulaAndFunctionEventAggregation' - interval: - description: A time interval in milliseconds. - example: 60000 - format: int64 - type: integer - metric: - description: Measurable attribute to compute. - example: '@duration' - type: string - required: - - aggregation - type: object - data_source: - $ref: '#/components/schemas/FormulaAndFunctionEventsDataSource' - group_by: - description: Group by options. - items: - $ref: '#/components/schemas/TimeSeriesFormulaAndFunctionEventQueryGroupBy' - type: array - indexes: - description: An array of index names to query in the stream. Omit or use - `[]` to query all indexes at once. - example: - - days-3 - - days-7 - items: - description: A log index set up for your organization. For additional - indexes, see the [multiple indexes](https://docs.datadoghq.com/logs/indexes/#multiple-indexes) - documentation. - type: string - type: array - name: - description: Name of the query for use in formulas. - example: query_errors - type: string - search: - description: Search options. - properties: - query: - description: Events search string. - example: service:query - type: string - required: - - query - type: object - required: - - data_source - - compute - type: object - TimeSeriesFormulaAndFunctionEventQueryGroupBy: - description: List of objects used to group by. - properties: - facet: - description: Event facet. - example: status. - type: string - limit: - description: Number of groups to return. - example: 10 - format: int64 - type: integer - sort: - description: Options for sorting group by results. - properties: - aggregation: - $ref: '#/components/schemas/FormulaAndFunctionEventAggregation' - metric: - description: Metric used for sorting group by results. - type: string - order: - $ref: '#/components/schemas/QuerySortOrder' - required: - - aggregation - type: object - required: - - facet - type: object - TimeSeriesFormulaAndFunctionMetricQueryDefinition: - description: A timeseries formula and functions metrics query. - example: - data_source: metrics - query: avg:system.cpu.user{*} - properties: - aggregator: - $ref: '#/components/schemas/FormulaAndFunctionMetricAggregation' - data_source: - $ref: '#/components/schemas/FormulaAndFunctionMetricDataSource' - name: - description: Name of the query for use in formulas. - example: my_query - type: string - query: - description: Metrics query definition. - example: avg:system.cpu.user{*} - type: string - required: - - data_source - - query - type: object - TimeSeriesFormulaAndFunctionProcessQueryDefinition: - description: Process query using formulas and functions. - properties: - aggregator: - $ref: '#/components/schemas/FormulaAndFunctionMetricAggregation' - data_source: - $ref: '#/components/schemas/FormulaAndFunctionProcessQueryDataSource' - is_normalized_cpu: - description: Whether to normalize the CPU percentages. - type: boolean - limit: - description: Number of hits to return. - format: int64 - type: integer - metric: - description: Process metric name. - example: avg:system.cpu.user{*} - type: string - name: - description: Name of query for use in formulas. - type: string - sort: - $ref: '#/components/schemas/QuerySortOrder' - tag_filters: - description: An array of tags to filter by. - items: - description: One of the tags to filter by. - type: string - type: array - text_filter: - description: Text to use as filter. - type: string - required: - - data_source - - metric - type: object TimeseriesWidgetDefinition: description: The timeseries visualization allows you to display the evolution of one or more metrics, log events, or Indexed Spans over time.