Skip to content

Commit e450f4e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0eb6daf of spec repo
1 parent 1ad66cb commit e450f4e

12 files changed

+190
-40
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 47 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3368,8 +3368,10 @@ components:
33683368
x-enum-varnames:
33693369
- FORMULA
33703370
FreeTextWidgetDefinition:
3371-
description: Free text is a widget that allows you to add headings to your screenboard. Commonly used to state the overall purpose of the dashboard. Only available on FREE layout dashboards.
3371+
description: Free text is a widget that allows you to add headings to your dashboard. Commonly used to state the overall purpose of the dashboard.
33723372
properties:
3373+
background_color:
3374+
$ref: "#/components/schemas/WidgetBackgroundColor"
33733375
color:
33743376
description: Color of the text.
33753377
type: string
@@ -3810,11 +3812,10 @@ components:
38103812
x-enum-varnames:
38113813
- GROUP
38123814
GroupWidgetDefinition:
3813-
description: The groups widget allows you to keep similar graphs together on your timeboard. Each group has a custom header, can hold one to many graphs, and is collapsible.
3815+
description: The group widget allows you to keep similar graphs together on your dashboard. Each group has a custom header, can hold one to many graphs, and is collapsible.
38143816
properties:
38153817
background_color:
3816-
description: Background color of the group title.
3817-
type: string
3818+
$ref: "#/components/schemas/WidgetBackgroundColor"
38183819
banner_img:
38193820
description: URL of image to display as a banner for the group.
38203821
type: string
@@ -4672,7 +4673,7 @@ components:
46724673
- VULN_MANAGEMENT_HOSTS_USAGE
46734674
- WORKFLOW_EXECUTIONS_USAGE
46744675
IFrameWidgetDefinition:
4675-
description: The iframe widget allows you to embed a portion of any other web page on your dashboard. Only available on FREE layout dashboards.
4676+
description: The iframe widget allows you to embed a portion of any other web page on your dashboard.
46764677
properties:
46774678
type:
46784679
$ref: "#/components/schemas/IFrameWidgetDefinitionType"
@@ -4944,7 +4945,7 @@ components:
49444945
- message
49454946
type: object
49464947
ImageWidgetDefinition:
4947-
description: The image widget allows you to embed an image on your dashboard. An image can be a PNG, JPG, or animated GIF. Only available on FREE layout dashboards.
4948+
description: The image widget allows you to embed an image on your dashboard. An image can be a PNG, JPG, or animated GIF.
49484949
properties:
49494950
has_background:
49504951
default: true
@@ -5345,7 +5346,7 @@ components:
53455346
- query
53465347
type: object
53475348
LogStreamWidgetDefinition:
5348-
description: The Log Stream displays a log flow matching the defined query. Only available on FREE layout dashboards.
5349+
description: The Log Stream displays a log flow matching the defined query.
53495350
properties:
53505351
columns:
53515352
description: Which columns to display on the widget.
@@ -8760,7 +8761,7 @@ components:
87608761
$ref: "#/components/schemas/MonitorOverallStates"
87618762
type: object
87628763
MonitorSummaryWidgetDefinition:
8763-
description: The monitor summary widget displays a summary view of all your Datadog monitors, or a subset based on a query. Only available on FREE layout dashboards.
8764+
description: The monitor summary widget displays a summary view of all your Datadog monitors, or a subset based on a query.
87648765
properties:
87658766
color_preference:
87668767
$ref: "#/components/schemas/WidgetColorPreference"
@@ -12891,7 +12892,7 @@ components:
1289112892
- METRIC
1289212893
- TIME_SLICE
1289312894
SLOWidgetDefinition:
12894-
description: Use the SLO and uptime widget to track your SLOs (Service Level Objectives) and uptime on screenboards and timeboards.
12895+
description: Use the SLO and uptime widget to track your SLOs (Service Level Objectives) and uptime on dashboards.
1289512896
properties:
1289612897
additional_query_filters:
1289712898
description: Additional filters applied to the SLO query.
@@ -14102,7 +14103,7 @@ components:
1410214103
x-enum-varnames:
1410314104
- SERVICEMAP
1410414105
ServiceSummaryWidgetDefinition:
14105-
description: The service summary displays the graphs of a chosen service in your screenboard. Only available on FREE layout dashboards.
14106+
description: The service summary displays the graphs of a chosen service in your dashboard.
1410614107
properties:
1410714108
description:
1410814109
description: The description of the widget.
@@ -18651,7 +18652,7 @@ components:
1865118652
- BAR
1865218653
- TREND
1865318654
TableWidgetDefinition:
18654-
description: The table visualization is available on timeboards and screenboards. It displays columns of metrics grouped by tag key.
18655+
description: The table visualization is available on dashboards. It displays columns of metrics grouped by tag key.
1865518656
properties:
1865618657
custom_links:
1865718658
description: List of custom links.
@@ -24133,6 +24134,41 @@ components:
2413324134
description: Specifies the scale type. Possible values are `linear`, `log`, `sqrt`, and `pow##` (for example `pow2` or `pow0.5`).
2413424135
type: string
2413524136
type: object
24137+
WidgetBackgroundColor:
24138+
description: Background color of the widget.
24139+
enum:
24140+
- white
24141+
- blue
24142+
- purple
24143+
- pink
24144+
- orange
24145+
- yellow
24146+
- green
24147+
- gray
24148+
- vivid_blue
24149+
- vivid_purple
24150+
- vivid_pink
24151+
- vivid_orange
24152+
- vivid_yellow
24153+
- vivid_green
24154+
- transparent
24155+
type: string
24156+
x-enum-varnames:
24157+
- WHITE
24158+
- BLUE
24159+
- PURPLE
24160+
- PINK
24161+
- ORANGE
24162+
- YELLOW
24163+
- GREEN
24164+
- GRAY
24165+
- VIVID_BLUE
24166+
- VIVID_PURPLE
24167+
- VIVID_PINK
24168+
- VIVID_ORANGE
24169+
- VIVID_YELLOW
24170+
- VIVID_GREEN
24171+
- TRANSPARENT
2413624172
WidgetChangeType:
2413724173
description: Show the absolute or the relative change.
2413824174
enum:

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

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@
1818
import java.util.Objects;
1919

2020
/**
21-
* Free text is a widget that allows you to add headings to your screenboard. Commonly used to state
22-
* the overall purpose of the dashboard. Only available on FREE layout dashboards.
21+
* Free text is a widget that allows you to add headings to your dashboard. Commonly used to state
22+
* the overall purpose of the dashboard.
2323
*/
2424
@JsonPropertyOrder({
25+
FreeTextWidgetDefinition.JSON_PROPERTY_BACKGROUND_COLOR,
2526
FreeTextWidgetDefinition.JSON_PROPERTY_COLOR,
2627
FreeTextWidgetDefinition.JSON_PROPERTY_FONT_SIZE,
2728
FreeTextWidgetDefinition.JSON_PROPERTY_TEXT,
@@ -32,6 +33,9 @@
3233
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
3334
public class FreeTextWidgetDefinition {
3435
@JsonIgnore public boolean unparsed = false;
36+
public static final String JSON_PROPERTY_BACKGROUND_COLOR = "background_color";
37+
private WidgetBackgroundColor backgroundColor;
38+
3539
public static final String JSON_PROPERTY_COLOR = "color";
3640
private String color;
3741

@@ -59,6 +63,31 @@ public FreeTextWidgetDefinition(
5963
this.unparsed |= !type.isValid();
6064
}
6165

66+
public FreeTextWidgetDefinition backgroundColor(WidgetBackgroundColor backgroundColor) {
67+
this.backgroundColor = backgroundColor;
68+
this.unparsed |= !backgroundColor.isValid();
69+
return this;
70+
}
71+
72+
/**
73+
* Background color of the widget.
74+
*
75+
* @return backgroundColor
76+
*/
77+
@jakarta.annotation.Nullable
78+
@JsonProperty(JSON_PROPERTY_BACKGROUND_COLOR)
79+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
80+
public WidgetBackgroundColor getBackgroundColor() {
81+
return backgroundColor;
82+
}
83+
84+
public void setBackgroundColor(WidgetBackgroundColor backgroundColor) {
85+
if (!backgroundColor.isValid()) {
86+
this.unparsed = true;
87+
}
88+
this.backgroundColor = backgroundColor;
89+
}
90+
6291
public FreeTextWidgetDefinition color(String color) {
6392
this.color = color;
6493
return this;
@@ -226,7 +255,8 @@ public boolean equals(Object o) {
226255
return false;
227256
}
228257
FreeTextWidgetDefinition freeTextWidgetDefinition = (FreeTextWidgetDefinition) o;
229-
return Objects.equals(this.color, freeTextWidgetDefinition.color)
258+
return Objects.equals(this.backgroundColor, freeTextWidgetDefinition.backgroundColor)
259+
&& Objects.equals(this.color, freeTextWidgetDefinition.color)
230260
&& Objects.equals(this.fontSize, freeTextWidgetDefinition.fontSize)
231261
&& Objects.equals(this.text, freeTextWidgetDefinition.text)
232262
&& Objects.equals(this.textAlign, freeTextWidgetDefinition.textAlign)
@@ -236,13 +266,15 @@ public boolean equals(Object o) {
236266

237267
@Override
238268
public int hashCode() {
239-
return Objects.hash(color, fontSize, text, textAlign, type, additionalProperties);
269+
return Objects.hash(
270+
backgroundColor, color, fontSize, text, textAlign, type, additionalProperties);
240271
}
241272

242273
@Override
243274
public String toString() {
244275
StringBuilder sb = new StringBuilder();
245276
sb.append("class FreeTextWidgetDefinition {\n");
277+
sb.append(" backgroundColor: ").append(toIndentedString(backgroundColor)).append("\n");
246278
sb.append(" color: ").append(toIndentedString(color)).append("\n");
247279
sb.append(" fontSize: ").append(toIndentedString(fontSize)).append("\n");
248280
sb.append(" text: ").append(toIndentedString(text)).append("\n");

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import java.util.Objects;
2121

2222
/**
23-
* The groups widget allows you to keep similar graphs together on your timeboard. Each group has a
23+
* The group widget allows you to keep similar graphs together on your dashboard. Each group has a
2424
* custom header, can hold one to many graphs, and is collapsible.
2525
*/
2626
@JsonPropertyOrder({
@@ -38,7 +38,7 @@
3838
public class GroupWidgetDefinition {
3939
@JsonIgnore public boolean unparsed = false;
4040
public static final String JSON_PROPERTY_BACKGROUND_COLOR = "background_color";
41-
private String backgroundColor;
41+
private WidgetBackgroundColor backgroundColor;
4242

4343
public static final String JSON_PROPERTY_BANNER_IMG = "banner_img";
4444
private String bannerImg;
@@ -75,24 +75,28 @@ public GroupWidgetDefinition(
7575
this.widgets = widgets;
7676
}
7777

78-
public GroupWidgetDefinition backgroundColor(String backgroundColor) {
78+
public GroupWidgetDefinition backgroundColor(WidgetBackgroundColor backgroundColor) {
7979
this.backgroundColor = backgroundColor;
80+
this.unparsed |= !backgroundColor.isValid();
8081
return this;
8182
}
8283

8384
/**
84-
* Background color of the group title.
85+
* Background color of the widget.
8586
*
8687
* @return backgroundColor
8788
*/
8889
@jakarta.annotation.Nullable
8990
@JsonProperty(JSON_PROPERTY_BACKGROUND_COLOR)
9091
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
91-
public String getBackgroundColor() {
92+
public WidgetBackgroundColor getBackgroundColor() {
9293
return backgroundColor;
9394
}
9495

95-
public void setBackgroundColor(String backgroundColor) {
96+
public void setBackgroundColor(WidgetBackgroundColor backgroundColor) {
97+
if (!backgroundColor.isValid()) {
98+
this.unparsed = true;
99+
}
96100
this.backgroundColor = backgroundColor;
97101
}
98102

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
import java.util.Map;
1818
import java.util.Objects;
1919

20-
/**
21-
* The iframe widget allows you to embed a portion of any other web page on your dashboard. Only
22-
* available on FREE layout dashboards.
23-
*/
20+
/** The iframe widget allows you to embed a portion of any other web page on your dashboard. */
2421
@JsonPropertyOrder({
2522
IFrameWidgetDefinition.JSON_PROPERTY_TYPE,
2623
IFrameWidgetDefinition.JSON_PROPERTY_URL

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/**
2121
* The image widget allows you to embed an image on your dashboard. An image can be a PNG, JPG, or
22-
* animated GIF. Only available on FREE layout dashboards.
22+
* animated GIF.
2323
*/
2424
@JsonPropertyOrder({
2525
ImageWidgetDefinition.JSON_PROPERTY_HAS_BACKGROUND,

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@
1919
import java.util.Map;
2020
import java.util.Objects;
2121

22-
/**
23-
* The Log Stream displays a log flow matching the defined query. Only available on FREE layout
24-
* dashboards.
25-
*/
22+
/** The Log Stream displays a log flow matching the defined query. */
2623
@JsonPropertyOrder({
2724
LogStreamWidgetDefinition.JSON_PROPERTY_COLUMNS,
2825
LogStreamWidgetDefinition.JSON_PROPERTY_DESCRIPTION,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
/**
2121
* The monitor summary widget displays a summary view of all your Datadog monitors, or a subset
22-
* based on a query. Only available on FREE layout dashboards.
22+
* based on a query.
2323
*/
2424
@JsonPropertyOrder({
2525
MonitorSummaryWidgetDefinition.JSON_PROPERTY_COLOR_PREFERENCE,

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ public NotebookLogStreamCellAttributes definition(LogStreamWidgetDefinition defi
5454
}
5555

5656
/**
57-
* The Log Stream displays a log flow matching the defined query. Only available on FREE layout
58-
* dashboards.
57+
* The Log Stream displays a log flow matching the defined query.
5958
*
6059
* @return definition
6160
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
/**
2323
* Use the SLO and uptime widget to track your SLOs (Service Level Objectives) and uptime on
24-
* screenboards and timeboards.
24+
* dashboards.
2525
*/
2626
@JsonPropertyOrder({
2727
SLOWidgetDefinition.JSON_PROPERTY_ADDITIONAL_QUERY_FILTERS,

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
import java.util.Map;
1818
import java.util.Objects;
1919

20-
/**
21-
* The service summary displays the graphs of a chosen service in your screenboard. Only available
22-
* on FREE layout dashboards.
23-
*/
20+
/** The service summary displays the graphs of a chosen service in your dashboard. */
2421
@JsonPropertyOrder({
2522
ServiceSummaryWidgetDefinition.JSON_PROPERTY_DESCRIPTION,
2623
ServiceSummaryWidgetDefinition.JSON_PROPERTY_DISPLAY_FORMAT,

0 commit comments

Comments
 (0)