Skip to content

Commit c2f8ec1

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

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
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:55.034154",
8-
"spec_repo_commit": "4ca2c235"
7+
"regenerated": "2022-11-21 22:06:53.798849",
8+
"spec_repo_commit": "19da6428"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-11-21 20:01:55.048203",
13-
"spec_repo_commit": "4ca2c235"
12+
"regenerated": "2022-11-21 22:06:53.813550",
13+
"spec_repo_commit": "19da6428"
1414
}
1515
}
1616
}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-09-26T15:25:36.139Z"
1+
"2022-11-21T21:58:43.871Z"

cassettes/v2/Usage-Metering_938753175/Get-historical-cost-across-your-account-returns-OK-response_457581091/recording.har

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"entries": [
1010
{
11-
"_id": "14a2f32aa94f0a5e97568a925f25104b",
11+
"_id": "00e64e126be35886239cdf1fc03b27af",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -27,14 +27,14 @@
2727
"queryString": [
2828
{
2929
"name": "start_month",
30-
"value": "2022-09-26T15:24:36.139Z"
30+
"value": "2022-09-21T21:58:43.871Z"
3131
},
3232
{
3333
"name": "view",
3434
"value": "sub-org"
3535
}
3636
],
37-
"url": "https://api.datadoghq.com/api/v2/usage/historical_cost?start_month=2022-09-26T15%3A24%3A36.139Z&view=sub-org"
37+
"url": "https://api.datadoghq.com/api/v2/usage/historical_cost?start_month=2022-09-21T21%3A58%3A43.871Z&view=sub-org"
3838
},
3939
"response": {
4040
"bodySize": 12,
@@ -50,14 +50,14 @@
5050
"value": "application/json"
5151
}
5252
],
53-
"headersSize": 603,
53+
"headersSize": 622,
5454
"httpVersion": "HTTP/1.1",
5555
"redirectURL": "",
5656
"status": 200,
5757
"statusText": "OK"
5858
},
59-
"startedDateTime": "2022-09-26T15:25:36.148Z",
60-
"time": 290
59+
"startedDateTime": "2022-11-21T21:58:43.881Z",
60+
"time": 142
6161
}
6262
],
6363
"pages": [],

examples/v2/usage-metering/GetHistoricalCostByOrg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const apiInstance = new v2.UsageMeteringApi(configuration);
99

1010
const params: v2.UsageMeteringApiGetHistoricalCostByOrgRequest = {
1111
view: "sub-org",
12-
startMonth: new Date(new Date().getTime() + -1 * 60 * 1000),
12+
startMonth: new Date(new Date().getTime() + -2 * 86400 * 30 * 1000),
1313
};
1414

1515
apiInstance

features/v2/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)