File tree Expand file tree Collapse file tree 7 files changed +8
-22
lines changed
examples/v2/usage-metering
datadog-api-client-common
datadog-api-client-v2/apis Expand file tree Collapse file tree 7 files changed +8
-22
lines changed Original file line number Diff line number Diff line change 44 "spec_versions": {
55 "v1": {
66 "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 "
99 },
1010 "v2": {
1111 "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 "
1414 }
1515 }
1616}
Original file line number Diff line number Diff line change @@ -47793,9 +47793,6 @@ paths:
4779347793 operator: OR
4779447794 permissions:
4779547795 - 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/).'
4779947796 /api/v2/usage/cost_by_org:
4780047797 get:
4780147798 deprecated: true
Original file line number Diff line number Diff line change 3232 - name : Compress docs
3333 run : tar czf docs.tar.gz docs
3434
35- - uses : actions/upload-artifact@v3
35+ - uses : actions/upload-artifact@v4
3636 with :
3737 name : documentation
3838 path : docs.tar.gz
4545 - build
4646
4747 steps :
48- - uses : actions/download-artifact@v3
48+ - uses : actions/download-artifact@v4
4949 with :
5050 name : documentation
5151 path : docs
Original file line number Diff line number Diff line change 55import { client , v2 } from "@datadog/datadog-api-client" ;
66
77const configuration = client . createConfiguration ( ) ;
8- configuration . unstableOperations [ "v2.getBillingDimensionMapping" ] = true ;
98const apiInstance = new v2 . UsageMeteringApi ( configuration ) ;
109
1110apiInstance
Original file line number Diff line number Diff line change @@ -50,15 +50,13 @@ Feature: Usage Metering
5050
5151 @team:DataDog/revenue-query
5252 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
5554 When the request is sent
5655 Then the response status is 400 Bad Request
5756
5857 @skip @team:DataDog/revenue-query
5958 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
6260 When the request is sent
6361 Then the response status is 200 OK
6462
Original file line number Diff line number Diff line change @@ -236,7 +236,6 @@ export function createConfiguration(
236236 "v2.listApps" : false ,
237237 "v2.updateApp" : false ,
238238 "v2.getActiveBillingDimensions" : false ,
239- "v2.getBillingDimensionMapping" : false ,
240239 "v2.getMonthlyCostAttribution" : false ,
241240 "v2.cancelDataDeletionRequest" : false ,
242241 "v2.createDataDeletionRequest" : false ,
Original file line number Diff line number Diff line change @@ -71,13 +71,6 @@ export class UsageMeteringApiRequestFactory extends BaseAPIRequestFactory {
7171 ) : Promise < RequestContext > {
7272 const _config = _options || this . configuration ;
7373
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-
8174 // Path Params
8275 const localVarPath = "/api/v2/usage/billing_dimension_mapping" ;
8376
You can’t perform that action at this time.
0 commit comments