Skip to content

Commit 4aa6b9f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update historical cost example date (#1249)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 607a713 commit 4aa6b9f

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
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.4",
7-
"regenerated": "2022-11-21 20:01:47.849955",
8-
"spec_repo_commit": "4ca2c235"
7+
"regenerated": "2022-11-21 22:06:54.048077",
8+
"spec_repo_commit": "19da6428"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-11-21 20:01:47.861729",
13-
"spec_repo_commit": "4ca2c235"
12+
"regenerated": "2022-11-21 22:06:54.059529",
13+
"spec_repo_commit": "19da6428"
1414
}
1515
}
1616
}

examples/v2/usage-metering/GetHistoricalCostByOrg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
api_instance = UsageMeteringApi(api_client)
1313
response = api_instance.get_historical_cost_by_org(
1414
view="sub-org",
15-
start_month=(datetime.now() + relativedelta(minutes=-1)),
15+
start_month=(datetime.now() + relativedelta(months=-2)),
1616
)
1717

1818
print(response)
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-09-26T15:25:36.139Z
1+
2022-11-21T21:58:43.871Z

tests/v2/cassettes/test_scenarios/test_get_historical_cost_across_your_account_returns_ok_response.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ interactions:
55
accept:
66
- application/json;datetime-format=rfc3339
77
method: GET
8-
uri: https://api.datadoghq.com/api/v2/usage/historical_cost?start_month=2022-09-26T15%3A24%3A36.139Z&view=sub-org
8+
uri: https://api.datadoghq.com/api/v2/usage/historical_cost?start_month=2022-09-21T21%3A58%3A43.871Z&view=sub-org
99
response:
1010
body:
1111
string: '{"data":[]}

tests/v2/features/usage_metering.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Feature: Usage Metering
5050
@replay-only @team:DataDog/red-zone-revenue-query
5151
Scenario: Get historical cost across your account returns "OK" response
5252
Given new "GetHistoricalCostByOrg" request
53-
And request contains "start_month" parameter with value "{{ timeISO('now - 1m') }}"
53+
And request contains "start_month" parameter with value "{{ timeISO('now - 2M') }}"
5454
And request contains "view" parameter with value "sub-org"
5555
When the request is sent
5656
Then the response status is 200 OK

0 commit comments

Comments
 (0)