Skip to content

Commit c90c633

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add style and sort to TreeMapWidgetRequest and sort to SunburstWidgetRequest for Dashboards (#3781)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent dc7f83c commit c90c633

3 files changed

Lines changed: 93 additions & 2 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15786,6 +15786,8 @@ components:
1578615786
$ref: "#/components/schemas/LogQueryDefinition"
1578715787
deprecated: true
1578815788
description: Deprecated - Use `queries` and `formulas` instead.
15789+
sort:
15790+
$ref: "#/components/schemas/WidgetSortBy"
1578915791
style:
1579015792
$ref: "#/components/schemas/WidgetStyle"
1579115793
type: object
@@ -20475,6 +20477,10 @@ components:
2047520477
type: array
2047620478
response_format:
2047720479
$ref: "#/components/schemas/FormulaAndFunctionResponseFormat"
20480+
sort:
20481+
$ref: "#/components/schemas/WidgetSortBy"
20482+
style:
20483+
$ref: "#/components/schemas/WidgetRequestStyle"
2047820484
type: object
2047920485
UsageAnalyzedLogsHour:
2048020486
description: The number of analyzed logs for each hour for a given organization.

src/main/java/com/datadog/api/client/v1/model/SunburstWidgetRequest.java

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
SunburstWidgetRequest.JSON_PROPERTY_RESPONSE_FORMAT,
3434
SunburstWidgetRequest.JSON_PROPERTY_RUM_QUERY,
3535
SunburstWidgetRequest.JSON_PROPERTY_SECURITY_QUERY,
36+
SunburstWidgetRequest.JSON_PROPERTY_SORT,
3637
SunburstWidgetRequest.JSON_PROPERTY_STYLE
3738
})
3839
@jakarta.annotation.Generated(
@@ -78,6 +79,9 @@ public class SunburstWidgetRequest {
7879
public static final String JSON_PROPERTY_SECURITY_QUERY = "security_query";
7980
private LogQueryDefinition securityQuery;
8081

82+
public static final String JSON_PROPERTY_SORT = "sort";
83+
private WidgetSortBy sort;
84+
8185
public static final String JSON_PROPERTY_STYLE = "style";
8286
private WidgetStyle style;
8387

@@ -395,6 +399,28 @@ public void setSecurityQuery(LogQueryDefinition securityQuery) {
395399
this.securityQuery = securityQuery;
396400
}
397401

402+
public SunburstWidgetRequest sort(WidgetSortBy sort) {
403+
this.sort = sort;
404+
this.unparsed |= sort.unparsed;
405+
return this;
406+
}
407+
408+
/**
409+
* The controls for sorting the widget.
410+
*
411+
* @return sort
412+
*/
413+
@jakarta.annotation.Nullable
414+
@JsonProperty(JSON_PROPERTY_SORT)
415+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
416+
public WidgetSortBy getSort() {
417+
return sort;
418+
}
419+
420+
public void setSort(WidgetSortBy sort) {
421+
this.sort = sort;
422+
}
423+
398424
public SunburstWidgetRequest style(WidgetStyle style) {
399425
this.style = style;
400426
this.unparsed |= style.unparsed;
@@ -486,6 +512,7 @@ public boolean equals(Object o) {
486512
&& Objects.equals(this.responseFormat, sunburstWidgetRequest.responseFormat)
487513
&& Objects.equals(this.rumQuery, sunburstWidgetRequest.rumQuery)
488514
&& Objects.equals(this.securityQuery, sunburstWidgetRequest.securityQuery)
515+
&& Objects.equals(this.sort, sunburstWidgetRequest.sort)
489516
&& Objects.equals(this.style, sunburstWidgetRequest.style)
490517
&& Objects.equals(this.additionalProperties, sunburstWidgetRequest.additionalProperties);
491518
}
@@ -506,6 +533,7 @@ public int hashCode() {
506533
responseFormat,
507534
rumQuery,
508535
securityQuery,
536+
sort,
509537
style,
510538
additionalProperties);
511539
}
@@ -529,6 +557,7 @@ public String toString() {
529557
sb.append(" responseFormat: ").append(toIndentedString(responseFormat)).append("\n");
530558
sb.append(" rumQuery: ").append(toIndentedString(rumQuery)).append("\n");
531559
sb.append(" securityQuery: ").append(toIndentedString(securityQuery)).append("\n");
560+
sb.append(" sort: ").append(toIndentedString(sort)).append("\n");
532561
sb.append(" style: ").append(toIndentedString(style)).append("\n");
533562
sb.append(" additionalProperties: ")
534563
.append(toIndentedString(additionalProperties))

src/main/java/com/datadog/api/client/v1/model/TreeMapWidgetRequest.java

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
TreeMapWidgetRequest.JSON_PROPERTY_FORMULAS,
2424
TreeMapWidgetRequest.JSON_PROPERTY_Q,
2525
TreeMapWidgetRequest.JSON_PROPERTY_QUERIES,
26-
TreeMapWidgetRequest.JSON_PROPERTY_RESPONSE_FORMAT
26+
TreeMapWidgetRequest.JSON_PROPERTY_RESPONSE_FORMAT,
27+
TreeMapWidgetRequest.JSON_PROPERTY_SORT,
28+
TreeMapWidgetRequest.JSON_PROPERTY_STYLE
2729
})
2830
@jakarta.annotation.Generated(
2931
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -41,6 +43,12 @@ public class TreeMapWidgetRequest {
4143
public static final String JSON_PROPERTY_RESPONSE_FORMAT = "response_format";
4244
private FormulaAndFunctionResponseFormat responseFormat;
4345

46+
public static final String JSON_PROPERTY_SORT = "sort";
47+
private WidgetSortBy sort;
48+
49+
public static final String JSON_PROPERTY_STYLE = "style";
50+
private WidgetRequestStyle style;
51+
4452
public TreeMapWidgetRequest formulas(List<WidgetFormula> formulas) {
4553
this.formulas = formulas;
4654
for (WidgetFormula item : formulas) {
@@ -158,6 +166,50 @@ public void setResponseFormat(FormulaAndFunctionResponseFormat responseFormat) {
158166
this.responseFormat = responseFormat;
159167
}
160168

169+
public TreeMapWidgetRequest sort(WidgetSortBy sort) {
170+
this.sort = sort;
171+
this.unparsed |= sort.unparsed;
172+
return this;
173+
}
174+
175+
/**
176+
* The controls for sorting the widget.
177+
*
178+
* @return sort
179+
*/
180+
@jakarta.annotation.Nullable
181+
@JsonProperty(JSON_PROPERTY_SORT)
182+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
183+
public WidgetSortBy getSort() {
184+
return sort;
185+
}
186+
187+
public void setSort(WidgetSortBy sort) {
188+
this.sort = sort;
189+
}
190+
191+
public TreeMapWidgetRequest style(WidgetRequestStyle style) {
192+
this.style = style;
193+
this.unparsed |= style.unparsed;
194+
return this;
195+
}
196+
197+
/**
198+
* Define request widget style.
199+
*
200+
* @return style
201+
*/
202+
@jakarta.annotation.Nullable
203+
@JsonProperty(JSON_PROPERTY_STYLE)
204+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
205+
public WidgetRequestStyle getStyle() {
206+
return style;
207+
}
208+
209+
public void setStyle(WidgetRequestStyle style) {
210+
this.style = style;
211+
}
212+
161213
/**
162214
* A container for additional, undeclared properties. This is a holder for any undeclared
163215
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -218,12 +270,14 @@ public boolean equals(Object o) {
218270
&& Objects.equals(this.q, treeMapWidgetRequest.q)
219271
&& Objects.equals(this.queries, treeMapWidgetRequest.queries)
220272
&& Objects.equals(this.responseFormat, treeMapWidgetRequest.responseFormat)
273+
&& Objects.equals(this.sort, treeMapWidgetRequest.sort)
274+
&& Objects.equals(this.style, treeMapWidgetRequest.style)
221275
&& Objects.equals(this.additionalProperties, treeMapWidgetRequest.additionalProperties);
222276
}
223277

224278
@Override
225279
public int hashCode() {
226-
return Objects.hash(formulas, q, queries, responseFormat, additionalProperties);
280+
return Objects.hash(formulas, q, queries, responseFormat, sort, style, additionalProperties);
227281
}
228282

229283
@Override
@@ -234,6 +288,8 @@ public String toString() {
234288
sb.append(" q: ").append(toIndentedString(q)).append("\n");
235289
sb.append(" queries: ").append(toIndentedString(queries)).append("\n");
236290
sb.append(" responseFormat: ").append(toIndentedString(responseFormat)).append("\n");
291+
sb.append(" sort: ").append(toIndentedString(sort)).append("\n");
292+
sb.append(" style: ").append(toIndentedString(style)).append("\n");
237293
sb.append(" additionalProperties: ")
238294
.append(toIndentedString(additionalProperties))
239295
.append("\n");

0 commit comments

Comments
 (0)