File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed
cassettes/v2/Usage-Metering_938753175/Get-historical-cost-across-your-account-returns-OK-response_457581091
examples/v2/usage-metering Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 4
4
"spec_versions": {
5
5
"v1": {
6
6
"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 "
9
9
},
10
10
"v2": {
11
11
"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 "
14
14
}
15
15
}
16
16
}
Original file line number Diff line number Diff line change 1
- " 2022-09-26T15:25:36.139Z "
1
+ " 2022-11-21T21:58:43.871Z "
Original file line number Diff line number Diff line change 8
8
},
9
9
"entries" : [
10
10
{
11
- "_id" : " 14a2f32aa94f0a5e97568a925f25104b " ,
11
+ "_id" : " 00e64e126be35886239cdf1fc03b27af " ,
12
12
"_order" : 0 ,
13
13
"cache" : {},
14
14
"request" : {
27
27
"queryString" : [
28
28
{
29
29
"name" : " start_month" ,
30
- "value" : " 2022-09-26T15:24:36.139Z "
30
+ "value" : " 2022-09-21T21:58:43.871Z "
31
31
},
32
32
{
33
33
"name" : " view" ,
34
34
"value" : " sub-org"
35
35
}
36
36
],
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"
38
38
},
39
39
"response" : {
40
40
"bodySize" : 12 ,
50
50
"value" : " application/json"
51
51
}
52
52
],
53
- "headersSize" : 603 ,
53
+ "headersSize" : 622 ,
54
54
"httpVersion" : " HTTP/1.1" ,
55
55
"redirectURL" : " " ,
56
56
"status" : 200 ,
57
57
"statusText" : " OK"
58
58
},
59
- "startedDateTime" : " 2022-09-26T15:25:36.148Z " ,
60
- "time" : 290
59
+ "startedDateTime" : " 2022-11-21T21:58:43.881Z " ,
60
+ "time" : 142
61
61
}
62
62
],
63
63
"pages" : [],
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const apiInstance = new v2.UsageMeteringApi(configuration);
9
9
10
10
const params : v2 . UsageMeteringApiGetHistoricalCostByOrgRequest = {
11
11
view : "sub-org" ,
12
- startMonth : new Date ( new Date ( ) . getTime ( ) + - 1 * 60 * 1000 ) ,
12
+ startMonth : new Date ( new Date ( ) . getTime ( ) + - 2 * 86400 * 30 * 1000 ) ,
13
13
} ;
14
14
15
15
apiInstance
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ Feature: Usage Metering
50
50
@replay-only @team:DataDog/red-zone-revenue-query
51
51
Scenario : Get historical cost across your account returns "OK" response
52
52
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 ') }}"
54
54
And request contains "view" parameter with value "sub-org"
55
55
When the request is sent
56
56
Then the response status is 200 OK
You can’t perform that action at this time.
0 commit comments