Skip to content

Commit 2290a6f

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
remove flag Beta for cost-by-tag endpoint (#487)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent d1cb7c1 commit 2290a6f

File tree

7 files changed

+10
-41
lines changed

7 files changed

+10
-41
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.977823",
8-
"spec_repo_commit": "f832f43e"
7+
"regenerated": "2025-01-28 19:55:43.694070",
8+
"spec_repo_commit": "a492a6f8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-01-28 14:57:27.993052",
13-
"spec_repo_commit": "f832f43e"
12+
"regenerated": "2025-01-28 19:55:43.709051",
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.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ use datadog_api_client::datadogV2::api_usage_metering::UsageMeteringAPI;
44

55
#[tokio::main]
66
async fn main() {
7-
let mut configuration = datadog::Configuration::new();
8-
configuration.set_unstable_operation_enabled("v2.GetActiveBillingDimensions", true);
7+
let configuration = datadog::Configuration::new();
98
let api = UsageMeteringAPI::with_config(configuration);
109
let resp = api.get_active_billing_dimensions().await;
1110
if let Ok(value) = resp {

examples/v2_usage-metering_GetMonthlyCostAttribution.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ use datadog_api_client::datadogV2::api_usage_metering::UsageMeteringAPI;
66

77
#[tokio::main]
88
async fn main() {
9-
let mut configuration = datadog::Configuration::new();
10-
configuration.set_unstable_operation_enabled("v2.GetMonthlyCostAttribution", true);
9+
let configuration = datadog::Configuration::new();
1110
let api = UsageMeteringAPI::with_config(configuration);
1211
let resp = api
1312
.get_monthly_cost_attribution(

src/datadog/configuration.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ impl Default for Configuration {
142142
("v2.publish_app".to_owned(), false),
143143
("v2.unpublish_app".to_owned(), false),
144144
("v2.update_app".to_owned(), false),
145-
("v2.get_active_billing_dimensions".to_owned(), false),
146-
("v2.get_monthly_cost_attribution".to_owned(), false),
147145
("v2.cancel_data_deletion_request".to_owned(), false),
148146
("v2.create_data_deletion_request".to_owned(), false),
149147
("v2.get_data_deletion_requests".to_owned(), false),

src/datadogV2/api/api_usage_metering.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// This product includes software developed at Datadog (https://www.datadoghq.com/).
33
// Copyright 2019-Present Datadog, Inc.
44
use crate::datadog;
5-
use log::warn;
65
use reqwest::header::{HeaderMap, HeaderValue};
76
use serde::{Deserialize, Serialize};
87

@@ -510,14 +509,6 @@ impl UsageMeteringAPI {
510509
> {
511510
let local_configuration = &self.config;
512511
let operation_id = "v2.get_active_billing_dimensions";
513-
if local_configuration.is_unstable_operation_enabled(operation_id) {
514-
warn!("Using unstable operation {operation_id}");
515-
} else {
516-
let local_error = datadog::UnstableOperationDisabledError {
517-
msg: "Operation 'v2.get_active_billing_dimensions' is not enabled".to_string(),
518-
};
519-
return Err(datadog::Error::UnstableOperationDisabledError(local_error));
520-
}
521512

522513
let local_client = &self.client;
523514

@@ -1416,14 +1407,6 @@ impl UsageMeteringAPI {
14161407
> {
14171408
let local_configuration = &self.config;
14181409
let operation_id = "v2.get_monthly_cost_attribution";
1419-
if local_configuration.is_unstable_operation_enabled(operation_id) {
1420-
warn!("Using unstable operation {operation_id}");
1421-
} else {
1422-
let local_error = datadog::UnstableOperationDisabledError {
1423-
msg: "Operation 'v2.get_monthly_cost_attribution' is not enabled".to_string(),
1424-
};
1425-
return Err(datadog::Error::UnstableOperationDisabledError(local_error));
1426-
}
14271410

14281411
// unbox and build optional parameters
14291412
let end_month = params.end_month;

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