Skip to content
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
6 changes: 6 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15786,6 +15786,8 @@ components:
$ref: "#/components/schemas/LogQueryDefinition"
deprecated: true
description: Deprecated - Use `queries` and `formulas` instead.
sort:
$ref: "#/components/schemas/WidgetSortBy"
style:
$ref: "#/components/schemas/WidgetStyle"
type: object
Expand Down Expand Up @@ -20475,6 +20477,10 @@ components:
type: array
response_format:
$ref: "#/components/schemas/FormulaAndFunctionResponseFormat"
sort:
$ref: "#/components/schemas/WidgetSortBy"
style:
$ref: "#/components/schemas/WidgetRequestStyle"
type: object
UsageAnalyzedLogsHour:
description: The number of analyzed logs for each hour for a given organization.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
SunburstWidgetRequest.JSON_PROPERTY_RESPONSE_FORMAT,
SunburstWidgetRequest.JSON_PROPERTY_RUM_QUERY,
SunburstWidgetRequest.JSON_PROPERTY_SECURITY_QUERY,
SunburstWidgetRequest.JSON_PROPERTY_SORT,
SunburstWidgetRequest.JSON_PROPERTY_STYLE
})
@jakarta.annotation.Generated(
Expand Down Expand Up @@ -78,6 +79,9 @@ public class SunburstWidgetRequest {
public static final String JSON_PROPERTY_SECURITY_QUERY = "security_query";
private LogQueryDefinition securityQuery;

public static final String JSON_PROPERTY_SORT = "sort";
private WidgetSortBy sort;

public static final String JSON_PROPERTY_STYLE = "style";
private WidgetStyle style;

Expand Down Expand Up @@ -395,6 +399,28 @@ public void setSecurityQuery(LogQueryDefinition securityQuery) {
this.securityQuery = securityQuery;
}

public SunburstWidgetRequest sort(WidgetSortBy sort) {
this.sort = sort;
this.unparsed |= sort.unparsed;
return this;
}

/**
* The controls for sorting the widget.
*
* @return sort
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SORT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public WidgetSortBy getSort() {
return sort;
}

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

public SunburstWidgetRequest style(WidgetStyle style) {
this.style = style;
this.unparsed |= style.unparsed;
Expand Down Expand Up @@ -486,6 +512,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.responseFormat, sunburstWidgetRequest.responseFormat)
&& Objects.equals(this.rumQuery, sunburstWidgetRequest.rumQuery)
&& Objects.equals(this.securityQuery, sunburstWidgetRequest.securityQuery)
&& Objects.equals(this.sort, sunburstWidgetRequest.sort)
&& Objects.equals(this.style, sunburstWidgetRequest.style)
&& Objects.equals(this.additionalProperties, sunburstWidgetRequest.additionalProperties);
}
Expand All @@ -506,6 +533,7 @@ public int hashCode() {
responseFormat,
rumQuery,
securityQuery,
sort,
style,
additionalProperties);
}
Expand All @@ -529,6 +557,7 @@ public String toString() {
sb.append(" responseFormat: ").append(toIndentedString(responseFormat)).append("\n");
sb.append(" rumQuery: ").append(toIndentedString(rumQuery)).append("\n");
sb.append(" securityQuery: ").append(toIndentedString(securityQuery)).append("\n");
sb.append(" sort: ").append(toIndentedString(sort)).append("\n");
sb.append(" style: ").append(toIndentedString(style)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
TreeMapWidgetRequest.JSON_PROPERTY_FORMULAS,
TreeMapWidgetRequest.JSON_PROPERTY_Q,
TreeMapWidgetRequest.JSON_PROPERTY_QUERIES,
TreeMapWidgetRequest.JSON_PROPERTY_RESPONSE_FORMAT
TreeMapWidgetRequest.JSON_PROPERTY_RESPONSE_FORMAT,
TreeMapWidgetRequest.JSON_PROPERTY_SORT,
TreeMapWidgetRequest.JSON_PROPERTY_STYLE
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
Expand All @@ -41,6 +43,12 @@ public class TreeMapWidgetRequest {
public static final String JSON_PROPERTY_RESPONSE_FORMAT = "response_format";
private FormulaAndFunctionResponseFormat responseFormat;

public static final String JSON_PROPERTY_SORT = "sort";
private WidgetSortBy sort;

public static final String JSON_PROPERTY_STYLE = "style";
private WidgetRequestStyle style;

public TreeMapWidgetRequest formulas(List<WidgetFormula> formulas) {
this.formulas = formulas;
for (WidgetFormula item : formulas) {
Expand Down Expand Up @@ -158,6 +166,50 @@ public void setResponseFormat(FormulaAndFunctionResponseFormat responseFormat) {
this.responseFormat = responseFormat;
}

public TreeMapWidgetRequest sort(WidgetSortBy sort) {
this.sort = sort;
this.unparsed |= sort.unparsed;
return this;
}

/**
* The controls for sorting the widget.
*
* @return sort
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SORT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public WidgetSortBy getSort() {
return sort;
}

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

public TreeMapWidgetRequest style(WidgetRequestStyle style) {
this.style = style;
this.unparsed |= style.unparsed;
return this;
}

/**
* Define request widget style.
*
* @return style
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_STYLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public WidgetRequestStyle getStyle() {
return style;
}

public void setStyle(WidgetRequestStyle style) {
this.style = style;
}

/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
Expand Down Expand Up @@ -218,12 +270,14 @@ public boolean equals(Object o) {
&& Objects.equals(this.q, treeMapWidgetRequest.q)
&& Objects.equals(this.queries, treeMapWidgetRequest.queries)
&& Objects.equals(this.responseFormat, treeMapWidgetRequest.responseFormat)
&& Objects.equals(this.sort, treeMapWidgetRequest.sort)
&& Objects.equals(this.style, treeMapWidgetRequest.style)
&& Objects.equals(this.additionalProperties, treeMapWidgetRequest.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(formulas, q, queries, responseFormat, additionalProperties);
return Objects.hash(formulas, q, queries, responseFormat, sort, style, additionalProperties);
}

@Override
Expand All @@ -234,6 +288,8 @@ public String toString() {
sb.append(" q: ").append(toIndentedString(q)).append("\n");
sb.append(" queries: ").append(toIndentedString(queries)).append("\n");
sb.append(" responseFormat: ").append(toIndentedString(responseFormat)).append("\n");
sb.append(" sort: ").append(toIndentedString(sort)).append("\n");
sb.append(" style: ").append(toIndentedString(style)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
Expand Down
Loading