Skip to content

Commit ecbda2c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
remove flag Beta for cost-by-tag endpoint (#2679)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 2a3a7e2 commit ecbda2c

File tree

7 files changed

+8
-58
lines changed

7 files changed

+8
-58
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.6",
7-
"regenerated": "2025-01-28 14:57:27.800529",
8-
"spec_repo_commit": "f832f43e"
7+
"regenerated": "2025-01-28 19:55:43.031851",
8+
"spec_repo_commit": "a492a6f8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-28 14:57:27.815886",
13-
"spec_repo_commit": "f832f43e"
12+
"regenerated": "2025-01-28 19:55:43.047325",
13+
"spec_repo_commit": "a492a6f8"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34557,9 +34557,6 @@ paths:
3455734557
operator: OR
3455834558
permissions:
3455934559
- usage_read
34560-
x-unstable: '**Note**: This endpoint is in public beta.
34561-
34562-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
3456334560
/api/v2/cost_by_tag/monthly_cost_attribution:
3456434561
get:
3456534562
description: "Get monthly cost attribution by tag across multi-org and single
@@ -34685,9 +34682,6 @@ paths:
3468534682
operator: OR
3468634683
permissions:
3468734684
- usage_read
34688-
x-unstable: '**Note**: This endpoint is in public beta.
34689-
34690-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
3469134685
/api/v2/csm/onboarding/agents:
3469234686
get:
3469334687
description: Get the list of all CSM Agents running on your hosts and containers.

examples/v2/usage-metering/GetActiveBillingDimensions.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
public class Example {
99
public static void main(String[] args) {
1010
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11-
defaultClient.setUnstableOperationEnabled("v2.getActiveBillingDimensions", true);
1211
UsageMeteringApi apiInstance = new UsageMeteringApi(defaultClient);
1312

1413
try {

examples/v2/usage-metering/GetMonthlyCostAttribution.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
public class Example {
1010
public static void main(String[] args) {
1111
ApiClient defaultClient = ApiClient.getDefaultApiClient();
12-
defaultClient.setUnstableOperationEnabled("v2.getMonthlyCostAttribution", true);
1312
UsageMeteringApi apiInstance = new UsageMeteringApi(defaultClient);
1413

1514
try {

src/main/java/com/datadog/api/client/ApiClient.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,6 @@ public class ApiClient {
380380
put("v2.publishApp", false);
381381
put("v2.unpublishApp", false);
382382
put("v2.updateApp", false);
383-
put("v2.getActiveBillingDimensions", false);
384-
put("v2.getMonthlyCostAttribution", false);
385383
put("v2.cancelDataDeletionRequest", false);
386384
put("v2.createDataDeletionRequest", false);
387385
put("v2.getDataDeletionRequests", false);

src/main/java/com/datadog/api/client/v2/api/UsageMeteringApi.java

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,6 @@ public CompletableFuture<ActiveBillingDimensionsResponse> getActiveBillingDimens
9999
*/
100100
public ApiResponse<ActiveBillingDimensionsResponse> getActiveBillingDimensionsWithHttpInfo()
101101
throws ApiException {
102-
// Check if unstable operation is enabled
103-
String operationId = "getActiveBillingDimensions";
104-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
105-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
106-
} else {
107-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
108-
}
109102
Object localVarPostBody = null;
110103
// create path and map variables
111104
String localVarPath = "/api/v2/cost_by_tag/active_billing_dimensions";
@@ -141,17 +134,6 @@ public ApiResponse<ActiveBillingDimensionsResponse> getActiveBillingDimensionsWi
141134
*/
142135
public CompletableFuture<ApiResponse<ActiveBillingDimensionsResponse>>
143136
getActiveBillingDimensionsWithHttpInfoAsync() {
144-
// Check if unstable operation is enabled
145-
String operationId = "getActiveBillingDimensions";
146-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
147-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
148-
} else {
149-
CompletableFuture<ApiResponse<ActiveBillingDimensionsResponse>> result =
150-
new CompletableFuture<>();
151-
result.completeExceptionally(
152-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
153-
return result;
154-
}
155137
Object localVarPostBody = null;
156138
// create path and map variables
157139
String localVarPath = "/api/v2/cost_by_tag/active_billing_dimensions";
@@ -1841,13 +1823,6 @@ public ApiResponse<MonthlyCostAttributionResponse> getMonthlyCostAttributionWith
18411823
String fields,
18421824
GetMonthlyCostAttributionOptionalParameters parameters)
18431825
throws ApiException {
1844-
// Check if unstable operation is enabled
1845-
String operationId = "getMonthlyCostAttribution";
1846-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
1847-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
1848-
} else {
1849-
throw new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId));
1850-
}
18511826
Object localVarPostBody = null;
18521827

18531828
// verify the required parameter 'startMonth' is set
@@ -1931,17 +1906,6 @@ public ApiResponse<MonthlyCostAttributionResponse> getMonthlyCostAttributionWith
19311906
OffsetDateTime startMonth,
19321907
String fields,
19331908
GetMonthlyCostAttributionOptionalParameters parameters) {
1934-
// Check if unstable operation is enabled
1935-
String operationId = "getMonthlyCostAttribution";
1936-
if (apiClient.isUnstableOperationEnabled("v2." + operationId)) {
1937-
apiClient.getLogger().warning(String.format("Using unstable operation '%s'", operationId));
1938-
} else {
1939-
CompletableFuture<ApiResponse<MonthlyCostAttributionResponse>> result =
1940-
new CompletableFuture<>();
1941-
result.completeExceptionally(
1942-
new ApiException(0, String.format("Unstable operation '%s' is disabled", operationId)));
1943-
return result;
1944-
}
19451909
Object localVarPostBody = null;
19461910

19471911
// verify the required parameter 'startMonth' is set

src/test/resources/com/datadog/api/client/v2/api/usage_metering.feature

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ Feature: Usage Metering
1616

1717
@replay-only @team:DataDog/revenue-query
1818
Scenario: Get Monthly Cost Attribution returns "Bad Request" response
19-
Given operation "GetMonthlyCostAttribution" enabled
20-
And new "GetMonthlyCostAttribution" request
19+
Given new "GetMonthlyCostAttribution" request
2120
And request contains "start_month" parameter with value "{{ timeISO('now - 5d') }}"
2221
And request contains "fields" parameter with value "not_a_product"
2322
And request contains "end_month" parameter with value "{{ timeISO('now - 3d') }}"
@@ -26,8 +25,7 @@ Feature: Usage Metering
2625

2726
@replay-only @team:DataDog/revenue-query
2827
Scenario: Get Monthly Cost Attribution returns "OK" response
29-
Given operation "GetMonthlyCostAttribution" enabled
30-
And new "GetMonthlyCostAttribution" request
28+
Given new "GetMonthlyCostAttribution" request
3129
And request contains "start_month" parameter with value "{{ timeISO('now - 5d') }}"
3230
And request contains "fields" parameter with value "infra_host_total_cost"
3331
And request contains "end_month" parameter with value "{{ timeISO('now - 3d') }}"
@@ -36,15 +34,13 @@ Feature: Usage Metering
3634

3735
@generated @skip @team:DataDog/revenue-query
3836
Scenario: Get active billing dimensions for cost attribution returns "Bad Request" response
39-
Given operation "GetActiveBillingDimensions" enabled
40-
And new "GetActiveBillingDimensions" request
37+
Given new "GetActiveBillingDimensions" request
4138
When the request is sent
4239
Then the response status is 400 Bad Request
4340

4441
@team:DataDog/revenue-query
4542
Scenario: Get active billing dimensions for cost attribution returns "OK" response
46-
Given operation "GetActiveBillingDimensions" enabled
47-
And new "GetActiveBillingDimensions" request
43+
Given new "GetActiveBillingDimensions" request
4844
When the request is sent
4945
Then the response status is 200 OK
5046

0 commit comments

Comments
 (0)