Skip to content

Commit 154b542

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update the summary name for get a tag pipeline ruleset. (#3405)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent b96e12b commit 154b542

File tree

7 files changed

+37
-49
lines changed

7 files changed

+37
-49
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75610,7 +75610,7 @@ paths:
7561075610
appKeyAuth: []
7561175611
- AuthZ:
7561275612
- cloud_cost_management_read
75613-
summary: Get ruleset
75613+
summary: Get a tag pipeline ruleset
7561475614
tags:
7561575615
- Cloud Cost Management
7561675616
patch:

api/datadogV2/api_cloud_cost_management.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ func (a *CloudCostManagementApi) GetCustomCostsFile(ctx _context.Context, fileId
13711371
return localVarReturnValue, localVarHTTPResponse, nil
13721372
}
13731373

1374-
// GetTagPipelinesRuleset Get ruleset.
1374+
// GetTagPipelinesRuleset Get a tag pipeline ruleset.
13751375
// Get a specific tag pipeline ruleset - Retrieve a specific tag pipeline ruleset by its ID
13761376
func (a *CloudCostManagementApi) GetTagPipelinesRuleset(ctx _context.Context, rulesetId string) (RulesetResp, *_nethttp.Response, error) {
13771377
var (

examples/v2/cloud-cost-management/GetTagPipelinesRuleset.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Get ruleset returns "OK" response
1+
// Get a tag pipeline ruleset returns "OK" response
22

33
package main
44

@@ -17,7 +17,7 @@ func main() {
1717
configuration := datadog.NewConfiguration()
1818
apiClient := datadog.NewAPIClient(configuration)
1919
api := datadogV2.NewCloudCostManagementApi(apiClient)
20-
resp, r, err := api.GetTagPipelinesRuleset(ctx, "ruleset_id")
20+
resp, r, err := api.GetTagPipelinesRuleset(ctx, "a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de")
2121

2222
if err != nil {
2323
fmt.Fprintf(os.Stderr, "Error when calling `CloudCostManagementApi.GetTagPipelinesRuleset`: %v\n", err)

examples/v2/cloud-cost-management/GetTagPipelinesRuleset_2339377367.go

Lines changed: 0 additions & 29 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-10-14T20:06:56.512Z
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
interactions:
2+
- request:
3+
body: ''
4+
form: {}
5+
headers:
6+
Accept:
7+
- application/json
8+
id: 0
9+
method: GET
10+
url: https://api.datadoghq.com/api/v2/tags/enrichment/a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de
11+
response:
12+
body: '{"data":{"id":"a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de","type":"ruleset","attributes":{"created":{"seconds":1753803214,"nanos":75009000},"enabled":false,"last_modified_user_uuid":"4acae75b-78ac-11ef-9c0d-e6936f49688e","modified":{"seconds":1753803214,"nanos":75009000},"name":"EVP
13+
Cost Tags","position":1,"processing_status":"done","rules":[{"name":"EVP Cost
14+
Tags","enabled":true,"query":null,"mapping":null,"reference_table":{"table_name":"evp_cost_tags","source_keys":["pod_name"],"field_pairs":[{"input_column":"cost_service","output_key":"cost_service"},{"input_column":"cogs","output_key":"cogs"},{"input_column":"cost_team","output_key":"cost_team"},{"input_column":"cost_product","output_key":"cost_product"},{"input_column":"subscription","output_key":"subscription"},{"input_column":"cost_group","output_key":"cost_group"},{"input_column":"cost_subservice","output_key":"cost_subservice"},{"input_column":"cost_customer","output_key":"cost_customer"},{"input_column":"cost_isolation_id","output_key":"cost_isolation_id"}],"case_insensitivity":false,"if_not_exists":false},"metadata":null},{"name":"Load
15+
balancer runtimecosts-team","enabled":true,"query":{"query":"dd-frontend-service:evp_*
16+
OR dd-frontend-service:logs_*","addition":{"key":"runtimecosts-team","value":"event-platform"},"if_not_exists":true,"case_insensitivity":false},"mapping":null,"reference_table":null,"metadata":null}],"version":3588223}}}'
17+
code: 200
18+
duration: 0ms
19+
headers:
20+
Content-Type:
21+
- application/vnd.api+json
22+
status: 200 OK
23+
version: 2

tests/scenarios/features/v2/cloud_cost_management.feature

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,15 @@ Feature: Cloud Cost Management
262262
When the request is sent
263263
Then the response status is 200 OK
264264

265+
@replay-only @team:DataDog/cloud-cost-management
266+
Scenario: Get a tag pipeline ruleset returns "OK" response
267+
Given new "GetTagPipelinesRuleset" request
268+
And request contains "ruleset_id" parameter with value "a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de"
269+
When the request is sent
270+
Then the response status is 200 OK
271+
And the response "data.type" is equal to "ruleset"
272+
And the response "data.attributes.name" is equal to "EVP Cost Tags"
273+
265274
@replay-only @team:DataDog/cloud-cost-management
266275
Scenario: Get cost AWS CUR config returns "OK" response
267276
Given new "GetCostAWSCURConfig" request
@@ -288,22 +297,6 @@ Feature: Cloud Cost Management
288297
When the request is sent
289298
Then the response status is 200 OK
290299

291-
@generated @skip @team:DataDog/cloud-cost-management
292-
Scenario: Get ruleset returns "OK" response
293-
Given new "GetTagPipelinesRuleset" request
294-
And request contains "ruleset_id" parameter from "REPLACE.ME"
295-
When the request is sent
296-
Then the response status is 200 OK
297-
298-
@replay-only @team:DataDog/cloud-cost-management
299-
Scenario: Get tag pipeline ruleset returns "OK" response
300-
Given new "GetTagPipelinesRuleset" request
301-
And request contains "ruleset_id" parameter with value "ee10c3ff-312f-464c-b4f6-46adaa6d00a1"
302-
When the request is sent
303-
Then the response status is 200 OK
304-
And the response "data.type" is equal to "ruleset"
305-
And the response "data.attributes.name" is equal to "New Ruleset"
306-
307300
@replay-only @team:DataDog/cloud-cost-management
308301
Scenario: List Cloud Cost Management AWS CUR configs returns "OK" response
309302
Given new "ListCostAWSCURConfigs" request

0 commit comments

Comments
 (0)