Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75610,7 +75610,7 @@ paths:
appKeyAuth: []
- AuthZ:
- cloud_cost_management_read
summary: Get ruleset
summary: Get a tag pipeline ruleset
tags:
- Cloud Cost Management
patch:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Get ruleset returns "OK" response
// Get a tag pipeline ruleset returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
Expand All @@ -11,7 +11,8 @@ public static void main(String[] args) {
CloudCostManagementApi apiInstance = new CloudCostManagementApi(defaultClient);

try {
RulesetResp result = apiInstance.getTagPipelinesRuleset("ruleset_id");
RulesetResp result =
apiInstance.getTagPipelinesRuleset("a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de");
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CloudCostManagementApi#getTagPipelinesRuleset");
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2524,7 +2524,7 @@ public ApiResponse<CustomCostsFileGetResponse> getCustomCostsFileWithHttpInfo(St
}

/**
* Get ruleset.
* Get a tag pipeline ruleset.
*
* <p>See {@link #getTagPipelinesRulesetWithHttpInfo}.
*
Expand All @@ -2537,7 +2537,7 @@ public RulesetResp getTagPipelinesRuleset(String rulesetId) throws ApiException
}

/**
* Get ruleset.
* Get a tag pipeline ruleset.
*
* <p>See {@link #getTagPipelinesRulesetWithHttpInfoAsync}.
*
Expand Down Expand Up @@ -2603,7 +2603,7 @@ public ApiResponse<RulesetResp> getTagPipelinesRulesetWithHttpInfo(String rulese
}

/**
* Get ruleset.
* Get a tag pipeline ruleset.
*
* <p>See {@link #getTagPipelinesRulesetWithHttpInfo}.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2025-10-14T20:06:56.512Z
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[
{
"httpRequest": {
"headers": {},
"method": "GET",
"path": "/api/v2/tags/enrichment/a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de",
"keepAlive": false,
"secure": true
},
"httpResponse": {
"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 Cost Tags\",\"position\":1,\"processing_status\":\"done\",\"rules\":[{\"name\":\"EVP Cost 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 balancer runtimecosts-team\",\"enabled\":true,\"query\":{\"query\":\"dd-frontend-service:evp_* 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}}}",
"headers": {
"Content-Type": [
"application/vnd.api+json"
]
},
"statusCode": 200,
"reasonPhrase": "OK"
},
"times": {
"remainingTimes": 1
},
"timeToLive": {
"unlimited": true
},
"id": "d502db10-e146-bbbf-5c75-7d491d382757"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,15 @@ Feature: Cloud Cost Management
When the request is sent
Then the response status is 200 OK

@replay-only @team:DataDog/cloud-cost-management
Scenario: Get a tag pipeline ruleset returns "OK" response
Given new "GetTagPipelinesRuleset" request
And request contains "ruleset_id" parameter with value "a1e9de9b-b88e-41c6-a0cd-cc0ebd7092de"
When the request is sent
Then the response status is 200 OK
And the response "data.type" is equal to "ruleset"
And the response "data.attributes.name" is equal to "EVP Cost Tags"

@replay-only @team:DataDog/cloud-cost-management
Scenario: Get cost AWS CUR config returns "OK" response
Given new "GetCostAWSCURConfig" request
Expand All @@ -288,22 +297,6 @@ Feature: Cloud Cost Management
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get ruleset returns "OK" response
Given new "GetTagPipelinesRuleset" request
And request contains "ruleset_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

@replay-only @team:DataDog/cloud-cost-management
Scenario: Get tag pipeline ruleset returns "OK" response
Given new "GetTagPipelinesRuleset" request
And request contains "ruleset_id" parameter with value "ee10c3ff-312f-464c-b4f6-46adaa6d00a1"
When the request is sent
Then the response status is 200 OK
And the response "data.type" is equal to "ruleset"
And the response "data.attributes.name" is equal to "New Ruleset"

@replay-only @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management AWS CUR configs returns "OK" response
Given new "ListCostAWSCURConfigs" request
Expand Down
Loading