Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove enum from legend_size #418

Merged
merged 3 commits into from
Aug 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.2.0",
"regenerated": "2020-08-12 09:59:53.576511",
"spec_repo_commit": "783bb02"
"regenerated": "2020-08-13 15:38:12.648609",
"spec_repo_commit": "6e8e271"
},
"v2": {
"apigentools_version": "1.2.0",
"regenerated": "2020-08-12 10:00:00.109492",
"spec_repo_commit": "783bb02"
"regenerated": "2020-08-13 15:38:19.394464",
"spec_repo_commit": "6e8e271"
}
}
}
69 changes: 37 additions & 32 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2464,14 +2464,12 @@ components:
your organization.
example:
compute:
- aggregation: pc90
interval: 20m
metric: '@score'
type: timeseries
- aggregation: pc90
interval: 20m
metric: '@score'
type: timeseries
- metric: '@duration'
aggregation: pc90
interval: 5m
- metric: '@duration'
aggregation: pc90
interval: 5m
filter:
indexes:
- main
Expand All @@ -2481,24 +2479,26 @@ components:
to: now
options:
timezone: GMT
timeOffset: 0
timeOffset: 6
group_by:
- facet: host
limit: 50
missing: missing_host
- histogram:
min: 50
max: 100
interval: 10
limit: 0
sort:
aggregation: count
order: asc
type: alphabetical
total: true
type: facet
- facet: host
limit: 50
missing: missing_host
facet: host
- histogram:
min: 50
max: 100
interval: 10
limit: 0
sort:
aggregation: count
order: asc
type: alphabetical
total: true
type: facet
facet: host
paging:
after: eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==
properties:
Expand Down Expand Up @@ -2605,6 +2605,7 @@ components:
- min
- max
- avg
example: pc90
type: string
x-enum-varnames:
- COUNT
Expand Down Expand Up @@ -2933,10 +2934,9 @@ components:
LogsCompute:
description: A compute rule to compute metrics or timeseries
example:
metric: '@duration'
aggregation: pc90
interval: 20m
metric: '@score'
type: timeseries
interval: 5m
properties:
aggregation:
$ref: '#/components/schemas/LogsAggregationFunction'
Expand Down Expand Up @@ -2968,14 +2968,15 @@ components:
LogsGroupBy:
description: A group by rule
example:
facet: host
limit: 50
missing: missing_host
histogram:
min: 50
max: 100
interval: 10
limit: 0
sort:
aggregation: count
order: asc
type: alphabetical
total: true
type: facet
facet: host
properties:
facet:
description: The name of the facet to use (required)
Expand Down Expand Up @@ -3038,7 +3039,7 @@ components:
to: now
options:
timezone: GMT
timeOffset: 0
timeOffset: 6
page:
cursor: eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==
limit: 25
Expand Down Expand Up @@ -3157,7 +3158,7 @@ components:
Note: You should only supply timezone or time offset but not both otherwise the query will fail.
example:
timezone: GMT
timeOffset: 0
timeOffset: 6
properties:
timeOffset:
description: The time offset (in seconds) to apply to the query.
Expand Down Expand Up @@ -5204,6 +5205,10 @@ components:
description: |-
Used to perform a histogram computation (only for measure facets).
Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
example:
min: 50
max: 100
interval: 10
properties:
interval:
description: The bin size of the histogram buckets
Expand Down
2 changes: 1 addition & 1 deletion api_docs/v1/DistributionWidgetDefinition.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The Distribution visualization is another way of showing metrics aggregated acro

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**legendSize** | [**WidgetLegendSize**](WidgetLegendSize.md) | | [optional]
**legendSize** | **String** | Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\". | [optional]
**requests** | [**List<DistributionWidgetRequest>**](DistributionWidgetRequest.md) | Array of one request object to display in the widget. See the dedicated [Request JSON schema documentation](https://docs.datadoghq.com/dashboards/graphing_json/request_json) to learn how to build the `REQUEST_SCHEMA`. |
**showLegend** | **Boolean** | Whether or not to display the legend on this widget. | [optional]
**time** | [**WidgetTime**](WidgetTime.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion api_docs/v1/HeatMapWidgetDefinition.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The heat map visualization shows metrics aggregated across many tags, such as ho
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**events** | [**List<WidgetEvent>**](WidgetEvent.md) | List of widget events. | [optional]
**legendSize** | [**WidgetLegendSize**](WidgetLegendSize.md) | | [optional]
**legendSize** | **String** | Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\". | [optional]
**requests** | [**List<HeatMapWidgetRequest>**](HeatMapWidgetRequest.md) | List of widget types. |
**showLegend** | **Boolean** | Whether or not to display the legend on this widget. | [optional]
**time** | [**WidgetTime**](WidgetTime.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion api_docs/v1/TimeseriesWidgetDefinition.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The timeseries visualization allows you to display the evolution of one or more
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**events** | [**List<WidgetEvent>**](WidgetEvent.md) | List of widget events. | [optional]
**legendSize** | [**WidgetLegendSize**](WidgetLegendSize.md) | | [optional]
**legendSize** | **String** | Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\". | [optional]
**markers** | [**List<WidgetMarker>**](WidgetMarker.md) | List of markers. | [optional]
**requests** | [**List<TimeseriesWidgetRequest>**](TimeseriesWidgetRequest.md) | List of timeseries widget requests. |
**showLegend** | **Boolean** | (screenboard only) Show the legend for this widget. | [optional]
Expand Down
21 changes: 0 additions & 21 deletions api_docs/v1/WidgetLegendSize.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import java.util.HashMap;
import com.datadog.api.v1.client.model.DistributionWidgetDefinitionType;
import com.datadog.api.v1.client.model.DistributionWidgetRequest;
import com.datadog.api.v1.client.model.WidgetLegendSize;
import com.datadog.api.v1.client.model.WidgetTextAlign;
import com.datadog.api.v1.client.model.WidgetTime;
import com.fasterxml.jackson.annotation.JsonInclude;
Expand Down Expand Up @@ -50,7 +49,7 @@
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class DistributionWidgetDefinition {
public static final String JSON_PROPERTY_LEGEND_SIZE = "legend_size";
private WidgetLegendSize legendSize;
private String legendSize;

public static final String JSON_PROPERTY_REQUESTS = "requests";
private List<DistributionWidgetRequest> requests = new ArrayList<>();
Expand All @@ -74,26 +73,26 @@ public class DistributionWidgetDefinition {
private DistributionWidgetDefinitionType type = DistributionWidgetDefinitionType.DISTRIBUTION;


public DistributionWidgetDefinition legendSize(WidgetLegendSize legendSize) {
public DistributionWidgetDefinition legendSize(String legendSize) {
this.legendSize = legendSize;
return this;
}

/**
* Get legendSize
* Available legend sizes for a widget. Should be one of \&quot;0\&quot;, \&quot;2\&quot;, \&quot;4\&quot;, \&quot;8\&quot;, \&quot;16\&quot;, or \&quot;auto\&quot;.
* @return legendSize
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@ApiModelProperty(value = "Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\".")
@JsonProperty(JSON_PROPERTY_LEGEND_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public WidgetLegendSize getLegendSize() {
public String getLegendSize() {
return legendSize;
}


public void setLegendSize(WidgetLegendSize legendSize) {
public void setLegendSize(String legendSize) {
this.legendSize = legendSize;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import com.datadog.api.v1.client.model.HeatMapWidgetRequest;
import com.datadog.api.v1.client.model.WidgetAxis;
import com.datadog.api.v1.client.model.WidgetEvent;
import com.datadog.api.v1.client.model.WidgetLegendSize;
import com.datadog.api.v1.client.model.WidgetTextAlign;
import com.datadog.api.v1.client.model.WidgetTime;
import com.fasterxml.jackson.annotation.JsonInclude;
Expand Down Expand Up @@ -57,7 +56,7 @@ public class HeatMapWidgetDefinition {
private List<WidgetEvent> events = null;

public static final String JSON_PROPERTY_LEGEND_SIZE = "legend_size";
private WidgetLegendSize legendSize;
private String legendSize;

public static final String JSON_PROPERTY_REQUESTS = "requests";
private List<HeatMapWidgetRequest> requests = new ArrayList<>();
Expand Down Expand Up @@ -116,26 +115,26 @@ public void setEvents(List<WidgetEvent> events) {
}


public HeatMapWidgetDefinition legendSize(WidgetLegendSize legendSize) {
public HeatMapWidgetDefinition legendSize(String legendSize) {
this.legendSize = legendSize;
return this;
}

/**
* Get legendSize
* Available legend sizes for a widget. Should be one of \&quot;0\&quot;, \&quot;2\&quot;, \&quot;4\&quot;, \&quot;8\&quot;, \&quot;16\&quot;, or \&quot;auto\&quot;.
* @return legendSize
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@ApiModelProperty(value = "Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\".")
@JsonProperty(JSON_PROPERTY_LEGEND_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public WidgetLegendSize getLegendSize() {
public String getLegendSize() {
return legendSize;
}


public void setLegendSize(WidgetLegendSize legendSize) {
public void setLegendSize(String legendSize) {
this.legendSize = legendSize;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public SyntheticsDeleteTestsPayload addPublicIdsItem(String publicIdsItem) {
* @return publicIds
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "An array of Synthetic test IDs you want to delete.")
@ApiModelProperty(example = "[]", value = "An array of Synthetic test IDs you want to delete.")
@JsonProperty(JSON_PROPERTY_PUBLIC_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import com.datadog.api.v1.client.model.TimeseriesWidgetRequest;
import com.datadog.api.v1.client.model.WidgetAxis;
import com.datadog.api.v1.client.model.WidgetEvent;
import com.datadog.api.v1.client.model.WidgetLegendSize;
import com.datadog.api.v1.client.model.WidgetMarker;
import com.datadog.api.v1.client.model.WidgetTextAlign;
import com.datadog.api.v1.client.model.WidgetTime;
Expand Down Expand Up @@ -59,7 +58,7 @@ public class TimeseriesWidgetDefinition {
private List<WidgetEvent> events = null;

public static final String JSON_PROPERTY_LEGEND_SIZE = "legend_size";
private WidgetLegendSize legendSize;
private String legendSize;

public static final String JSON_PROPERTY_MARKERS = "markers";
private List<WidgetMarker> markers = null;
Expand Down Expand Up @@ -121,26 +120,26 @@ public void setEvents(List<WidgetEvent> events) {
}


public TimeseriesWidgetDefinition legendSize(WidgetLegendSize legendSize) {
public TimeseriesWidgetDefinition legendSize(String legendSize) {
this.legendSize = legendSize;
return this;
}

/**
* Get legendSize
* Available legend sizes for a widget. Should be one of \&quot;0\&quot;, \&quot;2\&quot;, \&quot;4\&quot;, \&quot;8\&quot;, \&quot;16\&quot;, or \&quot;auto\&quot;.
* @return legendSize
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@ApiModelProperty(value = "Available legend sizes for a widget. Should be one of \"0\", \"2\", \"4\", \"8\", \"16\", or \"auto\".")
@JsonProperty(JSON_PROPERTY_LEGEND_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public WidgetLegendSize getLegendSize() {
public String getLegendSize() {
return legendSize;
}


public void setLegendSize(WidgetLegendSize legendSize) {
public void setLegendSize(String legendSize) {
this.legendSize = legendSize;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
import com.datadog.api.v1.client.model.WidgetGrouping;
import com.datadog.api.v1.client.model.WidgetImageSizing;
import com.datadog.api.v1.client.model.WidgetLayoutType;
import com.datadog.api.v1.client.model.WidgetLegendSize;
import com.datadog.api.v1.client.model.WidgetMargin;
import com.datadog.api.v1.client.model.WidgetMarker;
import com.datadog.api.v1.client.model.WidgetMessageDisplay;
Expand Down
Loading