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
9 changes: 9 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24164,6 +24164,9 @@ components:
additionalProperties: false
description: Wrapper for live span
properties:
hide_incomplete_cost_data:
description: Whether to hide incomplete cost data in the widget.
type: boolean
live_span:
$ref: '#/components/schemas/WidgetLiveSpan'
type: object
Expand Down Expand Up @@ -24364,6 +24367,9 @@ components:
format: int64
minimum: 0
type: integer
hide_incomplete_cost_data:
description: Whether to hide incomplete cost data in the widget.
type: boolean
to:
description: End time in seconds since epoch.
example: 1712083128
Expand All @@ -24388,6 +24394,9 @@ components:
WidgetNewLiveSpan:
description: Used for arbitrary live span times, such as 17 minutes or 6 hours.
properties:
hide_incomplete_cost_data:
description: Whether to hide incomplete cost data in the widget.
type: boolean
type:
$ref: '#/components/schemas/WidgetNewLiveSpanType'
unit:
Expand Down
3 changes: 2 additions & 1 deletion examples/v1/dashboards/CreateDashboard_3066042014.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public static void main(String[] args) {
new WidgetNewLiveSpan()
.type(WidgetNewLiveSpanType.LIVE)
.unit(WidgetLiveSpanUnit.MINUTE)
.value(8L)))
.value(8L)
.hideIncompleteCostData(true)))
.type(TimeseriesWidgetDefinitionType.TIMESERIES)
.requests(
Collections.singletonList(
Expand Down
3 changes: 2 additions & 1 deletion examples/v1/dashboards/CreateDashboard_3451918078.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public static void main(String[] args) {
new WidgetNewFixedSpan()
.type(WidgetNewFixedSpanType.FIXED)
.from(1712080128L)
.to(1712083128L)))
.to(1712083128L)
.hideIncompleteCostData(true)))
.type(TimeseriesWidgetDefinitionType.TIMESERIES)
.requests(
Collections.singletonList(
Expand Down
3 changes: 2 additions & 1 deletion examples/v1/dashboards/CreateDashboard_4262729673.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public static void main(String[] args) {
.time(
new WidgetTime(
new WidgetLegacyLiveSpan()
.liveSpan(WidgetLiveSpan.PAST_FIVE_MINUTES)))
.liveSpan(WidgetLiveSpan.PAST_FIVE_MINUTES)
.hideIncompleteCostData(true)))
.type(TimeseriesWidgetDefinitionType.TIMESERIES)
.requests(
Collections.singletonList(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,41 @@
import java.util.Objects;

/** Wrapper for live span */
@JsonPropertyOrder({WidgetLegacyLiveSpan.JSON_PROPERTY_LIVE_SPAN})
@JsonPropertyOrder({
WidgetLegacyLiveSpan.JSON_PROPERTY_HIDE_INCOMPLETE_COST_DATA,
WidgetLegacyLiveSpan.JSON_PROPERTY_LIVE_SPAN
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class WidgetLegacyLiveSpan {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_HIDE_INCOMPLETE_COST_DATA = "hide_incomplete_cost_data";
private Boolean hideIncompleteCostData;

public static final String JSON_PROPERTY_LIVE_SPAN = "live_span";
private WidgetLiveSpan liveSpan;

public WidgetLegacyLiveSpan hideIncompleteCostData(Boolean hideIncompleteCostData) {
this.hideIncompleteCostData = hideIncompleteCostData;
return this;
}

/**
* Whether to hide incomplete cost data in the widget.
*
* @return hideIncompleteCostData
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_HIDE_INCOMPLETE_COST_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getHideIncompleteCostData() {
return hideIncompleteCostData;
}

public void setHideIncompleteCostData(Boolean hideIncompleteCostData) {
this.hideIncompleteCostData = hideIncompleteCostData;
}

public WidgetLegacyLiveSpan liveSpan(WidgetLiveSpan liveSpan) {
this.liveSpan = liveSpan;
this.unparsed |= !liveSpan.isValid();
Expand Down Expand Up @@ -56,18 +83,22 @@ public boolean equals(Object o) {
return false;
}
WidgetLegacyLiveSpan widgetLegacyLiveSpan = (WidgetLegacyLiveSpan) o;
return Objects.equals(this.liveSpan, widgetLegacyLiveSpan.liveSpan);
return Objects.equals(this.hideIncompleteCostData, widgetLegacyLiveSpan.hideIncompleteCostData)
&& Objects.equals(this.liveSpan, widgetLegacyLiveSpan.liveSpan);
}

@Override
public int hashCode() {
return Objects.hash(liveSpan);
return Objects.hash(hideIncompleteCostData, liveSpan);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WidgetLegacyLiveSpan {\n");
sb.append(" hideIncompleteCostData: ")
.append(toIndentedString(hideIncompleteCostData))
.append("\n");
sb.append(" liveSpan: ").append(toIndentedString(liveSpan)).append("\n");
sb.append('}');
return sb.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/** Used for fixed span times, such as 'March 1 to March 7'. */
@JsonPropertyOrder({
WidgetNewFixedSpan.JSON_PROPERTY_FROM,
WidgetNewFixedSpan.JSON_PROPERTY_HIDE_INCOMPLETE_COST_DATA,
WidgetNewFixedSpan.JSON_PROPERTY_TO,
WidgetNewFixedSpan.JSON_PROPERTY_TYPE
})
Expand All @@ -30,6 +31,9 @@ public class WidgetNewFixedSpan {
public static final String JSON_PROPERTY_FROM = "from";
private Long from;

public static final String JSON_PROPERTY_HIDE_INCOMPLETE_COST_DATA = "hide_incomplete_cost_data";
private Boolean hideIncompleteCostData;

public static final String JSON_PROPERTY_TO = "to";
private Long to;

Expand Down Expand Up @@ -69,6 +73,27 @@ public void setFrom(Long from) {
this.from = from;
}

public WidgetNewFixedSpan hideIncompleteCostData(Boolean hideIncompleteCostData) {
this.hideIncompleteCostData = hideIncompleteCostData;
return this;
}

/**
* Whether to hide incomplete cost data in the widget.
*
* @return hideIncompleteCostData
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_HIDE_INCOMPLETE_COST_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getHideIncompleteCostData() {
return hideIncompleteCostData;
}

public void setHideIncompleteCostData(Boolean hideIncompleteCostData) {
this.hideIncompleteCostData = hideIncompleteCostData;
}

public WidgetNewFixedSpan to(Long to) {
this.to = to;
return this;
Expand Down Expand Up @@ -170,21 +195,25 @@ public boolean equals(Object o) {
}
WidgetNewFixedSpan widgetNewFixedSpan = (WidgetNewFixedSpan) o;
return Objects.equals(this.from, widgetNewFixedSpan.from)
&& Objects.equals(this.hideIncompleteCostData, widgetNewFixedSpan.hideIncompleteCostData)
&& Objects.equals(this.to, widgetNewFixedSpan.to)
&& Objects.equals(this.type, widgetNewFixedSpan.type)
&& Objects.equals(this.additionalProperties, widgetNewFixedSpan.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(from, to, type, additionalProperties);
return Objects.hash(from, hideIncompleteCostData, to, type, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WidgetNewFixedSpan {\n");
sb.append(" from: ").append(toIndentedString(from)).append("\n");
sb.append(" hideIncompleteCostData: ")
.append(toIndentedString(hideIncompleteCostData))
.append("\n");
sb.append(" to: ").append(toIndentedString(to)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" additionalProperties: ")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

/** Used for arbitrary live span times, such as 17 minutes or 6 hours. */
@JsonPropertyOrder({
WidgetNewLiveSpan.JSON_PROPERTY_HIDE_INCOMPLETE_COST_DATA,
WidgetNewLiveSpan.JSON_PROPERTY_TYPE,
WidgetNewLiveSpan.JSON_PROPERTY_UNIT,
WidgetNewLiveSpan.JSON_PROPERTY_VALUE
Expand All @@ -27,6 +28,9 @@
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class WidgetNewLiveSpan {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_HIDE_INCOMPLETE_COST_DATA = "hide_incomplete_cost_data";
private Boolean hideIncompleteCostData;

public static final String JSON_PROPERTY_TYPE = "type";
private WidgetNewLiveSpanType type;

Expand All @@ -50,6 +54,27 @@ public WidgetNewLiveSpan(
this.value = value;
}

public WidgetNewLiveSpan hideIncompleteCostData(Boolean hideIncompleteCostData) {
this.hideIncompleteCostData = hideIncompleteCostData;
return this;
}

/**
* Whether to hide incomplete cost data in the widget.
*
* @return hideIncompleteCostData
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_HIDE_INCOMPLETE_COST_DATA)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getHideIncompleteCostData() {
return hideIncompleteCostData;
}

public void setHideIncompleteCostData(Boolean hideIncompleteCostData) {
this.hideIncompleteCostData = hideIncompleteCostData;
}

public WidgetNewLiveSpan type(WidgetNewLiveSpanType type) {
this.type = type;
this.unparsed |= !type.isValid();
Expand Down Expand Up @@ -174,21 +199,25 @@ public boolean equals(Object o) {
return false;
}
WidgetNewLiveSpan widgetNewLiveSpan = (WidgetNewLiveSpan) o;
return Objects.equals(this.type, widgetNewLiveSpan.type)
return Objects.equals(this.hideIncompleteCostData, widgetNewLiveSpan.hideIncompleteCostData)
&& Objects.equals(this.type, widgetNewLiveSpan.type)
&& Objects.equals(this.unit, widgetNewLiveSpan.unit)
&& Objects.equals(this.value, widgetNewLiveSpan.value)
&& Objects.equals(this.additionalProperties, widgetNewLiveSpan.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(type, unit, value, additionalProperties);
return Objects.hash(hideIncompleteCostData, type, unit, value, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class WidgetNewLiveSpan {\n");
sb.append(" hideIncompleteCostData: ")
.append(toIndentedString(hideIncompleteCostData))
.append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" unit: ").append(toIndentedString(unit)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-15T19:33:02.539Z
2025-08-26T19:47:58.449Z
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"httpRequest": {
"body": {
"type": "JSON",
"json": "{\"layout_type\":\"ordered\",\"reflow_type\":\"auto\",\"title\":\"Test-Create_a_new_timeseries_widget_with_legacy_live_span_time_format-1731699182 with legacy live span time\",\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{\"live_span\":\"5m\"},\"title\":\"\",\"type\":\"timeseries\"}}]}"
"json": "{\"layout_type\":\"ordered\",\"reflow_type\":\"auto\",\"title\":\"Test-Create_a_new_timeseries_widget_with_legacy_live_span_time_format-1756237678 with legacy live span time\",\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{\"hide_incomplete_cost_data\":true,\"live_span\":\"5m\"},\"title\":\"\",\"type\":\"timeseries\"}}]}"
},
"headers": {},
"method": "POST",
Expand All @@ -12,7 +12,7 @@
"secure": true
},
"httpResponse": {
"body": "{\"id\":\"3zr-n9a-dfd\",\"title\":\"Test-Create_a_new_timeseries_widget_with_legacy_live_span_time_format-1731699182 with legacy live span time\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/3zr-n9a-dfd/test-createanewtimeserieswidgetwithlegacylivespantimeformat-1731699182-with-lega\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{\"live_span\":\"5m\"},\"title\":\"\",\"type\":\"timeseries\"},\"id\":5376392318113781}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:33:02.697929+00:00\",\"modified_at\":\"2024-11-15T19:33:02.697929+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}\n",
"body": "{\"id\":\"wek-eci-qnn\",\"title\":\"Test-Create_a_new_timeseries_widget_with_legacy_live_span_time_format-1756237678 with legacy live span time\",\"description\":null,\"author_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"author_name\":\"CI Account\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/wek-eci-qnn/test-createanewtimeserieswidgetwithlegacylivespantimeformat-1756237678-with-lega\",\"template_variables\":null,\"widgets\":[{\"definition\":{\"legend_columns\":[\"avg\",\"min\",\"max\",\"value\",\"sum\"],\"legend_layout\":\"auto\",\"requests\":[{\"display_type\":\"line\",\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"compute\":{\"aggregation\":\"count\",\"metric\":\"@ci.queue_time\"},\"data_source\":\"ci_pipelines\",\"group_by\":[],\"indexes\":[\"*\"],\"name\":\"query1\",\"search\":{\"query\":\"ci_level:job\"}}],\"response_format\":\"timeseries\",\"style\":{\"line_type\":\"solid\",\"line_width\":\"normal\",\"palette\":\"dog_classic\"}}],\"show_legend\":true,\"time\":{\"hide_incomplete_cost_data\":true,\"live_span\":\"5m\"},\"title\":\"\",\"type\":\"timeseries\"},\"id\":3088384387119347}],\"notify_list\":null,\"created_at\":\"2025-08-26T19:47:58.616519+00:00\",\"modified_at\":\"2025-08-26T19:47:58.616519+00:00\",\"reflow_type\":\"auto\",\"restricted_roles\":[]}",
"headers": {
"Content-Type": [
"application/json"
Expand All @@ -27,18 +27,18 @@
"timeToLive": {
"unlimited": true
},
"id": "a6fd82da-c6a3-c543-2e93-da5bcdce17fa"
"id": "447629a4-5b3f-7a06-c9ba-c705c9a3da87"
},
{
"httpRequest": {
"headers": {},
"method": "DELETE",
"path": "/api/v1/dashboard/3zr-n9a-dfd",
"path": "/api/v1/dashboard/wek-eci-qnn",
"keepAlive": false,
"secure": true
},
"httpResponse": {
"body": "{\"deleted_dashboard_id\":\"3zr-n9a-dfd\"}\n",
"body": "{\"deleted_dashboard_id\":\"wek-eci-qnn\"}\n",
"headers": {
"Content-Type": [
"application/json"
Expand All @@ -53,6 +53,6 @@
"timeToLive": {
"unlimited": true
},
"id": "a6c4aaad-8c42-4e78-4894-b0edb52912d0"
"id": "df82e41a-4abb-7bf3-fc08-a743973341b0"
}
]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024-11-15T19:33:02.942Z
2025-08-26T19:47:58.908Z
Loading