Skip to content

Commit 6bec3d5

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update description, operationId and examples for tag pipeline and custom allocation rules (#2878)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 2691591 commit 6bec3d5

File tree

57 files changed

+1379
-988
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1379
-988
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 293 additions & 41 deletions
Large diffs are not rendered by default.

cassettes/v2/Cloud-Cost-Management_4135329986/Create-arbitrary-cost-rule-returns-OK-response_455549064/frozen.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-10-08T19:31:23.072Z"
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"log": {
3-
"_recordingName": "Cloud Cost Management/Update arbitrary cost rule returns \"OK\" response",
3+
"_recordingName": "Cloud Cost Management/Create custom allocation rule returns \"OK\" response",
44
"creator": {
55
"comment": "persister:fs",
66
"name": "Polly.JS",
77
"version": "6.0.5"
88
},
99
"entries": [
1010
{
11-
"_id": "a8cb74f5a06190da82019079a314b320",
11+
"_id": "9d41f4966e72bfbbfc5e2e7c5f3e870b",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 613,
15+
"bodySize": 589,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -26,23 +26,23 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 580,
29+
"headersSize": 578,
3030
"httpVersion": "HTTP/1.1",
31-
"method": "PATCH",
31+
"method": "POST",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"costs_to_allocate\":[{\"condition\":\"is\",\"tag\":\"account_id\",\"value\":\"123456789\",\"values\":[]},{\"condition\":\"in\",\"tag\":\"environment\",\"value\":\"\",\"values\":[\"production\",\"staging\"]}],\"enabled\":true,\"order_id\":1,\"provider\":[\"aws\",\"gcp\"],\"rule_name\":\"example-arbitrary-cost-rule\",\"strategy\":{\"allocated_by_tag_keys\":[\"team\",\"environment\"],\"based_on_costs\":[{\"condition\":\"is\",\"tag\":\"service\",\"value\":\"web-api\",\"values\":[]},{\"condition\":\"not in\",\"tag\":\"team\",\"value\":\"\",\"values\":[\"legacy\",\"deprecated\"]}],\"granularity\":\"daily\",\"method\":\"proportional\"},\"type\":\"shared\"},\"type\":\"upsert_arbitrary_rule\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"costs_to_allocate\":[{\"condition\":\"is\",\"tag\":\"account_id\",\"value\":\"123456789\"},{\"condition\":\"in\",\"tag\":\"environment\",\"value\":\"\",\"values\":[\"production\",\"staging\"]}],\"enabled\":true,\"order_id\":1,\"provider\":[\"aws\",\"gcp\"],\"rule_name\":\"example-arbitrary-cost-rule\",\"strategy\":{\"allocated_by_tag_keys\":[\"team\",\"environment\"],\"based_on_costs\":[{\"condition\":\"is\",\"tag\":\"service\",\"value\":\"web-api\"},{\"condition\":\"not in\",\"tag\":\"team\",\"value\":\"\",\"values\":[\"legacy\",\"deprecated\"]}],\"granularity\":\"daily\",\"method\":\"proportional\"},\"type\":\"shared\"},\"type\":\"upsert_arbitrary_rule\"}}"
3636
},
3737
"queryString": [],
38-
"url": "https://api.datadoghq.com/api/v2/cost/arbitrary_rule/123456"
38+
"url": "https://api.datadoghq.com/api/v2/cost/arbitrary_rule"
3939
},
4040
"response": {
41-
"bodySize": 778,
41+
"bodySize": 784,
4242
"content": {
4343
"mimeType": "application/vnd.api+json",
44-
"size": 778,
45-
"text": "{\"data\":{\"id\":\"123456\",\"type\":\"arbitrary_rule\",\"attributes\":{\"costs_to_allocate\":[{\"tag\":\"account_id\",\"condition\":\"is\",\"value\":\"123456789\",\"values\":null},{\"tag\":\"environment\",\"condition\":\"in\",\"value\":\"\",\"values\":[\"production\",\"staging\"]}],\"created\":\"2025-09-11T20:59:19.952563Z\",\"enabled\":true,\"last_modified_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"order_id\":1,\"provider\":[\"aws\",\"gcp\"],\"rule_name\":\"example-arbitrary-cost-rule\",\"strategy\":{\"method\":\"proportional\",\"granularity\":\"daily\",\"based_on_costs\":[{\"tag\":\"service\",\"condition\":\"is\",\"value\":\"web-api\",\"values\":null},{\"tag\":\"team\",\"condition\":\"not in\",\"value\":\"\",\"values\":[\"legacy\",\"deprecated\"]}],\"allocated_by_tag_keys\":[\"team\",\"environment\"]},\"type\":\"shared\",\"updated\":\"2025-09-11T21:00:21.353162Z\",\"version\":1}}}"
44+
"size": 784,
45+
"text": "{\"data\":{\"id\":\"683\",\"type\":\"arbitrary_rule\",\"attributes\":{\"costs_to_allocate\":[{\"tag\":\"account_id\",\"condition\":\"is\",\"value\":\"123456789\",\"values\":null},{\"tag\":\"environment\",\"condition\":\"in\",\"value\":\"\",\"values\":[\"production\",\"staging\"]}],\"created\":\"2025-10-08T19:31:23.246204745Z\",\"enabled\":true,\"last_modified_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"order_id\":1,\"provider\":[\"aws\",\"gcp\"],\"rule_name\":\"example-arbitrary-cost-rule\",\"strategy\":{\"method\":\"proportional\",\"granularity\":\"daily\",\"based_on_costs\":[{\"tag\":\"service\",\"condition\":\"is\",\"value\":\"web-api\",\"values\":null},{\"tag\":\"team\",\"condition\":\"not in\",\"value\":\"\",\"values\":[\"legacy\",\"deprecated\"]}],\"allocated_by_tag_keys\":[\"team\",\"environment\"]},\"type\":\"shared\",\"updated\":\"2025-10-08T19:31:23.246204745Z\",\"version\":1}}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,8 +57,8 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2025-09-11T21:00:21.181Z",
61-
"time": 197
60+
"startedDateTime": "2025-10-08T19:31:23.076Z",
61+
"time": 184
6262
}
6363
],
6464
"pages": [],

cassettes/v2/Cloud-Cost-Management_4135329986/Create-ruleset-returns-OK-response_3066478825/frozen.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-10-08T18:26:06.563Z"
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"log": {
3-
"_recordingName": "Cloud Cost Management/Create ruleset returns \"OK\" response",
3+
"_recordingName": "Cloud Cost Management/Create tag pipeline ruleset returns \"OK\" response",
44
"creator": {
55
"comment": "persister:fs",
66
"name": "Polly.JS",
@@ -26,7 +26,7 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 563,
29+
"headersSize": 575,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
@@ -42,7 +42,7 @@
4242
"content": {
4343
"mimeType": "application/vnd.api+json",
4444
"size": 603,
45-
"text": "{\"data\":{\"id\":\"1b680ec0-8e29-4b79-bb01-45f0c645a789\",\"type\":\"ruleset\",\"attributes\":{\"created\":{\"seconds\":1758041403,\"nanos\":117388000},\"enabled\":true,\"last_modified_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"modified\":{\"seconds\":1758041403,\"nanos\":117388000},\"name\":\"New Ruleset\",\"position\":1,\"rules\":[{\"name\":\"Add Cost Center Tag\",\"enabled\":true,\"query\":{\"query\":\"account_id:\\\"123456789\\\" AND service:\\\"web-api\\\"\",\"addition\":{\"key\":\"cost_center\",\"value\":\"engineering\"},\"if_not_exists\":true,\"case_insensitivity\":false},\"mapping\":null,\"reference_table\":null,\"metadata\":null}],\"version\":3603412}}}"
45+
"text": "{\"data\":{\"id\":\"ee10c3ff-312f-464c-b4f6-46adaa6d00a1\",\"type\":\"ruleset\",\"attributes\":{\"created\":{\"seconds\":1759947966,\"nanos\":679638000},\"enabled\":true,\"last_modified_user_uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"modified\":{\"seconds\":1759947966,\"nanos\":679638000},\"name\":\"New Ruleset\",\"position\":1,\"rules\":[{\"name\":\"Add Cost Center Tag\",\"enabled\":true,\"query\":{\"query\":\"account_id:\\\"123456789\\\" AND service:\\\"web-api\\\"\",\"addition\":{\"key\":\"cost_center\",\"value\":\"engineering\"},\"if_not_exists\":true,\"case_insensitivity\":false},\"mapping\":null,\"reference_table\":null,\"metadata\":null}],\"version\":3611102}}}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,8 +57,8 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2025-09-16T16:51:02.189Z",
61-
"time": 170
60+
"startedDateTime": "2025-10-08T18:26:06.567Z",
61+
"time": 149
6262
}
6363
],
6464
"pages": [],

cassettes/v2/Cloud-Cost-Management_4135329986/Delete-arbitrary-cost-rule-returns-No-Content-response_1882772635/frozen.json

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2025-10-08T19:35:19.003Z"
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"log": {
3-
"_recordingName": "Cloud Cost Management/Delete arbitrary cost rule returns \"No Content\" response",
3+
"_recordingName": "Cloud Cost Management/Delete custom allocation rule returns \"No Content\" response",
44
"creator": {
55
"comment": "persister:fs",
66
"name": "Polly.JS",
77
"version": "6.0.5"
88
},
99
"entries": [
1010
{
11-
"_id": "fe56610784550285b6372c39e2b6b8f5",
11+
"_id": "e708aa988ed30e2a1632c4f0fad22620",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
@@ -21,11 +21,11 @@
2121
"value": "*/*"
2222
}
2323
],
24-
"headersSize": 515,
24+
"headersSize": 520,
2525
"httpVersion": "HTTP/1.1",
2626
"method": "DELETE",
2727
"queryString": [],
28-
"url": "https://api.datadoghq.com/api/v2/cost/arbitrary_rule/123456"
28+
"url": "https://api.datadoghq.com/api/v2/cost/arbitrary_rule/683"
2929
},
3030
"response": {
3131
"bodySize": 0,
@@ -41,8 +41,8 @@
4141
"status": 204,
4242
"statusText": "No Content"
4343
},
44-
"startedDateTime": "2025-09-11T21:01:36.424Z",
45-
"time": 189
44+
"startedDateTime": "2025-10-08T19:35:19.008Z",
45+
"time": 233
4646
}
4747
],
4848
"pages": [],

0 commit comments

Comments
 (0)