Skip to content

Commit a32676a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit a4fe6c9 of spec repo (#451)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 1edf7ff commit a32676a

File tree

4 files changed

+138
-114
lines changed

4 files changed

+138
-114
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.5.1.dev2",
7-
"regenerated": "2022-01-04 14:48:51.731558",
8-
"spec_repo_commit": "116ef08"
7+
"regenerated": "2022-01-04 17:34:50.708056",
8+
"spec_repo_commit": "a4fe6c9"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2022-01-04 14:48:51.764179",
13-
"spec_repo_commit": "116ef08"
12+
"regenerated": "2022-01-04 17:34:50.732402",
13+
"spec_repo_commit": "a4fe6c9"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12037,12 +12037,18 @@ components:
1203712037
description: Maximum amount of records to be returned.
1203812038
format: int64
1203912039
type: integer
12040-
next_record_id:
12041-
description: The cursor to use to get the next results, if any. To make
12042-
the next request, use the same parameters with the addition of this next_record_id.
12040+
offset:
12041+
description: Records to be skipped before beginning to return.
12042+
format: int64
12043+
type: integer
12044+
sort_direction:
12045+
description: Direction to sort by.
12046+
type: string
12047+
sort_name:
12048+
description: Field to sort by.
1204312049
type: string
1204412050
total_number_of_records:
12045-
description: Total number of records. (deprecated after May 1st, 2021)
12051+
description: Total number of records.
1204612052
format: int64
1204712053
type: integer
1204812054
type: object

features/v1/dashboards.feature

Lines changed: 101 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,27 @@ Feature: Dashboards
4848
When the request is sent
4949
Then the response status is 200 OK
5050

51+
@team:DataDog/dashboards
52+
Scenario: Create a new dashboard with alert_graph widget
53+
Given there is a valid "monitor" in the system
54+
And new "CreateDashboard" request
55+
And body from file "dashboards_json_payload/alert_graph_widget.json"
56+
When the request is sent
57+
Then the response status is 200 OK
58+
And the response "widgets[0].definition.type" is equal to "alert_graph"
59+
And the response "widgets[0].definition.viz_type" is equal to "timeseries"
60+
And the response "widgets[0].definition.alert_id" is equal to "{{ monitor.id }}"
61+
62+
@team:DataDog/dashboards
63+
Scenario: Create a new dashboard with alert_value widget
64+
Given there is a valid "monitor" in the system
65+
And new "CreateDashboard" request
66+
And body from file "dashboards_json_payload/alert_value_widget.json"
67+
When the request is sent
68+
Then the response status is 200 OK
69+
And the response "widgets[0].definition.type" is equal to "alert_value"
70+
And the response "widgets[0].definition.alert_id" is equal to "{{ monitor.id }}"
71+
5172
@team:DataDog/dashboards
5273
Scenario: Create a new dashboard with an audit logs query
5374
Given new "CreateDashboard" request
@@ -89,6 +110,16 @@ Feature: Dashboards
89110
And the response "widgets[0].definition.requests[0].queries[0].primary_tag_name" is equal to "datacenter"
90111
And the response "widgets[0].definition.requests[0].queries[0].operation_name" is equal to "cassandra.query"
91112

113+
@team:DataDog/dashboards
114+
Scenario: Create a new dashboard with check_status widget
115+
Given new "CreateDashboard" request
116+
And body from file "dashboards_json_payload/check_status_widget.json"
117+
When the request is sent
118+
Then the response status is 200 OK
119+
And the response "widgets[0].definition.type" is equal to "check_status"
120+
And the response "widgets[0].definition.check" is equal to "datadog.agent.up"
121+
And the response "widgets[0].definition.grouping" is equal to "check"
122+
92123
@team:DataDog/dashboards
93124
Scenario: Create a new dashboard with distribution widget and apm stats data
94125
Given new "CreateDashboard" request
@@ -101,6 +132,24 @@ Feature: Dashboards
101132
And the response "widgets[0].definition.requests[0].apm_stats_query.service" is equal to "cassandra"
102133
And the response "widgets[0].definition.requests[0].apm_stats_query.name" is equal to "cassandra.query"
103134

135+
@team:DataDog/dashboards
136+
Scenario: Create a new dashboard with event_stream widget
137+
Given new "CreateDashboard" request
138+
And body from file "dashboards_json_payload/event_stream_widget.json"
139+
When the request is sent
140+
Then the response status is 200 OK
141+
And the response "widgets[0].definition.type" is equal to "event_stream"
142+
And the response "widgets[0].definition.query" is equal to "example-query"
143+
144+
@team:DataDog/dashboards
145+
Scenario: Create a new dashboard with event_timeline widget
146+
Given new "CreateDashboard" request
147+
And body from file "dashboards_json_payload/event_timeline_widget.json"
148+
When the request is sent
149+
Then the response status is 200 OK
150+
And the response "widgets[0].definition.type" is equal to "event_timeline"
151+
And the response "widgets[0].definition.query" is equal to "status:error priority:all"
152+
104153
@team:DataDog/dashboards
105154
Scenario: Create a new dashboard with formulas and functions scatterplot widget
106155
Given new "CreateDashboard" request
@@ -123,93 +172,6 @@ Feature: Dashboards
123172
And the response "widgets[0].definition.requests.table.queries[1].aggregator" is equal to "avg"
124173
And the response "widgets[0].definition.requests.table.response_format" is equal to "scalar"
125174

126-
@team:DataDog/dashboards
127-
Scenario: Create a new dashboard with funnel widget
128-
Given new "CreateDashboard" request
129-
And body with value {"layout_type": "ordered", "title": "{{ unique }} with funnel widget","widgets": [{"definition": {"type": "funnel","requests": [{"query":{"data_source":"rum","query_string":"","steps":[]},"request_type":"funnel"}]}}]}
130-
When the request is sent
131-
Then the response status is 200 OK
132-
133-
@team:DataDog/dashboards
134-
Scenario: Create a new dashboard with list_stream widget
135-
Given new "CreateDashboard" request
136-
And body with value {"layout_type": "ordered", "title": "{{ unique }} with list_stream widget","widgets": [{"definition": {"type": "list_stream","requests": [{"columns":[{"width":"auto","field":"timestamp"}],"query":{"data_source":"issue_stream","query_string":""},"response_format":"event_list"}]}}]}
137-
When the request is sent
138-
Then the response status is 200 OK
139-
140-
@team:DataDog/dashboards
141-
Scenario: Create a new dashboard with sunburst widget and metrics data
142-
Given new "CreateDashboard" request
143-
And body with value { "title": "{{ unique }}", "widgets": [ { "definition": { "title": "", "title_size": "16", "title_align": "left", "type": "sunburst", "requests": [ { "response_format": "scalar", "formulas": [ { "formula": "query1" } ], "queries": [ { "query": "sum:system.mem.used{*} by {service}", "data_source": "metrics", "name": "query1", "aggregator": "sum" } ] } ] }, "layout": { "x": 0, "y": 0, "width": 4, "height": 4 } } ], "layout_type": "ordered" }
144-
When the request is sent
145-
Then the response status is 200 OK
146-
And the response "widgets[0].definition.requests[0].response_format" is equal to "scalar"
147-
And the response "widgets[0].definition.requests[0].queries[0].query" is equal to "sum:system.mem.used{*} by {service}"
148-
And the response "widgets[0].definition.requests[0].queries[0].data_source" is equal to "metrics"
149-
And the response "widgets[0].definition.requests[0].queries[0].name" is equal to "query1"
150-
And the response "widgets[0].definition.requests[0].queries[0].aggregator" is equal to "sum"
151-
And the response "widgets[0].definition.requests[0].formulas[0].formula" is equal to "query1"
152-
153-
@team:DataDog/dashboards
154-
Scenario: Create a new dashboard with timeseries widget containing style attributes
155-
Given new "CreateDashboard" request
156-
And body with value {"layout_type": "ordered", "title": "{{ unique }} with timeseries widget","widgets": [{"definition": {"type": "timeseries","requests": [{"q": "sum:trace.test.errors{env:prod,service:datadog-api-spec} by {resource_name}.as_count()","on_right_yaxis": false,"style": {"palette": "warm","line_type": "solid","line_width": "normal"},"display_type": "bars"}]}}]}
157-
When the request is sent
158-
Then the response status is 200 OK
159-
And the response "widgets[0].definition.requests[0].on_right_yaxis" is false
160-
And the response "widgets[0].definition.requests[0].style" is equal to {"palette": "warm","line_type": "solid","line_width": "normal"}
161-
And the response "widgets[0].definition.requests[0].display_type" is equal to "bars"
162-
And the response "widgets[0].definition.requests[0].q" is equal to "sum:trace.test.errors{env:prod,service:datadog-api-spec} by {resource_name}.as_count()"
163-
164-
@team:DataDog/dashboards
165-
Scenario: Create a new dashboard with alert_graph widget
166-
Given there is a valid "monitor" in the system
167-
And new "CreateDashboard" request
168-
And body from file "dashboards_json_payload/alert_graph_widget.json"
169-
When the request is sent
170-
Then the response status is 200 OK
171-
And the response "widgets[0].definition.type" is equal to "alert_graph"
172-
And the response "widgets[0].definition.viz_type" is equal to "timeseries"
173-
And the response "widgets[0].definition.alert_id" is equal to "{{ monitor.id }}"
174-
175-
@team:DataDog/dashboards
176-
Scenario: Create a new dashboard with alert_value widget
177-
Given there is a valid "monitor" in the system
178-
And new "CreateDashboard" request
179-
And body from file "dashboards_json_payload/alert_value_widget.json"
180-
When the request is sent
181-
Then the response status is 200 OK
182-
And the response "widgets[0].definition.type" is equal to "alert_value"
183-
And the response "widgets[0].definition.alert_id" is equal to "{{ monitor.id }}"
184-
185-
@team:DataDog/dashboards
186-
Scenario: Create a new dashboard with check_status widget
187-
Given new "CreateDashboard" request
188-
And body from file "dashboards_json_payload/check_status_widget.json"
189-
When the request is sent
190-
Then the response status is 200 OK
191-
And the response "widgets[0].definition.type" is equal to "check_status"
192-
And the response "widgets[0].definition.check" is equal to "datadog.agent.up"
193-
And the response "widgets[0].definition.grouping" is equal to "check"
194-
195-
@team:DataDog/dashboards
196-
Scenario: Create a new dashboard with event_stream widget
197-
Given new "CreateDashboard" request
198-
And body from file "dashboards_json_payload/event_stream_widget.json"
199-
When the request is sent
200-
Then the response status is 200 OK
201-
And the response "widgets[0].definition.type" is equal to "event_stream"
202-
And the response "widgets[0].definition.query" is equal to "example-query"
203-
204-
@team:DataDog/dashboards
205-
Scenario: Create a new dashboard with event_timeline widget
206-
Given new "CreateDashboard" request
207-
And body from file "dashboards_json_payload/event_timeline_widget.json"
208-
When the request is sent
209-
Then the response status is 200 OK
210-
And the response "widgets[0].definition.type" is equal to "event_timeline"
211-
And the response "widgets[0].definition.query" is equal to "status:error priority:all"
212-
213175
@team:DataDog/dashboards
214176
Scenario: Create a new dashboard with free_text widget
215177
Given new "CreateDashboard" request
@@ -220,6 +182,13 @@ Feature: Dashboards
220182
And the response "widgets[0].definition.text" is equal to "Example free text"
221183
And the response "widgets[0].definition.color" is equal to "#4d4d4d"
222184

185+
@team:DataDog/dashboards
186+
Scenario: Create a new dashboard with funnel widget
187+
Given new "CreateDashboard" request
188+
And body with value {"layout_type": "ordered", "title": "{{ unique }} with funnel widget","widgets": [{"definition": {"type": "funnel","requests": [{"query":{"data_source":"rum","query_string":"","steps":[]},"request_type":"funnel"}]}}]}
189+
When the request is sent
190+
Then the response status is 200 OK
191+
223192
@team:DataDog/dashboards
224193
Scenario: Create a new dashboard with geomap widget
225194
Given new "CreateDashboard" request
@@ -264,6 +233,13 @@ Feature: Dashboards
264233
And the response "widgets[0].definition.type" is equal to "image"
265234
And the response "widgets[0].definition.url" is equal to "https://example.com/image.png"
266235

236+
@team:DataDog/dashboards
237+
Scenario: Create a new dashboard with list_stream widget
238+
Given new "CreateDashboard" request
239+
And body with value {"layout_type": "ordered", "title": "{{ unique }} with list_stream widget","widgets": [{"definition": {"type": "list_stream","requests": [{"columns":[{"width":"auto","field":"timestamp"}],"query":{"data_source":"issue_stream","query_string":""},"response_format":"event_list"}]}}]}
240+
When the request is sent
241+
Then the response status is 200 OK
242+
267243
@team:DataDog/dashboards
268244
Scenario: Create a new dashboard with log_stream widget
269245
Given new "CreateDashboard" request
@@ -291,6 +267,14 @@ Feature: Dashboards
291267
And the response "widgets[0].definition.type" is equal to "note"
292268
And the response "widgets[0].definition.content" is equal to "# Example Note"
293269

270+
@team:DataDog/dashboards
271+
Scenario: Create a new dashboard with query_table widget
272+
Given new "CreateDashboard" request
273+
And body from file "dashboards_json_payload/query_table_widget.json"
274+
When the request is sent
275+
Then the response status is 200 OK
276+
And the response "widgets[0].definition.type" is equal to "query_table"
277+
294278
@team:DataDog/dashboards
295279
Scenario: Create a new dashboard with query_value widget
296280
Given new "CreateDashboard" request
@@ -308,6 +292,15 @@ Feature: Dashboards
308292
Then the response status is 200 OK
309293
And the response "widgets[0].definition.type" is equal to "scatterplot"
310294

295+
@team:DataDog/dashboards
296+
Scenario: Create a new dashboard with servicemap widget
297+
Given new "CreateDashboard" request
298+
And body from file "dashboards_json_payload/servicemap_widget.json"
299+
When the request is sent
300+
Then the response status is 200 OK
301+
And the response "widgets[0].definition.type" is equal to "servicemap"
302+
And the response "widgets[0].definition.filters" is equal to ["env:none","environment:*"]
303+
311304
@team:DataDog/dashboards
312305
Scenario: Create a new dashboard with slo widget
313306
Given there is a valid "slo" in the system
@@ -319,38 +312,45 @@ Feature: Dashboards
319312
And the response "widgets[0].definition.slo_id" is equal to "{{ slo.data[0].id }}"
320313

321314
@team:DataDog/dashboards
322-
Scenario: Create a new dashboard with servicemap widget
315+
Scenario: Create a new dashboard with sunburst widget and metrics data
323316
Given new "CreateDashboard" request
324-
And body from file "dashboards_json_payload/servicemap_widget.json"
317+
And body with value { "title": "{{ unique }}", "widgets": [ { "definition": { "title": "", "title_size": "16", "title_align": "left", "type": "sunburst", "requests": [ { "response_format": "scalar", "formulas": [ { "formula": "query1" } ], "queries": [ { "query": "sum:system.mem.used{*} by {service}", "data_source": "metrics", "name": "query1", "aggregator": "sum" } ] } ] }, "layout": { "x": 0, "y": 0, "width": 4, "height": 4 } } ], "layout_type": "ordered" }
325318
When the request is sent
326319
Then the response status is 200 OK
327-
And the response "widgets[0].definition.type" is equal to "servicemap"
328-
And the response "widgets[0].definition.filters" is equal to ["env:none","environment:*"]
320+
And the response "widgets[0].definition.requests[0].response_format" is equal to "scalar"
321+
And the response "widgets[0].definition.requests[0].queries[0].query" is equal to "sum:system.mem.used{*} by {service}"
322+
And the response "widgets[0].definition.requests[0].queries[0].data_source" is equal to "metrics"
323+
And the response "widgets[0].definition.requests[0].queries[0].name" is equal to "query1"
324+
And the response "widgets[0].definition.requests[0].queries[0].aggregator" is equal to "sum"
325+
And the response "widgets[0].definition.requests[0].formulas[0].formula" is equal to "query1"
329326

330327
@team:DataDog/dashboards
331-
Scenario: Create a new dashboard with trace_service widget
328+
Scenario: Create a new dashboard with timeseries widget containing style attributes
332329
Given new "CreateDashboard" request
333-
And body from file "dashboards_json_payload/trace_service_widget.json"
330+
And body with value {"layout_type": "ordered", "title": "{{ unique }} with timeseries widget","widgets": [{"definition": {"type": "timeseries","requests": [{"q": "sum:trace.test.errors{env:prod,service:datadog-api-spec} by {resource_name}.as_count()","on_right_yaxis": false,"style": {"palette": "warm","line_type": "solid","line_width": "normal"},"display_type": "bars"}]}}]}
334331
When the request is sent
335332
Then the response status is 200 OK
336-
And the response "widgets[0].definition.type" is equal to "trace_service"
337-
And the response "widgets[0].definition.env" is equal to "none"
333+
And the response "widgets[0].definition.requests[0].on_right_yaxis" is false
334+
And the response "widgets[0].definition.requests[0].style" is equal to {"palette": "warm","line_type": "solid","line_width": "normal"}
335+
And the response "widgets[0].definition.requests[0].display_type" is equal to "bars"
336+
And the response "widgets[0].definition.requests[0].q" is equal to "sum:trace.test.errors{env:prod,service:datadog-api-spec} by {resource_name}.as_count()"
338337

339338
@team:DataDog/dashboards
340-
Scenario: Create a new dashboard with query_table widget
339+
Scenario: Create a new dashboard with toplist widget
341340
Given new "CreateDashboard" request
342-
And body from file "dashboards_json_payload/query_table_widget.json"
341+
And body from file "dashboards_json_payload/toplist_widget.json"
343342
When the request is sent
344343
Then the response status is 200 OK
345-
And the response "widgets[0].definition.type" is equal to "query_table"
344+
And the response "widgets[0].definition.type" is equal to "toplist"
346345

347346
@team:DataDog/dashboards
348-
Scenario: Create a new dashboard with toplist widget
347+
Scenario: Create a new dashboard with trace_service widget
349348
Given new "CreateDashboard" request
350-
And body from file "dashboards_json_payload/toplist_widget.json"
349+
And body from file "dashboards_json_payload/trace_service_widget.json"
351350
When the request is sent
352351
Then the response status is 200 OK
353-
And the response "widgets[0].definition.type" is equal to "toplist"
352+
And the response "widgets[0].definition.type" is equal to "trace_service"
353+
And the response "widgets[0].definition.env" is equal to "none"
354354

355355
@generated @skip @team:DataDog/dashboards
356356
Scenario: Delete a dashboard returns "Dashboards Not Found" response

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

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,19 @@ export class UsageAttributionPagination {
1414
*/
1515
"limit"?: number;
1616
/**
17-
* The cursor to use to get the next results, if any. To make the next request, use the same parameters with the addition of this next_record_id.
17+
* Records to be skipped before beginning to return.
1818
*/
19-
"nextRecordId"?: string;
19+
"offset"?: number;
2020
/**
21-
* Total number of records. (deprecated after May 1st, 2021)
21+
* Direction to sort by.
22+
*/
23+
"sortDirection"?: string;
24+
/**
25+
* Field to sort by.
26+
*/
27+
"sortName"?: string;
28+
/**
29+
* Total number of records.
2230
*/
2331
"totalNumberOfRecords"?: number;
2432

@@ -38,8 +46,18 @@ export class UsageAttributionPagination {
3846

3947
format: "int64",
4048
},
41-
nextRecordId: {
42-
baseName: "next_record_id",
49+
offset: {
50+
baseName: "offset",
51+
type: "number",
52+
53+
format: "int64",
54+
},
55+
sortDirection: {
56+
baseName: "sort_direction",
57+
type: "string",
58+
},
59+
sortName: {
60+
baseName: "sort_name",
4361
type: "string",
4462
},
4563
totalNumberOfRecords: {

0 commit comments

Comments
 (0)