-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate client from commit 0d8ff1a3 of spec repo
- Loading branch information
ci.datadog-api-spec
committed
May 2, 2022
1 parent
0adf9bf
commit 69fd25e
Showing
16 changed files
with
306 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
examples/v2/usage-metering/GetUsageApplicationSecurityMonitoring.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
""" | ||
Get hourly usage for Application Security returns "OK" response | ||
""" | ||
|
||
from datetime import datetime | ||
from dateutil.relativedelta import relativedelta | ||
from datadog_api_client.v2 import ApiClient, Configuration | ||
from datadog_api_client.v2.api.usage_metering_api import UsageMeteringApi | ||
|
||
configuration = Configuration() | ||
with ApiClient(configuration) as api_client: | ||
api_instance = UsageMeteringApi(api_client) | ||
response = api_instance.get_usage_application_security_monitoring( | ||
start_hr=(datetime.now() + relativedelta(days=-5)).isoformat(timespec="seconds"), | ||
end_hr=(datetime.now() + relativedelta(days=-3)).isoformat(timespec="seconds"), | ||
) | ||
|
||
print(response) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
src/datadog_api_client/v2/model/usage_application_security_monitoring_response.py
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
tests/v2/cassettes/test_scenarios/test_aggregate_rum_events_returns_ok_response.frozen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2022-03-29T08:59:44.790Z | ||
2022-03-28T15:06:36.041Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...narios/test_get_hourly_usage_for_application_security_returns_bad_request_response.frozen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2022-05-02T16:40:49.302Z |
20 changes: 20 additions & 0 deletions
20
...cenarios/test_get_hourly_usage_for_application_security_returns_bad_request_response.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
interactions: | ||
- request: | ||
body: null | ||
headers: | ||
accept: | ||
- application/json;datetime-format=rfc3339 | ||
method: GET | ||
uri: https://api.datadoghq.com/api/v2/usage/application_security?start_hr=2022-04-29T16%3A40%3A49.302Z&end_hr=2022-04-27T16%3A40%3A49.302Z | ||
response: | ||
body: | ||
string: '{"errors":["start_hr [YYYY-MM-DDThh] must be before end_hr [YYYY-MM-DDThh]"]} | ||
' | ||
headers: | ||
content-type: | ||
- application/json | ||
status: | ||
code: 400 | ||
message: Bad Request | ||
version: 1 |
1 change: 1 addition & 0 deletions
1
.../test_scenarios/test_get_hourly_usage_for_application_security_returns_ok_response.frozen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2022-05-02T16:40:49.556Z |
Oops, something went wrong.