Skip to content

Commit 8e65d2f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit cbed8a1f of spec repo (#944)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 4be296c commit 8e65d2f

10 files changed

+27
-30
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.2",
7-
"regenerated": "2022-04-19 10:04:31.448854",
8-
"spec_repo_commit": "ae11312e"
7+
"regenerated": "2022-04-19 14:15:36.924508",
8+
"spec_repo_commit": "cbed8a1f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-04-19 10:04:31.462741",
13-
"spec_repo_commit": "ae11312e"
12+
"regenerated": "2022-04-19 14:15:36.936357",
13+
"spec_repo_commit": "cbed8a1f"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3818,15 +3818,13 @@ components:
38183818
default: apm_issue_stream
38193819
description: Source from which to query items to display in the stream.
38203820
enum:
3821-
- issue_stream
38223821
- logs_stream
38233822
- audit_stream
38243823
- rum_issue_stream
38253824
- apm_issue_stream
38263825
example: apm_issue_stream
38273826
type: string
38283827
x-enum-varnames:
3829-
- ISSUE_STREAM
38303828
- LOGS_STREAM
38313829
- AUDIT_STREAM
38323830
- RUM_ISSUE_STREAM

examples/v1/dashboards/CreateDashboard_2338918735.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
),
3333
],
3434
query=ListStreamQuery(
35-
data_source=ListStreamSource("issue_stream"),
35+
data_source=ListStreamSource("apm_issue_stream"),
3636
query_string="",
3737
),
3838
response_format=ListStreamResponseFormat("event_list"),

examples/v1/dashboards/UpdateDashboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
),
3838
],
3939
query=ListStreamQuery(
40-
data_source=ListStreamSource("issue_stream"),
40+
data_source=ListStreamSource("apm_issue_stream"),
4141
query_string="",
4242
),
4343
response_format=ListStreamResponseFormat("event_list"),

src/datadog_api_client/v1/model/list_stream_source.py

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-01-06T00:50:36.354Z
1+
2022-04-19T09:27:28.961Z

tests/v1/cassettes/test_scenarios/test_create_a_new_dashboard_with_list_stream_widget.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
3-
body: '{"layout_type":"ordered","title":"Test-Create_a_new_dashboard_with_list_stream_widget-1641430236
4-
with list_stream widget","widgets":[{"definition":{"requests":[{"columns":[{"field":"timestamp","width":"auto"}],"query":{"data_source":"issue_stream","query_string":""},"response_format":"event_list"}],"type":"list_stream"}}]}'
3+
body: '{"layout_type":"ordered","title":"Test-Create_a_new_dashboard_with_list_stream_widget-1650360448
4+
with list_stream widget","widgets":[{"definition":{"requests":[{"columns":[{"field":"timestamp","width":"auto"}],"query":{"data_source":"apm_issue_stream","query_string":""},"response_format":"event_list"}],"type":"list_stream"}}]}'
55
headers:
66
accept:
77
- application/json
@@ -11,8 +11,8 @@ interactions:
1111
uri: https://api.datadoghq.com/api/v1/dashboard
1212
response:
1313
body:
14-
string: '{"notify_list":null,"description":null,"restricted_roles":[],"author_name":null,"template_variables":null,"is_read_only":false,"id":"a55-ncv-i3b","title":"Test-Create_a_new_dashboard_with_list_stream_widget-1641430236
15-
with list_stream widget","url":"/dashboard/a55-ncv-i3b/test-createanewdashboardwithliststreamwidget-1641430236-with-liststream-widget","created_at":"2022-01-06T00:50:36.516935+00:00","modified_at":"2022-01-06T00:50:36.516935+00:00","author_handle":"[email protected]","widgets":[{"definition":{"requests":[{"query":{"query_string":"","data_source":"issue_stream"},"response_format":"event_list","columns":[{"field":"timestamp","width":"auto"}]}],"type":"list_stream"},"id":5504795795756241}],"layout_type":"ordered"}'
14+
string: '{"notify_list":null,"description":null,"restricted_roles":[],"author_name":null,"template_variables":null,"is_read_only":false,"id":"8qi-cen-xbg","title":"Test-Create_a_new_dashboard_with_list_stream_widget-1650360448
15+
with list_stream widget","url":"/dashboard/8qi-cen-xbg/test-createanewdashboardwithliststreamwidget-1650360448-with-liststream-widget","created_at":"2022-04-19T09:27:29.277529+00:00","modified_at":"2022-04-19T09:27:29.277529+00:00","author_handle":"[email protected]","widgets":[{"definition":{"requests":[{"query":{"query_string":"","data_source":"apm_issue_stream"},"response_format":"event_list","columns":[{"field":"timestamp","width":"auto"}]}],"type":"list_stream"},"id":8256654551182209}],"layout_type":"ordered"}'
1616
headers:
1717
content-type:
1818
- application/json
@@ -25,10 +25,10 @@ interactions:
2525
accept:
2626
- application/json
2727
method: DELETE
28-
uri: https://api.datadoghq.com/api/v1/dashboard/a55-ncv-i3b
28+
uri: https://api.datadoghq.com/api/v1/dashboard/8qi-cen-xbg
2929
response:
3030
body:
31-
string: '{"deleted_dashboard_id":"a55-ncv-i3b"}'
31+
string: '{"deleted_dashboard_id":"8qi-cen-xbg"}'
3232
headers:
3333
content-type:
3434
- application/json
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-02-25T09:02:19.150Z
1+
2022-04-19T09:27:29.726Z

tests/v1/cassettes/test_scenarios/test_update_a_dashboard_returns_ok_response.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
interactions:
22
- request:
3-
body: '{"layout_type":"ordered","title":"Test-Update_a_dashboard_returns_OK_response-1645779739
3+
body: '{"layout_type":"ordered","title":"Test-Update_a_dashboard_returns_OK_response-1650360449
44
with Profile Metrics Query","widgets":[{"definition":{"requests":[{"profile_metrics_query":{"compute":{"aggregation":"sum","facet":"@prof_core_cpu_cores"},"group_by":[{"facet":"service","limit":10,"sort":{"aggregation":"sum","facet":"@prof_core_cpu_cores","order":"desc"}}],"search":{"query":"runtime:jvm"}}}],"type":"timeseries"}}]}'
55
headers:
66
accept:
@@ -11,28 +11,28 @@ interactions:
1111
uri: https://api.datadoghq.com/api/v1/dashboard
1212
response:
1313
body:
14-
string: '{"notify_list":null,"description":null,"restricted_roles":[],"author_name":null,"template_variables":null,"is_read_only":false,"id":"9uw-zvg-9sn","title":"Test-Update_a_dashboard_returns_OK_response-1645779739
15-
with Profile Metrics Query","url":"/dashboard/9uw-zvg-9sn/test-updateadashboardreturnsokresponse-1645779739-with-profile-metrics-query","created_at":"2022-02-25T09:02:19.677253+00:00","modified_at":"2022-02-25T09:02:19.677253+00:00","author_handle":"[email protected]","widgets":[{"definition":{"requests":[{"profile_metrics_query":{"search":{"query":"runtime:jvm"},"group_by":[{"facet":"service","sort":{"facet":"@prof_core_cpu_cores","aggregation":"sum","order":"desc"},"limit":10}],"compute":{"facet":"@prof_core_cpu_cores","aggregation":"sum"}}}],"type":"timeseries"},"id":7885367271440770}],"layout_type":"ordered"}'
14+
string: '{"notify_list":null,"description":null,"restricted_roles":[],"author_name":null,"template_variables":null,"is_read_only":false,"id":"f9b-648-ep9","title":"Test-Update_a_dashboard_returns_OK_response-1650360449
15+
with Profile Metrics Query","url":"/dashboard/f9b-648-ep9/test-updateadashboardreturnsokresponse-1650360449-with-profile-metrics-query","created_at":"2022-04-19T09:27:29.963904+00:00","modified_at":"2022-04-19T09:27:29.963904+00:00","author_handle":"[email protected]","widgets":[{"definition":{"requests":[{"profile_metrics_query":{"search":{"query":"runtime:jvm"},"group_by":[{"facet":"service","sort":{"facet":"@prof_core_cpu_cores","aggregation":"sum","order":"desc"},"limit":10}],"compute":{"facet":"@prof_core_cpu_cores","aggregation":"sum"}}}],"type":"timeseries"},"id":130613274141546}],"layout_type":"ordered"}'
1616
headers:
1717
content-type:
1818
- application/json
1919
status:
2020
code: 200
2121
message: OK
2222
- request:
23-
body: '{"description":"Updated description","layout_type":"ordered","title":"Test-Update_a_dashboard_returns_OK_response-1645779739
24-
with list_stream widget","widgets":[{"definition":{"requests":[{"columns":[{"field":"timestamp","width":"auto"}],"query":{"data_source":"issue_stream","query_string":""},"response_format":"event_list"}],"type":"list_stream"}}]}'
23+
body: '{"description":"Updated description","layout_type":"ordered","title":"Test-Update_a_dashboard_returns_OK_response-1650360449
24+
with list_stream widget","widgets":[{"definition":{"requests":[{"columns":[{"field":"timestamp","width":"auto"}],"query":{"data_source":"apm_issue_stream","query_string":""},"response_format":"event_list"}],"type":"list_stream"}}]}'
2525
headers:
2626
accept:
2727
- application/json
2828
content-type:
2929
- application/json
3030
method: PUT
31-
uri: https://api.datadoghq.com/api/v1/dashboard/9uw-zvg-9sn
31+
uri: https://api.datadoghq.com/api/v1/dashboard/f9b-648-ep9
3232
response:
3333
body:
34-
string: '{"notify_list":null,"description":"Updated description","restricted_roles":[],"author_name":null,"template_variables":null,"is_read_only":false,"id":"9uw-zvg-9sn","title":"Test-Update_a_dashboard_returns_OK_response-1645779739
35-
with list_stream widget","url":"/dashboard/9uw-zvg-9sn/test-updateadashboardreturnsokresponse-1645779739-with-liststream-widget","created_at":"2022-02-25T09:02:19.677253+00:00","modified_at":"2022-02-25T09:02:20.155487+00:00","author_handle":"[email protected]","widgets":[{"definition":{"requests":[{"query":{"query_string":"","data_source":"issue_stream"},"response_format":"event_list","columns":[{"field":"timestamp","width":"auto"}]}],"type":"list_stream"},"id":7534839820758504}],"layout_type":"ordered"}'
34+
string: '{"notify_list":null,"description":"Updated description","restricted_roles":[],"author_name":null,"template_variables":null,"is_read_only":false,"id":"f9b-648-ep9","title":"Test-Update_a_dashboard_returns_OK_response-1650360449
35+
with list_stream widget","url":"/dashboard/f9b-648-ep9/test-updateadashboardreturnsokresponse-1650360449-with-liststream-widget","created_at":"2022-04-19T09:27:29.963904+00:00","modified_at":"2022-04-19T09:27:30.331830+00:00","author_handle":"[email protected]","widgets":[{"definition":{"requests":[{"query":{"query_string":"","data_source":"apm_issue_stream"},"response_format":"event_list","columns":[{"field":"timestamp","width":"auto"}]}],"type":"list_stream"},"id":7235388013669172}],"layout_type":"ordered"}'
3636
headers:
3737
content-type:
3838
- application/json
@@ -45,10 +45,10 @@ interactions:
4545
accept:
4646
- application/json
4747
method: DELETE
48-
uri: https://api.datadoghq.com/api/v1/dashboard/9uw-zvg-9sn
48+
uri: https://api.datadoghq.com/api/v1/dashboard/f9b-648-ep9
4949
response:
5050
body:
51-
string: '{"deleted_dashboard_id":"9uw-zvg-9sn"}'
51+
string: '{"deleted_dashboard_id":"f9b-648-ep9"}'
5252
headers:
5353
content-type:
5454
- application/json

tests/v1/features/dashboards.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Feature: Dashboards
263263
@team:DataDog/dashboards
264264
Scenario: Create a new dashboard with list_stream widget
265265
Given new "CreateDashboard" request
266-
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"}]}}]}
266+
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":"apm_issue_stream","query_string":""},"response_format":"event_list"}]}}]}
267267
When the request is sent
268268
Then the response status is 200 OK
269269

@@ -510,7 +510,7 @@ Feature: Dashboards
510510
Given there is a valid "dashboard" in the system
511511
And new "UpdateDashboard" request
512512
And request contains "dashboard_id" parameter from "dashboard.id"
513-
And body with value {"layout_type": "ordered", "title": "{{ unique }} with list_stream widget","description":"Updated description","widgets": [{"definition": {"type": "list_stream","requests": [{"columns":[{"width":"auto","field":"timestamp"}],"query":{"data_source":"issue_stream","query_string":""},"response_format":"event_list"}]}}]}
513+
And body with value {"layout_type": "ordered", "title": "{{ unique }} with list_stream widget","description":"Updated description","widgets": [{"definition": {"type": "list_stream","requests": [{"columns":[{"width":"auto","field":"timestamp"}],"query":{"data_source":"apm_issue_stream","query_string":""},"response_format":"event_list"}]}}]}
514514
When the request is sent
515515
Then the response status is 200 OK
516516
And the response "description" is equal to "Updated description"

0 commit comments

Comments
 (0)