Skip to content

Commit 2fbded4

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-specjirikuncar
authored
Regenerate client from commit 9841481 of spec repo (#628)
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> Co-authored-by: Jiri Kuncar <[email protected]>
1 parent e9dc229 commit 2fbded4

7 files changed

+122
-4
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": "2021-10-18 13:05:09.664750",
8-
"spec_repo_commit": "3b56e2f"
7+
"regenerated": "2021-10-19 14:08:50.427460",
8+
"spec_repo_commit": "9841481"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-10-18 13:05:43.665674",
13-
"spec_repo_commit": "3b56e2f"
12+
"regenerated": "2021-10-19 14:09:25.443679",
13+
"spec_repo_commit": "9841481"
1414
}
1515
}
1616
}

docs/v1/DistributionWidgetRequest.md

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/model/distribution_widget_request.py

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/openapi.yaml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2021-10-19T13:33:46.857Z
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
interactions:
2+
- request:
3+
body: '{"layout_type":"ordered","title":"Test-Create_a_new_dashboard_with_distribution_widget_and_apm_stats_data-1634650426","widgets":[{"definition":{"requests":[{"apm_stats_query":{"env":"prod","name":"cassandra.query","primary_tag":"datacenter:dc1","row_type":"service","service":"cassandra"}}],"title":"","title_align":"left","title_size":"16","type":"distribution"},"layout":{"height":4,"width":4,"x":0,"y":0}}]}'
4+
headers:
5+
accept:
6+
- application/json, */*;q=0.8
7+
connection:
8+
- close
9+
content-length:
10+
- '410'
11+
content-type:
12+
- application/json
13+
host:
14+
- api.datadoghq.com
15+
user-agent:
16+
- datadog-api-client-typescript/1.0.0-beta.5 (node 14.18.0; os Linux; arch x64)
17+
x-datadog-parent-id:
18+
- '8268861117747843641'
19+
x-datadog-trace-id:
20+
- '2389969289727081344'
21+
method: POST
22+
uri: https://api.datadoghq.com/api/v1/dashboard
23+
response:
24+
body:
25+
string: '{"notify_list":null,"description":null,"restricted_roles":[],"author_name":null,"template_variables":null,"is_read_only":false,"id":"4rp-6dh-ihs","title":"Test-Create_a_new_dashboard_with_distribution_widget_and_apm_stats_data-1634650426","url":"/dashboard/4rp-6dh-ihs/test-createanewdashboardwithdistributionwidgetandapmstatsdata-1634650426","created_at":"2021-10-19T13:33:47.501264+00:00","modified_at":"2021-10-19T13:33:47.501264+00:00","author_handle":"[email protected]","widgets":[{"definition":{"type":"distribution","requests":[{"apm_stats_query":{"primary_tag":"datacenter:dc1","row_type":"service","name":"cassandra.query","service":"cassandra","env":"prod"}}],"title_align":"left","title_size":"16","title":""},"layout":{"y":0,"width":4,"x":0,"height":4},"id":5954793079374026}],"layout_type":"ordered"}'
26+
headers:
27+
cache-control:
28+
- no-cache
29+
connection:
30+
- close
31+
content-length:
32+
- '815'
33+
content-security-policy:
34+
- frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report
35+
content-type:
36+
- application/json
37+
date:
38+
- Tue, 19 Oct 2021 13:33:47 GMT
39+
pragma:
40+
- no-cache
41+
strict-transport-security:
42+
- max-age=15724800;
43+
vary:
44+
- Accept-Encoding
45+
x-content-type-options:
46+
- nosniff
47+
x-frame-options:
48+
- SAMEORIGIN
49+
status:
50+
code: 200
51+
message: OK
52+
- request:
53+
body: null
54+
headers:
55+
accept:
56+
- application/json, */*;q=0.8
57+
connection:
58+
- close
59+
host:
60+
- api.datadoghq.com
61+
user-agent:
62+
- datadog-api-client-typescript/1.0.0-beta.5 (node 14.18.0; os Linux; arch x64)
63+
x-datadog-parent-id:
64+
- '5067932317896081809'
65+
x-datadog-trace-id:
66+
- '2389969289727081344'
67+
method: DELETE
68+
uri: https://api.datadoghq.com/api/v1/dashboard/4rp-6dh-ihs
69+
response:
70+
body:
71+
string: '{"deleted_dashboard_id":"4rp-6dh-ihs"}'
72+
headers:
73+
cache-control:
74+
- no-cache
75+
connection:
76+
- close
77+
content-length:
78+
- '38'
79+
content-security-policy:
80+
- frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report
81+
content-type:
82+
- application/json
83+
date:
84+
- Tue, 19 Oct 2021 13:33:48 GMT
85+
pragma:
86+
- no-cache
87+
strict-transport-security:
88+
- max-age=15724800;
89+
vary:
90+
- Accept-Encoding
91+
x-content-type-options:
92+
- nosniff
93+
x-frame-options:
94+
- SAMEORIGIN
95+
status:
96+
code: 200
97+
message: OK
98+
version: 1

tests/v1/features/dashboards.feature

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ Feature: Dashboards
7373
And the response "widgets[0].definition.requests[0].queries[0].primary_tag_name" is equal to "datacenter"
7474
And the response "widgets[0].definition.requests[0].queries[0].operation_name" is equal to "cassandra.query"
7575

76+
Scenario: Create a new dashboard with distribution widget and apm stats data
77+
Given new "CreateDashboard" request
78+
And body with value { "title": "{{ unique }}", "widgets": [{"definition": { "title": "", "title_size": "16", "title_align": "left", "type": "distribution", "requests": [{ "apm_stats_query": { "env": "prod", "service": "cassandra", "name": "cassandra.query", "primary_tag": "datacenter:dc1", "row_type": "service" }}] }, "layout": { "x": 0, "y": 0, "width": 4, "height": 4 } } ], "layout_type": "ordered" }
79+
When the request is sent
80+
Then the response status is 200 OK
81+
And the response "widgets[0].definition.requests[0].apm_stats_query.primary_tag" is equal to "datacenter:dc1"
82+
And the response "widgets[0].definition.requests[0].apm_stats_query.row_type" is equal to "service"
83+
And the response "widgets[0].definition.requests[0].apm_stats_query.env" is equal to "prod"
84+
And the response "widgets[0].definition.requests[0].apm_stats_query.service" is equal to "cassandra"
85+
And the response "widgets[0].definition.requests[0].apm_stats_query.name" is equal to "cassandra.query"
86+
7687
Scenario: Create a new dashboard with formulas and functions scatterplot widget
7788
Given new "CreateDashboard" request
7889
And body with value { "title": "{{ unique }}", "widgets": [ { "id": 5346764334358972, "definition": { "title": "", "title_size": "16", "title_align": "left", "type": "scatterplot", "requests": { "table": { "formulas": [ { "formula": "query1", "dimension": "x", "alias": "my-query1" }, { "formula": "query2", "dimension": "y", "alias": "my-query2" } ], "queries": [ { "data_source": "metrics", "name": "query1", "query": "avg:system.cpu.user{*} by {service}", "aggregator": "avg" }, { "data_source": "metrics", "name": "query2", "query": "avg:system.mem.used{*} by {service}", "aggregator": "avg" } ], "response_format": "scalar" } } }, "layout": { "x": 0, "y": 0, "width": 4, "height": 2 } } ], "layout_type": "ordered" }

0 commit comments

Comments
 (0)