Skip to content

Commit

Permalink
Regenerate client from commit 3301576 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Oct 18, 2021
1 parent e8fcc82 commit 81037ef
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
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.5.1.dev2",
"regenerated": "2021-10-18 13:05:09.664750",
"spec_repo_commit": "3b56e2f"
"regenerated": "2021-10-18 17:44:02.748366",
"spec_repo_commit": "3301576"
},
"v2": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-10-18 13:05:43.665674",
"spec_repo_commit": "3b56e2f"
"regenerated": "2021-10-18 17:44:41.981868",
"spec_repo_commit": "3301576"
}
}
}
1 change: 1 addition & 0 deletions docs/v1/DistributionWidgetRequest.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/datadog_api_client/v1/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions tests/v1/features/dashboards.feature
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,17 @@ Feature: Dashboards
And the response "widgets[0].definition.requests[0].queries[0].primary_tag_name" is equal to "datacenter"
And the response "widgets[0].definition.requests[0].queries[0].operation_name" is equal to "cassandra.query"

Scenario: Create a new dashboard with distribution widget and apm stats data
Given new "CreateDashboard" request
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:us1.prod.dog", "row_type": "service" }}] }, "layout": { "x": 0, "y": 0, "width": 4, "height": 4 } } ], "layout_type": "ordered" }
When the request is sent
Then the response status is 200 OK
And the response "widgets[0].definition.requests[0].apm_stats_query.primary_tag" is equal to "datacenter:us1.prod.dog"
And the response "widgets[0].definition.requests[0].row_type" is equal to "service"
And the response "widgets[0].definition.requests[0].env" is equal to "prod"
And the response "widgets[0].definition.requests[0].service" is equal to "cassandra"
And the response "widgets[0].definition.requests[0].name" is equal to "cassandra.query"

Scenario: Create a new dashboard with formulas and functions scatterplot widget
Given new "CreateDashboard" request
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" }
Expand Down

0 comments on commit 81037ef

Please sign in to comment.