Skip to content

Commit 695e2ac

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Powerpack Live Span Support (#1389)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 8122ed5 commit 695e2ac

File tree

28 files changed

+278
-262
lines changed

28 files changed

+278
-262
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.6.6",
7-
"regenerated": "2023-10-25 09:00:33.929659",
8-
"spec_repo_commit": "9ebdefa4"
7+
"regenerated": "2023-10-25 13:57:28.981603",
8+
"spec_repo_commit": "fb2f4134"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-10-25 09:00:33.947834",
13-
"spec_repo_commit": "9ebdefa4"
12+
"regenerated": "2023-10-25 13:57:28.995815",
13+
"spec_repo_commit": "fb2f4134"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11170,6 +11170,8 @@ components:
1117011170
$ref: '#/components/schemas/PowerpackGroupWidgetDefinition'
1117111171
layout:
1117211172
$ref: '#/components/schemas/PowerpackGroupWidgetLayout'
11173+
live_span:
11174+
$ref: '#/components/schemas/WidgetLiveSpan'
1117311175
required:
1117411176
- definition
1117511177
type: object
@@ -18581,6 +18583,42 @@ components:
1858118583
type: string
1858218584
x-enum-varnames:
1858318585
- USERS
18586+
WidgetLiveSpan:
18587+
description: The available timeframes depend on the widget you are using.
18588+
enum:
18589+
- 1m
18590+
- 5m
18591+
- 10m
18592+
- 15m
18593+
- 30m
18594+
- 1h
18595+
- 4h
18596+
- 1d
18597+
- 2d
18598+
- 1w
18599+
- 1mo
18600+
- 3mo
18601+
- 6mo
18602+
- 1y
18603+
- alert
18604+
example: 5m
18605+
type: string
18606+
x-enum-varnames:
18607+
- PAST_ONE_MINUTE
18608+
- PAST_FIVE_MINUTES
18609+
- PAST_TEN_MINUTES
18610+
- PAST_FIFTEEN_MINUTES
18611+
- PAST_THIRTY_MINUTES
18612+
- PAST_ONE_HOUR
18613+
- PAST_FOUR_HOURS
18614+
- PAST_ONE_DAY
18615+
- PAST_TWO_DAYS
18616+
- PAST_ONE_WEEK
18617+
- PAST_ONE_MONTH
18618+
- PAST_THREE_MONTHS
18619+
- PAST_SIX_MONTHS
18620+
- PAST_ONE_YEAR
18621+
- ALERT
1858418622
securitySchemes:
1858518623
AuthZ:
1858618624
description: This API uses OAuth 2 with the implicit grant flow.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-10-11T18:44:47.026Z"
1+
"2023-10-24T18:32:08.933Z"

cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-powerpack-widget_3216690124/recording.har

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "09df1491cb73d8c064ac9cb6b1832ff4",
11+
"_id": "ff463c5a66667d63df23f35e81c1badd",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 448,
15+
"bodySize": 465,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1697049887\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"name\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1698172328\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/powerpacks"
3939
},
4040
"response": {
41-
"bodySize": 742,
41+
"bodySize": 788,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 742,
45-
"text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"40778356-6866-11ee-812e-da7ad0900002\",\"attributes\":{\"name\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1697049887\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":6750168893668334}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n"
44+
"size": 788,
45+
"text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"a3e591c8-729b-11ee-bde6-da7ad0900002\",\"attributes\":{\"name\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1698172328\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":1041433464205113}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"attributes\":{\"name\":\"CI Account\",\"email\":\"team-intg-tools-libs-spam@datadoghq.com\"}}]}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2023-10-11T18:44:47.035Z",
61-
"time": 250
60+
"startedDateTime": "2023-10-24T18:32:08.946Z",
61+
"time": 644
6262
},
6363
{
64-
"_id": "75eb5a987bc007cba49428c0cf9bfc39",
64+
"_id": "a6a4cc343ee1cd5b166d5792a9ef6b5f",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -79,23 +79,23 @@
7979
"value": "application/json"
8080
}
8181
],
82-
"headersSize": 559,
82+
"headersSize": 558,
8383
"httpVersion": "HTTP/1.1",
8484
"method": "POST",
8585
"postData": {
8686
"mimeType": "application/json",
8787
"params": [],
88-
"text": "{\"description\":\"description\",\"is_read_only\":false,\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1697049887 with powerpack widget\",\"widgets\":[{\"definition\":{\"powerpack_id\":\"40778356-6866-11ee-812e-da7ad0900002\",\"template_variables\":{\"controlled_by_powerpack\":[{\"name\":\"foo\",\"prefix\":\"bar\",\"values\":[\"baz\",\"qux\",\"quuz\"]}],\"controlled_externally\":[]},\"type\":\"powerpack\"},\"layout\":{\"height\":2,\"is_column_break\":false,\"width\":2,\"x\":1,\"y\":1}}]}"
88+
"text": "{\"description\":\"description\",\"is_read_only\":false,\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1698172328 with powerpack widget\",\"widgets\":[{\"definition\":{\"powerpack_id\":\"a3e591c8-729b-11ee-bde6-da7ad0900002\",\"template_variables\":{\"controlled_by_powerpack\":[{\"name\":\"foo\",\"prefix\":\"bar\",\"values\":[\"baz\",\"qux\",\"quuz\"]}],\"controlled_externally\":[]},\"type\":\"powerpack\"},\"layout\":{\"height\":2,\"is_column_break\":false,\"width\":2,\"x\":1,\"y\":1}}]}"
8989
},
9090
"queryString": [],
9191
"url": "https://api.datadoghq.com/api/v1/dashboard"
9292
},
9393
"response": {
94-
"bodySize": 845,
94+
"bodySize": 871,
9595
"content": {
9696
"mimeType": "application/json",
97-
"size": 845,
98-
"text": "{\"id\":\"wap-jgr-c99\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1697049887 with powerpack widget\",\"description\":\"description\",\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/wap-jgr-c99/test-createanewdashboardwithpowerpackwidget-1697049887-with-powerpack-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"powerpack_id\":\"40778356-6866-11ee-812e-da7ad0900002\",\"template_variables\":{\"controlled_by_powerpack\":[{\"name\":\"foo\",\"prefix\":\"bar\",\"values\":[\"baz\",\"qux\",\"quuz\"]}],\"controlled_externally\":[]},\"type\":\"powerpack\"},\"layout\":{\"height\":2,\"is_column_break\":false,\"width\":2,\"x\":1,\"y\":1},\"id\":2124665012947075}],\"notify_list\":null,\"created_at\":\"2023-10-11T18:44:47.485150+00:00\",\"modified_at\":\"2023-10-11T18:44:47.485150+00:00\",\"restricted_roles\":[]}\n"
97+
"size": 871,
98+
"text": "{\"id\":\"u4a-itq-xia\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1698172328 with powerpack widget\",\"description\":\"description\",\"author_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"author_name\":\"CI Account\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/u4a-itq-xia/test-createanewdashboardwithpowerpackwidget-1698172328-with-powerpack-widget\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"powerpack_id\":\"a3e591c8-729b-11ee-bde6-da7ad0900002\",\"template_variables\":{\"controlled_by_powerpack\":[{\"name\":\"foo\",\"prefix\":\"bar\",\"values\":[\"baz\",\"qux\",\"quuz\"]}],\"controlled_externally\":[]},\"type\":\"powerpack\"},\"layout\":{\"height\":2,\"is_column_break\":false,\"width\":2,\"x\":1,\"y\":1},\"id\":1423357855337541}],\"notify_list\":null,\"created_at\":\"2023-10-24T18:32:09.719784+00:00\",\"modified_at\":\"2023-10-24T18:32:09.719784+00:00\",\"restricted_roles\":[]}\n"
9999
},
100100
"cookies": [],
101101
"headers": [
@@ -110,11 +110,11 @@
110110
"status": 200,
111111
"statusText": "OK"
112112
},
113-
"startedDateTime": "2023-10-11T18:44:47.306Z",
114-
"time": 219
113+
"startedDateTime": "2023-10-24T18:32:09.604Z",
114+
"time": 195
115115
},
116116
{
117-
"_id": "3e05e95856872650c293372e704c67d9",
117+
"_id": "f426c6930cfa809096ddc44ac24cb5ce",
118118
"_order": 0,
119119
"cache": {},
120120
"request": {
@@ -131,14 +131,14 @@
131131
"httpVersion": "HTTP/1.1",
132132
"method": "DELETE",
133133
"queryString": [],
134-
"url": "https://api.datadoghq.com/api/v1/dashboard/wap-jgr-c99"
134+
"url": "https://api.datadoghq.com/api/v1/dashboard/u4a-itq-xia"
135135
},
136136
"response": {
137137
"bodySize": 39,
138138
"content": {
139139
"mimeType": "application/json",
140140
"size": 39,
141-
"text": "{\"deleted_dashboard_id\":\"wap-jgr-c99\"}\n"
141+
"text": "{\"deleted_dashboard_id\":\"u4a-itq-xia\"}\n"
142142
},
143143
"cookies": [],
144144
"headers": [
@@ -153,11 +153,11 @@
153153
"status": 200,
154154
"statusText": "OK"
155155
},
156-
"startedDateTime": "2023-10-11T18:44:47.537Z",
157-
"time": 190
156+
"startedDateTime": "2023-10-24T18:32:09.809Z",
157+
"time": 144
158158
},
159159
{
160-
"_id": "217513125539305649fbe5723c37d7ec",
160+
"_id": "1deff91fbcfe0bca1014fb15c070e7ac",
161161
"_order": 0,
162162
"cache": {},
163163
"request": {
@@ -174,7 +174,7 @@
174174
"httpVersion": "HTTP/1.1",
175175
"method": "DELETE",
176176
"queryString": [],
177-
"url": "https://api.datadoghq.com/api/v2/powerpacks/40778356-6866-11ee-812e-da7ad0900002"
177+
"url": "https://api.datadoghq.com/api/v2/powerpacks/a3e591c8-729b-11ee-bde6-da7ad0900002"
178178
},
179179
"response": {
180180
"bodySize": 0,
@@ -195,8 +195,8 @@
195195
"status": 204,
196196
"statusText": "No Content"
197197
},
198-
"startedDateTime": "2023-10-11T18:44:47.736Z",
199-
"time": 155
198+
"startedDateTime": "2023-10-24T18:32:09.958Z",
199+
"time": 114
200200
}
201201
],
202202
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-10-11T15:48:55.126Z"
1+
"2023-10-24T18:32:10.926Z"

cassettes/v2/Powerpack_1228731231/Create-a-new-powerpack-returns-OK-response_122358450/recording.har

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "1771f1e36e4552aedd76a04be37cde22",
11+
"_id": "1d4dfb5f9b41f2de006a6c00ad56ee60",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 446,
15+
"bodySize": 463,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"name\":\"Test-Create_a_new_powerpack_returns_OK_response-1697039335\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"}}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"name\":\"Test-Create_a_new_powerpack_returns_OK_response-1698172330\",\"tags\":[\"tag:sample\"],\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}]},\"type\":\"powerpack\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/powerpacks"
3939
},
4040
"response": {
41-
"bodySize": 740,
41+
"bodySize": 786,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 740,
45-
"text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"aef5d85a-684d-11ee-ae79-da7ad0900002\",\"attributes\":{\"name\":\"Test-Create_a_new_powerpack_returns_OK_response-1697039335\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":5789473441337322}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0}},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"name\":null,\"email\":\"frog@datadoghq.com\"}}]}\n"
44+
"size": 786,
45+
"text": "{\"data\":{\"type\":\"powerpack\",\"id\":\"a5892a4e-729b-11ee-8449-da7ad0900002\",\"attributes\":{\"name\":\"Test-Create_a_new_powerpack_returns_OK_response-1698172330\",\"description\":\"Sample powerpack\",\"group_widget\":{\"definition\":{\"layout_type\":\"ordered\",\"show_title\":true,\"title\":\"Sample Powerpack\",\"type\":\"group\",\"widgets\":[{\"definition\":{\"content\":\"test\",\"type\":\"note\"},\"id\":2803120731030485}]},\"layout\":{\"height\":3,\"width\":12,\"x\":0,\"y\":0},\"live_span\":\"1h\"},\"template_variables\":[{\"defaults\":[\"*\"],\"name\":\"sample\"}],\"tags\":[\"tag:sample\"]},\"relationships\":{\"author\":{\"data\":{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\"}}}},\"included\":[{\"type\":\"users\",\"id\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"attributes\":{\"name\":\"CI Account\",\"email\":\"team-intg-tools-libs-spam@datadoghq.com\"}}]}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -51,17 +51,17 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 651,
54+
"headersSize": 652,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2023-10-11T15:48:55.131Z",
61-
"time": 163
60+
"startedDateTime": "2023-10-24T18:32:11.621Z",
61+
"time": 668
6262
},
6363
{
64-
"_id": "39c20bcd9cd1a67be30353ef0a0bbccf",
64+
"_id": "8ab5ac02cb058aafddf50ff80a57cc09",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -74,11 +74,11 @@
7474
"value": "*/*"
7575
}
7676
],
77-
"headersSize": 533,
77+
"headersSize": 532,
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/powerpacks/aef5d85a-684d-11ee-ae79-da7ad0900002"
81+
"url": "https://api.datadoghq.com/api/v2/powerpacks/a5892a4e-729b-11ee-8449-da7ad0900002"
8282
},
8383
"response": {
8484
"bodySize": 0,
@@ -93,14 +93,14 @@
9393
"value": "text/html; charset=utf-8"
9494
}
9595
],
96-
"headersSize": 638,
96+
"headersSize": 639,
9797
"httpVersion": "HTTP/1.1",
9898
"redirectURL": "",
9999
"status": 204,
100100
"statusText": "No Content"
101101
},
102-
"startedDateTime": "2023-10-11T15:48:55.314Z",
103-
"time": 162
102+
"startedDateTime": "2023-10-24T18:32:12.300Z",
103+
"time": 111
104104
}
105105
],
106106
"pages": [],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2023-10-11T15:48:55.488Z"
1+
"2023-10-24T18:32:12.418Z"

0 commit comments

Comments
 (0)