Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Powerpack Live Span Support #1389

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2023-10-25 09:00:33.929659",
"spec_repo_commit": "9ebdefa4"
"regenerated": "2023-10-25 13:57:28.981603",
"spec_repo_commit": "fb2f4134"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-10-25 09:00:33.947834",
"spec_repo_commit": "9ebdefa4"
"regenerated": "2023-10-25 13:57:28.995815",
"spec_repo_commit": "fb2f4134"
}
}
}
38 changes: 38 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11170,6 +11170,8 @@ components:
$ref: '#/components/schemas/PowerpackGroupWidgetDefinition'
layout:
$ref: '#/components/schemas/PowerpackGroupWidgetLayout'
live_span:
$ref: '#/components/schemas/WidgetLiveSpan'
required:
- definition
type: object
Expand Down Expand Up @@ -18581,6 +18583,42 @@ components:
type: string
x-enum-varnames:
- USERS
WidgetLiveSpan:
description: The available timeframes depend on the widget you are using.
enum:
- 1m
- 5m
- 10m
- 15m
- 30m
- 1h
- 4h
- 1d
- 2d
- 1w
- 1mo
- 3mo
- 6mo
- 1y
- alert
example: 5m
type: string
x-enum-varnames:
- PAST_ONE_MINUTE
- PAST_FIVE_MINUTES
- PAST_TEN_MINUTES
- PAST_FIFTEEN_MINUTES
- PAST_THIRTY_MINUTES
- PAST_ONE_HOUR
- PAST_FOUR_HOURS
- PAST_ONE_DAY
- PAST_TWO_DAYS
- PAST_ONE_WEEK
- PAST_ONE_MONTH
- PAST_THREE_MONTHS
- PAST_SIX_MONTHS
- PAST_ONE_YEAR
- ALERT
securitySchemes:
AuthZ:
description: This API uses OAuth 2 with the implicit grant flow.
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2023-10-11T18:44:47.026Z"
"2023-10-24T18:32:08.933Z"
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"entries": [
{
"_id": "09df1491cb73d8c064ac9cb6b1832ff4",
"_id": "ff463c5a66667d63df23f35e81c1badd",
"_order": 0,
"cache": {},
"request": {
"bodySize": 448,
"bodySize": 465,
"cookies": [],
"headers": [
{
Expand All @@ -32,17 +32,17 @@
"postData": {
"mimeType": "application/json",
"params": [],
"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\"}}"
"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\"}}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/powerpacks"
},
"response": {
"bodySize": 742,
"bodySize": 788,
"content": {
"mimeType": "application/json",
"size": 742,
"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"
"size": 788,
"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"
},
"cookies": [],
"headers": [
Expand All @@ -57,11 +57,11 @@
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2023-10-11T18:44:47.035Z",
"time": 250
"startedDateTime": "2023-10-24T18:32:08.946Z",
"time": 644
},
{
"_id": "75eb5a987bc007cba49428c0cf9bfc39",
"_id": "a6a4cc343ee1cd5b166d5792a9ef6b5f",
"_order": 0,
"cache": {},
"request": {
Expand All @@ -79,23 +79,23 @@
"value": "application/json"
}
],
"headersSize": 559,
"headersSize": 558,
"httpVersion": "HTTP/1.1",
"method": "POST",
"postData": {
"mimeType": "application/json",
"params": [],
"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}}]}"
"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}}]}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/dashboard"
},
"response": {
"bodySize": 845,
"bodySize": 871,
"content": {
"mimeType": "application/json",
"size": 845,
"text": "{\"id\":\"wap-jgr-c99\",\"title\":\"Test-Create_a_new_dashboard_with_powerpack_widget-1697049887 with powerpack widget\",\"description\":\"description\",\"author_handle\":\"[email protected]\",\"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"
"size": 871,
"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"
},
"cookies": [],
"headers": [
Expand All @@ -110,11 +110,11 @@
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2023-10-11T18:44:47.306Z",
"time": 219
"startedDateTime": "2023-10-24T18:32:09.604Z",
"time": 195
},
{
"_id": "3e05e95856872650c293372e704c67d9",
"_id": "f426c6930cfa809096ddc44ac24cb5ce",
"_order": 0,
"cache": {},
"request": {
Expand All @@ -131,14 +131,14 @@
"httpVersion": "HTTP/1.1",
"method": "DELETE",
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/dashboard/wap-jgr-c99"
"url": "https://api.datadoghq.com/api/v1/dashboard/u4a-itq-xia"
},
"response": {
"bodySize": 39,
"content": {
"mimeType": "application/json",
"size": 39,
"text": "{\"deleted_dashboard_id\":\"wap-jgr-c99\"}\n"
"text": "{\"deleted_dashboard_id\":\"u4a-itq-xia\"}\n"
},
"cookies": [],
"headers": [
Expand All @@ -153,11 +153,11 @@
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2023-10-11T18:44:47.537Z",
"time": 190
"startedDateTime": "2023-10-24T18:32:09.809Z",
"time": 144
},
{
"_id": "217513125539305649fbe5723c37d7ec",
"_id": "1deff91fbcfe0bca1014fb15c070e7ac",
"_order": 0,
"cache": {},
"request": {
Expand All @@ -174,7 +174,7 @@
"httpVersion": "HTTP/1.1",
"method": "DELETE",
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/powerpacks/40778356-6866-11ee-812e-da7ad0900002"
"url": "https://api.datadoghq.com/api/v2/powerpacks/a3e591c8-729b-11ee-bde6-da7ad0900002"
},
"response": {
"bodySize": 0,
Expand All @@ -195,8 +195,8 @@
"status": 204,
"statusText": "No Content"
},
"startedDateTime": "2023-10-11T18:44:47.736Z",
"time": 155
"startedDateTime": "2023-10-24T18:32:09.958Z",
"time": 114
}
],
"pages": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2023-10-11T15:48:55.126Z"
"2023-10-24T18:32:10.926Z"
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"entries": [
{
"_id": "1771f1e36e4552aedd76a04be37cde22",
"_id": "1d4dfb5f9b41f2de006a6c00ad56ee60",
"_order": 0,
"cache": {},
"request": {
"bodySize": 446,
"bodySize": 463,
"cookies": [],
"headers": [
{
Expand All @@ -32,17 +32,17 @@
"postData": {
"mimeType": "application/json",
"params": [],
"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\"}}"
"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\"}}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/powerpacks"
},
"response": {
"bodySize": 740,
"bodySize": 786,
"content": {
"mimeType": "application/json",
"size": 740,
"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"
"size": 786,
"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"
},
"cookies": [],
"headers": [
Expand All @@ -51,17 +51,17 @@
"value": "application/json"
}
],
"headersSize": 651,
"headersSize": 652,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2023-10-11T15:48:55.131Z",
"time": 163
"startedDateTime": "2023-10-24T18:32:11.621Z",
"time": 668
},
{
"_id": "39c20bcd9cd1a67be30353ef0a0bbccf",
"_id": "8ab5ac02cb058aafddf50ff80a57cc09",
"_order": 0,
"cache": {},
"request": {
Expand All @@ -74,11 +74,11 @@
"value": "*/*"
}
],
"headersSize": 533,
"headersSize": 532,
"httpVersion": "HTTP/1.1",
"method": "DELETE",
"queryString": [],
"url": "https://api.datadoghq.com/api/v2/powerpacks/aef5d85a-684d-11ee-ae79-da7ad0900002"
"url": "https://api.datadoghq.com/api/v2/powerpacks/a5892a4e-729b-11ee-8449-da7ad0900002"
},
"response": {
"bodySize": 0,
Expand All @@ -93,14 +93,14 @@
"value": "text/html; charset=utf-8"
}
],
"headersSize": 638,
"headersSize": 639,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 204,
"statusText": "No Content"
},
"startedDateTime": "2023-10-11T15:48:55.314Z",
"time": 162
"startedDateTime": "2023-10-24T18:32:12.300Z",
"time": 111
}
],
"pages": [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2023-10-11T15:48:55.488Z"
"2023-10-24T18:32:12.418Z"
Loading
Loading