Skip to content

Commit

Permalink
Regenerate client from commit f02c467 of spec repo (#636)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Feb 3, 2021
1 parent 99382ac commit 36931c2
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 66 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.4.1.dev2",
"regenerated": "2021-02-01 18:37:15.314726",
"spec_repo_commit": "ad4a282"
"regenerated": "2021-02-03 08:38:29.208682",
"spec_repo_commit": "f02c467"
},
"v2": {
"apigentools_version": "1.4.1.dev2",
"regenerated": "2021-02-01 18:37:25.055027",
"spec_repo_commit": "ad4a282"
"regenerated": "2021-02-03 08:38:39.829272",
"spec_repo_commit": "f02c467"
}
}
}
2 changes: 1 addition & 1 deletion api_docs/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ Class | Method | HTTP request | Description
- [TimeSeriesFormulaAndFunctionEventQueryDefinition](TimeSeriesFormulaAndFunctionEventQueryDefinition.md)
- [TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute](TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.md)
- [TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy](TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy.md)
- [TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort](TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort.md)
- [TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch](TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch.md)
- [TimeSeriesFormulaAndFunctionEventQueryDefinitionSort](TimeSeriesFormulaAndFunctionEventQueryDefinitionSort.md)
- [TimeSeriesFormulaAndFunctionMetricQueryDefinition](TimeSeriesFormulaAndFunctionMetricQueryDefinition.md)
- [TimeSeriesFormulaAndFunctionProcessQueryDefinition](TimeSeriesFormulaAndFunctionProcessQueryDefinition.md)
- [TimeseriesWidgetDefinition](TimeseriesWidgetDefinition.md)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**compute** | [**TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute**](TimeSeriesFormulaAndFunctionEventQueryDefinitionCompute.md) | |
**dataSource** | **FormulaAndFunctionEventsDataSource** | |
**groupBy** | [**TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy**](TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy.md) | | [optional]
**groupBy** | [**List&lt;TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy&gt;**](TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy.md) | Group by options. | [optional]
**indexes** | **List&lt;String&gt;** | An array of index names to query in the stream. Omit or use &#x60;[]&#x60; to query all indexes at once. | [optional]
**name** | **String** | Name of the query for use in formulas. | [optional]
**search** | [**TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch**](TimeSeriesFormulaAndFunctionEventQueryDefinitionSearch.md) | | [optional]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

# TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy

Group by options.
List of objects used to group by.
## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**facet** | **String** | Event facet. |
**limit** | **Long** | Number of groups to return. | [optional]
**sort** | [**TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort**](TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort.md) | | [optional]
**sort** | [**TimeSeriesFormulaAndFunctionEventQueryDefinitionSort**](TimeSeriesFormulaAndFunctionEventQueryDefinitionSort.md) | | [optional]



Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


# TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort
# TimeSeriesFormulaAndFunctionEventQueryDefinitionSort

Options for sorting group by results.
## Properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class TimeSeriesFormulaAndFunctionEventQueryDefinition {
private FormulaAndFunctionEventsDataSource dataSource;

public static final String JSON_PROPERTY_GROUP_BY = "group_by";
private TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy groupBy;
private List<TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy> groupBy = null;

public static final String JSON_PROPERTY_INDEXES = "indexes";
private List<String> indexes = null;
Expand Down Expand Up @@ -111,26 +111,34 @@ public void setDataSource(FormulaAndFunctionEventsDataSource dataSource) {
}


public TimeSeriesFormulaAndFunctionEventQueryDefinition groupBy(TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy groupBy) {
public TimeSeriesFormulaAndFunctionEventQueryDefinition groupBy(List<TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy> groupBy) {
this.groupBy = groupBy;
return this;
}

public TimeSeriesFormulaAndFunctionEventQueryDefinition addGroupByItem(TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy groupByItem) {
if (this.groupBy == null) {
this.groupBy = new ArrayList<>();
}
this.groupBy.add(groupByItem);
return this;
}

/**
* Get groupBy
* Group by options.
* @return groupBy
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@ApiModelProperty(value = "Group by options.")
@JsonProperty(JSON_PROPERTY_GROUP_BY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy getGroupBy() {
public List<TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy> getGroupBy() {
return groupBy;
}


public void setGroupBy(TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy groupBy) {
public void setGroupBy(List<TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy> groupBy) {
this.groupBy = groupBy;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort;
import com.datadog.api.v1.client.model.TimeSeriesFormulaAndFunctionEventQueryDefinitionSort;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
Expand All @@ -28,9 +28,9 @@


/**
* Group by options.
* List of objects used to group by.
*/
@ApiModel(description = "Group by options.")
@ApiModel(description = "List of objects used to group by.")
@JsonPropertyOrder({
TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy.JSON_PROPERTY_FACET,
TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy.JSON_PROPERTY_LIMIT,
Expand All @@ -45,7 +45,7 @@ public class TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy {
private Long limit;

public static final String JSON_PROPERTY_SORT = "sort";
private TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort sort;
private TimeSeriesFormulaAndFunctionEventQueryDefinitionSort sort;


public TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy facet(String facet) {
Expand Down Expand Up @@ -95,7 +95,7 @@ public void setLimit(Long limit) {
}


public TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy sort(TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort sort) {
public TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy sort(TimeSeriesFormulaAndFunctionEventQueryDefinitionSort sort) {
this.sort = sort;
return this;
}
Expand All @@ -109,12 +109,12 @@ public TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBy sort(TimeSeriesFo
@JsonProperty(JSON_PROPERTY_SORT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort getSort() {
public TimeSeriesFormulaAndFunctionEventQueryDefinitionSort getSort() {
return sort;
}


public void setSort(TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort sort) {
public void setSort(TimeSeriesFormulaAndFunctionEventQueryDefinitionSort sort) {
this.sort = sort;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
*/
@ApiModel(description = "Options for sorting group by results.")
@JsonPropertyOrder({
TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort.JSON_PROPERTY_AGGREGATION,
TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort.JSON_PROPERTY_METRIC,
TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort.JSON_PROPERTY_ORDER,
TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort.JSON_PROPERTY_TYPE
TimeSeriesFormulaAndFunctionEventQueryDefinitionSort.JSON_PROPERTY_AGGREGATION,
TimeSeriesFormulaAndFunctionEventQueryDefinitionSort.JSON_PROPERTY_METRIC,
TimeSeriesFormulaAndFunctionEventQueryDefinitionSort.JSON_PROPERTY_ORDER,
TimeSeriesFormulaAndFunctionEventQueryDefinitionSort.JSON_PROPERTY_TYPE
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort {
public class TimeSeriesFormulaAndFunctionEventQueryDefinitionSort {
public static final String JSON_PROPERTY_AGGREGATION = "aggregation";
private FormulaAndFunctionEventAggregation aggregation;

Expand All @@ -54,7 +54,7 @@ public class TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort {
private FormulaAndFunctionEventsSortType type;


public TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort aggregation(FormulaAndFunctionEventAggregation aggregation) {
public TimeSeriesFormulaAndFunctionEventQueryDefinitionSort aggregation(FormulaAndFunctionEventAggregation aggregation) {
this.aggregation = aggregation;
return this;
}
Expand All @@ -77,7 +77,7 @@ public void setAggregation(FormulaAndFunctionEventAggregation aggregation) {
}


public TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort metric(String metric) {
public TimeSeriesFormulaAndFunctionEventQueryDefinitionSort metric(String metric) {
this.metric = metric;
return this;
}
Expand All @@ -101,7 +101,7 @@ public void setMetric(String metric) {
}


public TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort order(QuerySortOrder order) {
public TimeSeriesFormulaAndFunctionEventQueryDefinitionSort order(QuerySortOrder order) {
this.order = order;
return this;
}
Expand All @@ -125,7 +125,7 @@ public void setOrder(QuerySortOrder order) {
}


public TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort type(FormulaAndFunctionEventsSortType type) {
public TimeSeriesFormulaAndFunctionEventQueryDefinitionSort type(FormulaAndFunctionEventsSortType type) {
this.type = type;
return this;
}
Expand All @@ -150,7 +150,7 @@ public void setType(FormulaAndFunctionEventsSortType type) {


/**
* Return true if this TimeSeriesFormulaAndFunctionEventQueryDefinition_group_by_sort object is equal to o.
* Return true if this TimeSeriesFormulaAndFunctionEventQueryDefinition_sort object is equal to o.
*/
@Override
public boolean equals(Object o) {
Expand All @@ -160,11 +160,11 @@ public boolean equals(Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort timeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort = (TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort) o;
return Objects.equals(this.aggregation, timeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort.aggregation) &&
Objects.equals(this.metric, timeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort.metric) &&
Objects.equals(this.order, timeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort.order) &&
Objects.equals(this.type, timeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort.type);
TimeSeriesFormulaAndFunctionEventQueryDefinitionSort timeSeriesFormulaAndFunctionEventQueryDefinitionSort = (TimeSeriesFormulaAndFunctionEventQueryDefinitionSort) o;
return Objects.equals(this.aggregation, timeSeriesFormulaAndFunctionEventQueryDefinitionSort.aggregation) &&
Objects.equals(this.metric, timeSeriesFormulaAndFunctionEventQueryDefinitionSort.metric) &&
Objects.equals(this.order, timeSeriesFormulaAndFunctionEventQueryDefinitionSort.order) &&
Objects.equals(this.type, timeSeriesFormulaAndFunctionEventQueryDefinitionSort.type);
}

@Override
Expand All @@ -176,7 +176,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TimeSeriesFormulaAndFunctionEventQueryDefinitionGroupBySort {\n");
sb.append("class TimeSeriesFormulaAndFunctionEventQueryDefinitionSort {\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");
Expand Down
59 changes: 31 additions & 28 deletions src/main/java/com/datadog/api/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7605,34 +7605,37 @@ components:
$ref: '#/components/schemas/FormulaAndFunctionEventsDataSource'
group_by:
description: Group by options.
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'
type:
$ref: '#/components/schemas/FormulaAndFunctionEventsSortType'
required:
- aggregation
type: object
required:
- facet
type: object
items:
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'
type:
$ref: '#/components/schemas/FormulaAndFunctionEventsSortType'
required:
- aggregation
type: object
required:
- facet
type: object
type: array
indexes:
description: An array of index names to query in the stream. Omit or use
`[]` to query all indexes at once.
Expand Down

0 comments on commit 36931c2

Please sign in to comment.