Skip to content

Commit aaf315d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Mark legacy non-FnF query fields and WidgetEvent as deprecated in dashboard spec and update Distribution docs (#3540)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 00c24b3 commit aaf315d

16 files changed

+300
-32
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 235 additions & 16 deletions
Large diffs are not rendered by default.

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,17 +317,20 @@ public BarChartWidgetRequest q(String q) {
317317
}
318318

319319
/**
320-
* Widget query.
320+
* Widget query. Deprecated - Use <code>queries</code> and <code>formulas</code> instead.
321321
*
322322
* @return q
323+
* @deprecated
323324
*/
325+
@Deprecated
324326
@jakarta.annotation.Nullable
325327
@JsonProperty(JSON_PROPERTY_Q)
326328
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
327329
public String getQ() {
328330
return q;
329331
}
330332

333+
@Deprecated
331334
public void setQ(String q) {
332335
this.q = q;
333336
}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,17 +389,20 @@ public ChangeWidgetRequest q(String q) {
389389
}
390390

391391
/**
392-
* Query definition.
392+
* Query definition. Deprecated - Use <code>queries</code> and <code>formulas</code> instead.
393393
*
394394
* @return q
395+
* @deprecated
395396
*/
397+
@Deprecated
396398
@jakarta.annotation.Nullable
397399
@JsonProperty(JSON_PROPERTY_Q)
398400
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
399401
public String getQ() {
400402
return q;
401403
}
402404

405+
@Deprecated
403406
public void setQ(String q) {
404407
this.q = q;
405408
}

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,17 +282,20 @@ public DistributionWidgetRequest q(String q) {
282282
}
283283

284284
/**
285-
* Widget query.
285+
* Widget query. Deprecated - Use <code>queries</code> and <code>formulas</code> instead.
286286
*
287287
* @return q
288+
* @deprecated
288289
*/
290+
@Deprecated
289291
@jakarta.annotation.Nullable
290292
@JsonProperty(JSON_PROPERTY_Q)
291293
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
292294
public String getQ() {
293295
return q;
294296
}
295297

298+
@Deprecated
296299
public void setQ(String q) {
297300
this.q = q;
298301
}
@@ -359,7 +362,8 @@ public DistributionWidgetRequest requestType(WidgetHistogramRequestType requestT
359362
}
360363

361364
/**
362-
* Request type for the histogram request.
365+
* Request type for distribution of point values for distribution metrics. Query space aggregator
366+
* must be <code>histogram:&lt;metric name&gt;</code> for points distributions.
363367
*
364368
* @return requestType
365369
*/

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,17 +205,21 @@ public GeomapWidgetRequest q(String q) {
205205
}
206206

207207
/**
208-
* The widget metrics query.
208+
* The widget metrics query. Deprecated - Use <code>queries</code> and <code>formulas</code>
209+
* instead.
209210
*
210211
* @return q
212+
* @deprecated
211213
*/
214+
@Deprecated
212215
@jakarta.annotation.Nullable
213216
@JsonProperty(JSON_PROPERTY_Q)
214217
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
215218
public String getQ() {
216219
return q;
217220
}
218221

222+
@Deprecated
219223
public void setQ(String q) {
220224
this.q = q;
221225
}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,20 @@ public HeatMapWidgetDefinition addEventsItem(WidgetEvent eventsItem) {
144144
}
145145

146146
/**
147-
* List of widget events.
147+
* List of widget events. Deprecated - Use <code>overlay</code> request type instead.
148148
*
149149
* @return events
150+
* @deprecated
150151
*/
152+
@Deprecated
151153
@jakarta.annotation.Nullable
152154
@JsonProperty(JSON_PROPERTY_EVENTS)
153155
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
154156
public List<WidgetEvent> getEvents() {
155157
return events;
156158
}
157159

160+
@Deprecated
158161
public void setEvents(List<WidgetEvent> events) {
159162
this.events = events;
160163
}

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,17 +256,20 @@ public HeatMapWidgetRequest q(String q) {
256256
}
257257

258258
/**
259-
* Widget query.
259+
* Widget query. Deprecated - Use <code>queries</code> and <code>formulas</code> instead.
260260
*
261261
* @return q
262+
* @deprecated
262263
*/
264+
@Deprecated
263265
@jakarta.annotation.Nullable
264266
@JsonProperty(JSON_PROPERTY_Q)
265267
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
266268
public String getQ() {
267269
return q;
268270
}
269271

272+
@Deprecated
270273
public void setQ(String q) {
271274
this.q = q;
272275
}
@@ -333,7 +336,8 @@ public HeatMapWidgetRequest requestType(WidgetHistogramRequestType requestType)
333336
}
334337

335338
/**
336-
* Request type for the histogram request.
339+
* Request type for distribution of point values for distribution metrics. Query space aggregator
340+
* must be <code>histogram:&lt;metric name&gt;</code> for points distributions.
337341
*
338342
* @return requestType
339343
*/

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,17 +338,20 @@ public QueryValueWidgetRequest q(String q) {
338338
}
339339

340340
/**
341-
* TODO.
341+
* Widget query. Deprecated - Use <code>queries</code> and <code>formulas</code> instead.
342342
*
343343
* @return q
344+
* @deprecated
344345
*/
346+
@Deprecated
345347
@jakarta.annotation.Nullable
346348
@JsonProperty(JSON_PROPERTY_Q)
347349
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
348350
public String getQ() {
349351
return q;
350352
}
351353

354+
@Deprecated
352355
public void setQ(String q) {
353356
this.q = q;
354357
}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,17 +274,20 @@ public SunburstWidgetRequest q(String q) {
274274
}
275275

276276
/**
277-
* Widget query.
277+
* Widget query. Deprecated - Use <code>queries</code> and <code>formulas</code> instead.
278278
*
279279
* @return q
280+
* @deprecated
280281
*/
282+
@Deprecated
281283
@jakarta.annotation.Nullable
282284
@JsonProperty(JSON_PROPERTY_Q)
283285
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
284286
public String getQ() {
285287
return q;
286288
}
287289

290+
@Deprecated
288291
public void setQ(String q) {
289292
this.q = q;
290293
}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,17 +459,20 @@ public TableWidgetRequest q(String q) {
459459
}
460460

461461
/**
462-
* Query definition.
462+
* Query definition. Deprecated - Use <code>queries</code> and <code>formulas</code> instead.
463463
*
464464
* @return q
465+
* @deprecated
465466
*/
467+
@Deprecated
466468
@jakarta.annotation.Nullable
467469
@JsonProperty(JSON_PROPERTY_Q)
468470
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
469471
public String getQ() {
470472
return q;
471473
}
472474

475+
@Deprecated
473476
public void setQ(String q) {
474477
this.q = q;
475478
}

0 commit comments

Comments
 (0)