Skip to content

Commit 58a8639

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update distribution and heatmap's markers ,num_buckets properties and allowed request/query (#3504)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent ff25c77 commit 58a8639

22 files changed

Lines changed: 969 additions & 103 deletions

.generator/schemas/v1/openapi.yaml

Lines changed: 64 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,6 +1741,9 @@ components:
17411741
type: string
17421742
markers:
17431743
description: List of markers.
1744+
example:
1745+
- display_type: percentile
1746+
value: '90'
17441747
items:
17451748
$ref: '#/components/schemas/WidgetMarker'
17461749
type: array
@@ -1799,14 +1802,6 @@ components:
17991802
- $ref: '#/components/schemas/FormulaAndFunctionMetricQueryDefinition'
18001803
- $ref: '#/components/schemas/FormulaAndFunctionEventQueryDefinition'
18011804
- $ref: '#/components/schemas/FormulaAndFunctionApmResourceStatsQueryDefinition'
1802-
DistributionWidgetHistogramRequestType:
1803-
description: Request type for the histogram request.
1804-
enum:
1805-
- histogram
1806-
example: histogram
1807-
type: string
1808-
x-enum-varnames:
1809-
- HISTOGRAM
18101805
DistributionWidgetRequest:
18111806
description: Updated distribution widget.
18121807
properties:
@@ -1816,6 +1811,11 @@ components:
18161811
$ref: '#/components/schemas/ApmStatsQueryDefinition'
18171812
event_query:
18181813
$ref: '#/components/schemas/LogQueryDefinition'
1814+
formulas:
1815+
description: List of formulas that operate on queries.
1816+
items:
1817+
$ref: '#/components/schemas/WidgetFormula'
1818+
type: array
18191819
log_query:
18201820
$ref: '#/components/schemas/LogQueryDefinition'
18211821
network_query:
@@ -1827,10 +1827,17 @@ components:
18271827
q:
18281828
description: Widget query.
18291829
type: string
1830+
queries:
1831+
description: List of queries that can be returned directly or used in formulas.
1832+
items:
1833+
$ref: '#/components/schemas/FormulaAndFunctionQueryDefinition'
1834+
type: array
18301835
query:
18311836
$ref: '#/components/schemas/DistributionWidgetHistogramRequestQuery'
18321837
request_type:
1833-
$ref: '#/components/schemas/DistributionWidgetHistogramRequestType'
1838+
$ref: '#/components/schemas/WidgetHistogramRequestType'
1839+
response_format:
1840+
$ref: '#/components/schemas/FormulaAndFunctionResponseFormat'
18341841
rum_query:
18351842
$ref: '#/components/schemas/LogQueryDefinition'
18361843
security_query:
@@ -1854,6 +1861,12 @@ components:
18541861
description: Specifies minimum value to show on the x-axis. It takes a number,
18551862
percentile (p90 === 90th percentile), or auto for default behavior.
18561863
type: string
1864+
num_buckets:
1865+
description: Number of value buckets to target, also known as the resolution
1866+
of the value bins.
1867+
format: int64
1868+
minimum: 1
1869+
type: integer
18571870
scale:
18581871
default: linear
18591872
description: Specifies the scale type. Possible values are `linear`.
@@ -3752,6 +3765,14 @@ components:
37523765
type: array
37533766
legend_size:
37543767
$ref: '#/components/schemas/WidgetLegendSize'
3768+
markers:
3769+
description: List of markers.
3770+
example:
3771+
- display_type: percentile
3772+
value: '90'
3773+
items:
3774+
$ref: '#/components/schemas/WidgetMarker'
3775+
type: array
37553776
requests:
37563777
description: List of widget types.
37573778
example:
@@ -3776,6 +3797,8 @@ components:
37763797
type: string
37773798
type:
37783799
$ref: '#/components/schemas/HeatMapWidgetDefinitionType'
3800+
xaxis:
3801+
$ref: '#/components/schemas/HeatMapWidgetXAxis'
37793802
yaxis:
37803803
$ref: '#/components/schemas/WidgetAxis'
37813804
required:
@@ -3819,6 +3842,10 @@ components:
38193842
items:
38203843
$ref: '#/components/schemas/FormulaAndFunctionQueryDefinition'
38213844
type: array
3845+
query:
3846+
$ref: '#/components/schemas/FormulaAndFunctionMetricQueryDefinition'
3847+
request_type:
3848+
$ref: '#/components/schemas/WidgetHistogramRequestType'
38223849
response_format:
38233850
$ref: '#/components/schemas/FormulaAndFunctionResponseFormat'
38243851
rum_query:
@@ -3828,6 +3855,19 @@ components:
38283855
style:
38293856
$ref: '#/components/schemas/WidgetStyle'
38303857
type: object
3858+
HeatMapWidgetXAxis:
3859+
description: X Axis controls for the heat map widget.
3860+
properties:
3861+
num_buckets:
3862+
description: 'Number of time buckets to target, also known as the resolution
3863+
3864+
of the time bins. This is only applicable for distribution of
3865+
3866+
points (group distributions use the roll-up modifier).'
3867+
format: int64
3868+
minimum: 1
3869+
type: integer
3870+
type: object
38313871
Host:
38323872
description: Object representing a host.
38333873
properties:
@@ -25230,6 +25270,14 @@ components:
2523025270
x-enum-varnames:
2523125271
- CHECK
2523225272
- CLUSTER
25273+
WidgetHistogramRequestType:
25274+
description: Request type for the histogram request.
25275+
enum:
25276+
- histogram
25277+
example: histogram
25278+
type: string
25279+
x-enum-varnames:
25280+
- HISTOGRAM
2523325281
WidgetHorizontalAlign:
2523425282
description: Horizontal alignment.
2523525283
enum:
@@ -25434,7 +25482,7 @@ components:
2543425482
display_type:
2543525483
description: "Combination of:\n - A severity error, warning, ok, or info\n
2543625484
\ - A line type: dashed, solid, or bold\nIn this case of a Distribution
25437-
widget, this can be set to be `x_axis_percentile`."
25485+
widget, this can be set to be `percentile`."
2543825486
example: error dashed
2543925487
type: string
2544025488
label:
@@ -25445,8 +25493,13 @@ components:
2544525493
description: Timestamp for the widget.
2544625494
type: string
2544725495
value:
25448-
description: Value to apply. Can be a single value y = 15 or a range of
25496+
description: 'Value to apply. Can be a single value y = 15 or a range of
2544925497
values 0 < y < 10.
25498+
25499+
For Distribution widgets with `display_type` set to `percentile`, this
25500+
should be
25501+
25502+
a numeric percentile value (for example, "90" for P90).'
2545025503
example: y = 15
2545125504
type: string
2545225505
required:

api/datadogV1/model_distribution_widget_histogram_request_type.go

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)