Skip to content

Commit f1a37ce

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 772783e of spec repo (#232)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 5756e20 commit f1a37ce

File tree

14 files changed

+316
-13
lines changed

14 files changed

+316
-13
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.4.1.dev11",
7-
"regenerated": "2021-08-06 08:10:33.367081",
8-
"spec_repo_commit": "6e156e1"
7+
"regenerated": "2021-08-06 09:08:17.522982",
8+
"spec_repo_commit": "772783e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev11",
12-
"regenerated": "2021-08-06 08:12:00.824855",
13-
"spec_repo_commit": "6e156e1"
12+
"regenerated": "2021-08-06 09:09:36.004124",
13+
"spec_repo_commit": "772783e"
1414
}
1515
}
1616
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2021-08-04T16:59:46.243Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,257 @@
1+
{
2+
"log": {
3+
"_recordingName": "Dashboards/Create a new dashboard with a query value widget using the percentile aggregator",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "5.1.0"
8+
},
9+
"entries": [
10+
{
11+
"_id": "a7a8add020c6091c581cb7c9079cec02",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 544,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "user-agent",
21+
"value": "datadog-api-client-typescript/1.0.0-beta.4 (node 14.17.4; os Linux; arch x64)"
22+
},
23+
{
24+
"_fromType": "array",
25+
"name": "accept",
26+
"value": "application/json, */*;q=0.8"
27+
},
28+
{
29+
"_fromType": "array",
30+
"name": "content-type",
31+
"value": "application/json"
32+
},
33+
{
34+
"_fromType": "array",
35+
"name": "x-datadog-parent-id",
36+
"value": "7005855745418949705"
37+
},
38+
{
39+
"_fromType": "array",
40+
"name": "x-datadog-trace-id",
41+
"value": "784056743041714620"
42+
},
43+
{
44+
"_fromType": "array",
45+
"name": "content-length",
46+
"value": "544"
47+
},
48+
{
49+
"_fromType": "array",
50+
"name": "connection",
51+
"value": "close"
52+
},
53+
{
54+
"name": "host",
55+
"value": "api.datadoghq.com"
56+
}
57+
],
58+
"headersSize": 475,
59+
"httpVersion": "HTTP/1.1",
60+
"method": "POST",
61+
"postData": {
62+
"mimeType": "application/json",
63+
"params": [],
64+
"text": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_a_query_value_widget_using_the_percentile_aggregator-1628096386 with QVW Percentile Aggregator\",\"widgets\":[{\"definition\":{\"autoscale\":true,\"precision\":2,\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"queries\":[{\"aggregator\":\"percentile\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"p90:dist.dd.dogweb.latency{*}\"}],\"response_format\":\"scalar\"}],\"time\":{},\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"query_value\"},\"layout\":{\"height\":2,\"width\":2,\"x\":0,\"y\":0}}]}"
65+
},
66+
"queryString": [],
67+
"url": "https://api.datadoghq.com/api/v1/dashboard"
68+
},
69+
"response": {
70+
"bodySize": 957,
71+
"content": {
72+
"mimeType": "application/json",
73+
"size": 957,
74+
"text": "{\"notify_list\":null,\"description\":null,\"restricted_roles\":[],\"author_name\":null,\"template_variables\":null,\"is_read_only\":false,\"id\":\"dsd-9b4-xda\",\"title\":\"Test-Create_a_new_dashboard_with_a_query_value_widget_using_the_percentile_aggregator-1628096386 with QVW Percentile Aggregator\",\"url\":\"/dashboard/dsd-9b4-xda/test-createanewdashboardwithaqueryvaluewidgetusingthepercentileaggregator-162809\",\"created_at\":\"2021-08-04T16:59:47.151534+00:00\",\"modified_at\":\"2021-08-04T16:59:47.151534+00:00\",\"author_handle\":\"[email protected]\",\"widgets\":[{\"definition\":{\"autoscale\":true,\"title\":\"\",\"title_align\":\"left\",\"precision\":2,\"time\":{},\"title_size\":\"16\",\"requests\":[{\"formulas\":[{\"formula\":\"query1\"}],\"response_format\":\"scalar\",\"queries\":[{\"aggregator\":\"percentile\",\"data_source\":\"metrics\",\"name\":\"query1\",\"query\":\"p90:dist.dd.dogweb.latency{*}\"}]}],\"type\":\"query_value\"},\"layout\":{\"y\":0,\"width\":2,\"x\":0,\"height\":2},\"id\":5855020884531801}],\"layout_type\":\"ordered\"}"
75+
},
76+
"cookies": [],
77+
"headers": [
78+
{
79+
"name": "date",
80+
"value": "Wed, 04 Aug 2021 16:59:47 GMT"
81+
},
82+
{
83+
"name": "content-type",
84+
"value": "application/json"
85+
},
86+
{
87+
"name": "content-length",
88+
"value": "957"
89+
},
90+
{
91+
"name": "connection",
92+
"value": "close"
93+
},
94+
{
95+
"name": "vary",
96+
"value": "Accept-Encoding"
97+
},
98+
{
99+
"name": "pragma",
100+
"value": "no-cache"
101+
},
102+
{
103+
"name": "cache-control",
104+
"value": "no-cache"
105+
},
106+
{
107+
"name": "x-content-type-options",
108+
"value": "nosniff"
109+
},
110+
{
111+
"name": "strict-transport-security",
112+
"value": "max-age=15724800;"
113+
},
114+
{
115+
"name": "content-security-policy",
116+
"value": "frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report"
117+
},
118+
{
119+
"name": "x-frame-options",
120+
"value": "SAMEORIGIN"
121+
}
122+
],
123+
"headersSize": 383,
124+
"httpVersion": "HTTP/1.1",
125+
"redirectURL": "",
126+
"status": 200,
127+
"statusText": "OK"
128+
},
129+
"startedDateTime": "2021-08-04T16:59:46.254Z",
130+
"time": 930,
131+
"timings": {
132+
"blocked": -1,
133+
"connect": -1,
134+
"dns": -1,
135+
"receive": 0,
136+
"send": 0,
137+
"ssl": -1,
138+
"wait": 930
139+
}
140+
},
141+
{
142+
"_id": "addac86ae84f1cb5e728de0160947523",
143+
"_order": 0,
144+
"cache": {},
145+
"request": {
146+
"bodySize": 0,
147+
"cookies": [],
148+
"headers": [
149+
{
150+
"_fromType": "array",
151+
"name": "user-agent",
152+
"value": "datadog-api-client-typescript/1.0.0-beta.4 (node 14.17.4; os Linux; arch x64)"
153+
},
154+
{
155+
"_fromType": "array",
156+
"name": "accept",
157+
"value": "application/json, */*;q=0.8"
158+
},
159+
{
160+
"_fromType": "array",
161+
"name": "x-datadog-parent-id",
162+
"value": "7604094524504111300"
163+
},
164+
{
165+
"_fromType": "array",
166+
"name": "x-datadog-trace-id",
167+
"value": "784056743041714620"
168+
},
169+
{
170+
"_fromType": "array",
171+
"name": "connection",
172+
"value": "close"
173+
},
174+
{
175+
"name": "host",
176+
"value": "api.datadoghq.com"
177+
}
178+
],
179+
"headersSize": 436,
180+
"httpVersion": "HTTP/1.1",
181+
"method": "DELETE",
182+
"queryString": [],
183+
"url": "https://api.datadoghq.com/api/v1/dashboard/dsd-9b4-xda"
184+
},
185+
"response": {
186+
"bodySize": 38,
187+
"content": {
188+
"mimeType": "application/json",
189+
"size": 38,
190+
"text": "{\"deleted_dashboard_id\":\"dsd-9b4-xda\"}"
191+
},
192+
"cookies": [],
193+
"headers": [
194+
{
195+
"name": "date",
196+
"value": "Wed, 04 Aug 2021 16:59:47 GMT"
197+
},
198+
{
199+
"name": "content-type",
200+
"value": "application/json"
201+
},
202+
{
203+
"name": "content-length",
204+
"value": "38"
205+
},
206+
{
207+
"name": "connection",
208+
"value": "close"
209+
},
210+
{
211+
"name": "vary",
212+
"value": "Accept-Encoding"
213+
},
214+
{
215+
"name": "pragma",
216+
"value": "no-cache"
217+
},
218+
{
219+
"name": "cache-control",
220+
"value": "no-cache"
221+
},
222+
{
223+
"name": "x-content-type-options",
224+
"value": "nosniff"
225+
},
226+
{
227+
"name": "content-security-policy",
228+
"value": "frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report"
229+
},
230+
{
231+
"name": "x-frame-options",
232+
"value": "SAMEORIGIN"
233+
}
234+
],
235+
"headersSize": 336,
236+
"httpVersion": "HTTP/1.1",
237+
"redirectURL": "",
238+
"status": 200,
239+
"statusText": "OK"
240+
},
241+
"startedDateTime": "2021-08-04T16:59:47.193Z",
242+
"time": 117,
243+
"timings": {
244+
"blocked": -1,
245+
"connect": -1,
246+
"dns": -1,
247+
"receive": 0,
248+
"send": 0,
249+
"ssl": -1,
250+
"wait": 117
251+
}
252+
}
253+
],
254+
"pages": [],
255+
"version": "1.2"
256+
}
257+
}

features/v1/dashboards.feature

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ Feature: Dashboards
2929
When the request is sent
3030
Then the response status is 200 OK
3131

32+
Scenario: Create a new dashboard with a query value widget using the percentile aggregator
33+
Given new "CreateDashboard" request
34+
And body with value {"layout_type": "ordered", "title": "{{ unique }} with QVW Percentile Aggregator", "widgets": [{"definition":{"title_size":"16","title":"","title_align":"left","precision":2,"time":{},"autoscale":true,"requests":[{"formulas":[{"formula":"query1"}],"response_format":"scalar","queries":[{"query":"p90:dist.dd.dogweb.latency{*}","data_source":"metrics","name":"query1","aggregator":"percentile"}]}],"type":"query_value"},"layout":{"y":0,"x":0,"height":2,"width":2}}]}
35+
When the request is sent
36+
Then the response status is 200 OK
37+
3238
Scenario: Create a new dashboard with an audit logs query
3339
Given new "CreateDashboard" request
3440
And body with value {"layout_type": "ordered", "title": "{{ unique }} with Audit Logs Query", "widgets": [{"definition": {"type": "timeseries","requests": [{"response_format": "timeseries","queries": [{"search": {"query": ""},"data_source": "audit","compute": {"aggregation": "count"},"name": "query1","indexes": ["*"],"group_by": []}]}]},"layout": {"x": 2,"y": 0,"width": 4,"height": 2}}]}

packages/datadog-api-client-v1/.openapi-generator/FILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ models/ScatterPlotRequest.ts
411411
models/ScatterPlotWidgetDefinition.ts
412412
models/ScatterPlotWidgetDefinitionRequests.ts
413413
models/ScatterPlotWidgetDefinitionType.ts
414+
models/ScatterplotWidgetAggregator.ts
414415
models/Series.ts
415416
models/ServiceCheck.ts
416417
models/ServiceCheckStatus.ts

packages/datadog-api-client-v1/models/FormulaAndFunctionMetricAggregation.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ export type FormulaAndFunctionMetricAggregation =
1515
| typeof SUM
1616
| typeof LAST
1717
| typeof AREA
18-
| typeof L2NORM;
18+
| typeof L2NORM
19+
| typeof PERCENTILE;
1920
export const AVG = "avg";
2021
export const MIN = "min";
2122
export const MAX = "max";
2223
export const SUM = "sum";
2324
export const LAST = "last";
2425
export const AREA = "area";
2526
export const L2NORM = "l2norm";
27+
export const PERCENTILE = "percentile";

packages/datadog-api-client-v1/models/FormulaAndFunctionMetricQueryDefinition.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export class FormulaAndFunctionMetricQueryDefinition {
7373
"last",
7474
"area",
7575
"l2norm",
76+
"percentile",
7677
undefined,
7778
].includes(data.aggregator)
7879
) {
@@ -128,6 +129,7 @@ export class FormulaAndFunctionMetricQueryDefinition {
128129
"last",
129130
"area",
130131
"l2norm",
132+
"percentile",
131133
undefined,
132134
].includes(data.aggregator)
133135
) {

packages/datadog-api-client-v1/models/FormulaAndFunctionProcessQueryDefinition.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export class FormulaAndFunctionProcessQueryDefinition {
116116
"last",
117117
"area",
118118
"l2norm",
119+
"percentile",
119120
undefined,
120121
].includes(data.aggregator)
121122
) {
@@ -197,6 +198,7 @@ export class FormulaAndFunctionProcessQueryDefinition {
197198
"last",
198199
"area",
199200
"l2norm",
201+
"percentile",
200202
undefined,
201203
].includes(data.aggregator)
202204
) {

packages/datadog-api-client-v1/models/ObjectSerializer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ const enumsMap: Set<string> = new Set<string>([
529529
"SLOTypeNumeric",
530530
"SLOWidgetDefinitionType",
531531
"ScatterPlotWidgetDefinitionType",
532+
"ScatterplotWidgetAggregator",
532533
"ServiceCheckStatus",
533534
"ServiceMapWidgetDefinitionType",
534535
"ServiceSummaryWidgetDefinitionType",

packages/datadog-api-client-v1/models/QueryValueWidgetRequest.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ export class QueryValueWidgetRequest {
140140
const res = new QueryValueWidgetRequest();
141141

142142
if (
143-
["avg", "last", "max", "min", "sum", undefined].includes(data.aggregator)
143+
["avg", "last", "max", "min", "sum", "percentile", undefined].includes(
144+
data.aggregator
145+
)
144146
) {
145147
res.aggregator = data.aggregator;
146148
} else {
@@ -241,7 +243,9 @@ export class QueryValueWidgetRequest {
241243
}
242244
}
243245
if (
244-
["avg", "last", "max", "min", "sum", undefined].includes(data.aggregator)
246+
["avg", "last", "max", "min", "sum", "percentile", undefined].includes(
247+
data.aggregator
248+
)
245249
) {
246250
res.aggregator = data.aggregator;
247251
} else {

0 commit comments

Comments
 (0)