File tree Expand file tree Collapse file tree 6 files changed +6
-20
lines changed
examples/v2/usage-metering
datadog-api-client-common
datadog-api-client-v2/apis Expand file tree Collapse file tree 6 files changed +6
-20
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.6",
7
- "regenerated": "2025-01-22 15:54:14.847003 ",
8
- "spec_repo_commit": "7a8ea4b1 "
7
+ "regenerated": "2025-01-23 20:01:31.168629 ",
8
+ "spec_repo_commit": "f985f8bc "
9
9
},
10
10
"v2": {
11
11
"apigentools_version": "1.6.6",
12
- "regenerated": "2025-01-22 15:54:14.862105 ",
13
- "spec_repo_commit": "7a8ea4b1 "
12
+ "regenerated": "2025-01-23 20:01:31.184080 ",
13
+ "spec_repo_commit": "f985f8bc "
14
14
}
15
15
}
16
16
}
Original file line number Diff line number Diff line change @@ -47793,9 +47793,6 @@ paths:
47793
47793
operator: OR
47794
47794
permissions:
47795
47795
- usage_read
47796
- x-unstable: '**Note**: This endpoint is in Preview.
47797
-
47798
- If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
47799
47796
/api/v2/usage/cost_by_org:
47800
47797
get:
47801
47798
deprecated: true
Original file line number Diff line number Diff line change 5
5
import { client , v2 } from "@datadog/datadog-api-client" ;
6
6
7
7
const configuration = client . createConfiguration ( ) ;
8
- configuration . unstableOperations [ "v2.getBillingDimensionMapping" ] = true ;
9
8
const apiInstance = new v2 . UsageMeteringApi ( configuration ) ;
10
9
11
10
apiInstance
Original file line number Diff line number Diff line change @@ -50,15 +50,13 @@ Feature: Usage Metering
50
50
51
51
@team:DataDog/revenue-query
52
52
Scenario : Get billing dimension mapping for usage endpoints returns "Bad Request" response
53
- Given operation "GetBillingDimensionMapping" enabled
54
- And new "GetBillingDimensionMapping" request
53
+ Given new "GetBillingDimensionMapping" request
55
54
When the request is sent
56
55
Then the response status is 400 Bad Request
57
56
58
57
@skip @team:DataDog/revenue-query
59
58
Scenario : Get billing dimension mapping for usage endpoints returns "OK" response
60
- Given operation "GetBillingDimensionMapping" enabled
61
- And new "GetBillingDimensionMapping" request
59
+ Given new "GetBillingDimensionMapping" request
62
60
When the request is sent
63
61
Then the response status is 200 OK
64
62
Original file line number Diff line number Diff line change @@ -236,7 +236,6 @@ export function createConfiguration(
236
236
"v2.listApps" : false ,
237
237
"v2.updateApp" : false ,
238
238
"v2.getActiveBillingDimensions" : false ,
239
- "v2.getBillingDimensionMapping" : false ,
240
239
"v2.getMonthlyCostAttribution" : false ,
241
240
"v2.cancelDataDeletionRequest" : false ,
242
241
"v2.createDataDeletionRequest" : false ,
Original file line number Diff line number Diff line change @@ -71,13 +71,6 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
71
71
) : Promise < RequestContext > {
72
72
const _config = _options || this . configuration ;
73
73
74
- logger . warn ( "Using unstable operation 'getBillingDimensionMapping'" ) ;
75
- if ( ! _config . unstableOperations [ "v2.getBillingDimensionMapping" ] ) {
76
- throw new Error (
77
- "Unstable operation 'getBillingDimensionMapping' is disabled"
78
- ) ;
79
- }
80
-
81
74
// Path Params
82
75
const localVarPath = "/api/v2/usage/billing_dimension_mapping" ;
83
76
You can’t perform that action at this time.
0 commit comments