-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathcloud_cost_management.feature
More file actions
894 lines (782 loc) · 48.5 KB
/
Copy pathcloud_cost_management.feature
File metadata and controls
894 lines (782 loc) · 48.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
@endpoint(cloud-cost-management) @endpoint(cloud-cost-management-v2)
Feature: Cloud Cost Management
The Cloud Cost Management API allows you to set up, edit, and delete Cloud
Cost Management accounts for AWS, Azure, and Google Cloud. You can query
your cost data by using the [Metrics
endpoint](https://docs.datadoghq.com/api/latest/metrics/#query-timeseries-
data-across-multiple-products) and the `cloud_cost` data source. For more
information, see the [Cloud Cost Management
documentation](https://docs.datadoghq.com/cloud_cost_management/).
Background:
Given a valid "apiKeyAuth" key in the system
And a valid "appKeyAuth" key in the system
And an instance of "CloudCostManagement" API
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Create Cloud Cost Management AWS CUR config returns "Bad Request" response
Given new "CreateCostAWSCURConfig" request
And body with value {"data": {"attributes": {"account_filters": {"excluded_accounts": ["123456789123", "123456789143"], "include_new_accounts": true, "included_accounts": ["123456789123", "123456789143"]}, "account_id": "123456789123", "bucket_name": "dd-cost-bucket", "bucket_region": "us-east-1", "report_name": "dd-report-name", "report_prefix": "dd-report-prefix"}, "type": "aws_cur_config_post_request"}}
When the request is sent
Then the response status is 400 Bad Request
@replay-only @team:DataDog/cloud-cost-management
Scenario: Create Cloud Cost Management AWS CUR config returns "OK" response
Given new "CreateCostAWSCURConfig" request
And body with value {"data": {"attributes": {"account_id": "123456789123", "bucket_name": "dd-cost-bucket", "bucket_region": "us-east-1", "report_name": "dd-report-name", "report_prefix": "dd-report-prefix"}, "type": "aws_cur_config_post_request"}}
When the request is sent
Then the response status is 200 OK
And the response "data.attributes.account_id" is equal to "123456789123"
@team:DataDog/cloud-cost-management
Scenario: Create Cloud Cost Management Azure configs returns "Bad Request" response
Given new "CreateCostAzureUCConfigs" request
And body with value {"data": {"attributes": {"account_id": "1234abcd-1234-abcd-1234-1234abcd1234", "actual_bill_config": {"export_name": "dd-actual-export", "export_path": "dd-export-path", "storage_account": "dd-storage-account", "storage_container": "dd-storage-container"}, "amortized_bill_config": {"export_name": "dd-actual-export", "export_path": "dd-export-path", "storage_account": "dd-storage-account", "storage_container": "dd-storage-container"}, "client_id": "1234abcd-1234-abcd-1234-1234abcd1234", "scope": "this_is_an_invalid_scope"}, "type": "azure_uc_config_post_request"}}
When the request is sent
Then the response status is 400 Bad Request
@replay-only @team:DataDog/cloud-cost-management
Scenario: Create Cloud Cost Management Azure configs returns "OK" response
Given new "CreateCostAzureUCConfigs" request
And body with value {"data": {"attributes": {"account_id": "1234abcd-1234-abcd-1234-1234abcd1234", "actual_bill_config": {"export_name": "dd-actual-export", "export_path": "dd-export-path", "storage_account": "dd-storage-account", "storage_container": "dd-storage-container"}, "amortized_bill_config": {"export_name": "dd-actual-export", "export_path": "dd-export-path", "storage_account": "dd-storage-account", "storage_container": "dd-storage-container"}, "client_id": "1234abcd-1234-abcd-1234-1234abcd1234", "scope": "subscriptions/1234abcd-1234-abcd-1234-1234abcd1234"}, "type": "azure_uc_config_post_request"}}
When the request is sent
Then the response status is 200 OK
And the response "data.attributes.configs[0].account_id" is equal to "1234abcd-1234-abcd-1234-1234abcd1234"
@team:DataDog/cloud-cost-management
Scenario: Create Google Cloud Usage Cost config returns "Bad Request" response
Given new "CreateCostGCPUsageCostConfig" request
And body with value {"data": {"attributes": {"billing_account_id": "123456_A123BC_12AB34", "bucket_name": "dd-cost-bucket", "export_dataset_name": "billing", "export_prefix": "datadog_cloud_cost_usage_export", "export_project_name": "dd-cloud-cost-report", "service_account": "InvalidServiceAccount"}, "type": "gcp_uc_config_post_request"}}
When the request is sent
Then the response status is 400 Bad Request
@replay-only @team:DataDog/cloud-cost-management
Scenario: Create Google Cloud Usage Cost config returns "OK" response
Given new "CreateCostGCPUsageCostConfig" request
And body with value {"data": {"attributes": {"billing_account_id": "123456_A123BC_12AB34", "bucket_name": "dd-cost-bucket", "export_dataset_name": "billing", "export_prefix": "datadog_cloud_cost_usage_export", "export_project_name": "dd-cloud-cost-report", "service_account": "dd-ccm-gcp-integration@my-environment.iam.gserviceaccount.com"}, "type": "gcp_uc_config_post_request"}}
When the request is sent
Then the response status is 200 OK
And the response "data.attributes.account_id" is equal to "123456_A123BC_12AB34"
@replay-only @team:DataDog/cloud-cost-management
Scenario: Create custom allocation rule returns "OK" response
Given new "CreateCustomAllocationRule" request
And body with value {"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"}}
When the request is sent
Then the response status is 200 OK
And the response "data.type" is equal to "arbitrary_rule"
And the response "data.attributes.rule_name" is equal to "example-arbitrary-cost-rule"
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Create or update a budget returns "Bad Request" response
Given new "UpsertBudget" request
And body with value {"data": {"attributes": {"created_at": 1738258683590, "created_by": "00000000-0a0a-0a0a-aaa0-00000000000a", "end_month": 202502, "entries": [{"tag_filters": [{}]}], "metrics_query": "aws.cost.amortized{service:ec2} by {service}", "name": "my budget", "org_id": 123, "start_month": 202501, "total_amount": 1000, "updated_at": 1738258683590, "updated_by": "00000000-0a0a-0a0a-aaa0-00000000000a"}, "id": "00000000-0a0a-0a0a-aaa0-00000000000a", "type": ""}}
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Create or update a budget returns "Not Found" response
Given new "UpsertBudget" request
And body with value {"data": {"attributes": {"created_at": 1738258683590, "created_by": "00000000-0a0a-0a0a-aaa0-00000000000a", "end_month": 202502, "entries": [{"tag_filters": [{}]}], "metrics_query": "aws.cost.amortized{service:ec2} by {service}", "name": "my budget", "org_id": 123, "start_month": 202501, "total_amount": 1000, "updated_at": 1738258683590, "updated_by": "00000000-0a0a-0a0a-aaa0-00000000000a"}, "id": "00000000-0a0a-0a0a-aaa0-00000000000a", "type": ""}}
When the request is sent
Then the response status is 404 Not Found
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Create or update a budget returns "OK" response
Given new "UpsertBudget" request
And body with value {"data": {"attributes": {"created_at": 1738258683590, "created_by": "00000000-0a0a-0a0a-aaa0-00000000000a", "end_month": 202502, "entries": [{"tag_filters": [{}]}], "metrics_query": "aws.cost.amortized{service:ec2} by {service}", "name": "my budget", "org_id": 123, "start_month": 202501, "total_amount": 1000, "updated_at": 1738258683590, "updated_by": "00000000-0a0a-0a0a-aaa0-00000000000a"}, "id": "00000000-0a0a-0a0a-aaa0-00000000000a", "type": ""}}
When the request is sent
Then the response status is 200 OK
@replay-only @team:DataDog/cloud-cost-management
Scenario: Create tag pipeline ruleset returns "OK" response
Given new "CreateTagPipelinesRuleset" request
And body with value {"data": {"attributes": {"enabled": true, "rules": [{"enabled": true, "mapping": null, "name": "Add Cost Center Tag", "query": {"addition": {"key": "cost_center", "value": "engineering"}, "case_insensitivity": false, "if_not_exists": true, "query": "account_id:\"123456789\" AND service:\"web-api\""}, "reference_table": null}]}, "id": "New Ruleset", "type": "create_ruleset"}}
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: Create tag pipeline ruleset with if_tag_exists returns "OK" response
Given new "CreateTagPipelinesRuleset" request
And body with value {"data": {"attributes": {"enabled": true, "rules": [{"enabled": true, "mapping": null, "name": "Add Cost Center Tag", "query": {"addition": {"key": "cost_center", "value": "engineering"}, "case_insensitivity": false, "if_tag_exists": "replace", "query": "account_id:\"123456789\" AND service:\"web-api\""}, "reference_table": null}]}, "id": "New Ruleset", "type": "create_ruleset"}}
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"
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Delete Cloud Cost Management AWS CUR config returns "Bad Request" response
Given new "DeleteCostAWSCURConfig" request
And request contains "cloud_account_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@replay-only @team:DataDog/cloud-cost-management
Scenario: Delete Cloud Cost Management AWS CUR config returns "No Content" response
Given new "DeleteCostAWSCURConfig" request
And request contains "cloud_account_id" parameter with value 100
When the request is sent
Then the response status is 204 No Content
@team:DataDog/cloud-cost-management
Scenario: Delete Cloud Cost Management AWS CUR config returns "Not Found" response
Given new "DeleteCostAWSCURConfig" request
And request contains "cloud_account_id" parameter with value 123456
When the request is sent
Then the response status is 404 Not Found
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Delete Cloud Cost Management Azure config returns "Bad Request" response
Given new "DeleteCostAzureUCConfig" request
And request contains "cloud_account_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@replay-only @team:DataDog/cloud-cost-management
Scenario: Delete Cloud Cost Management Azure config returns "No Content" response
Given new "DeleteCostAzureUCConfig" request
And request contains "cloud_account_id" parameter with value 100
When the request is sent
Then the response status is 204 No Content
@team:DataDog/cloud-cost-management
Scenario: Delete Cloud Cost Management Azure config returns "Not Found" response
Given new "DeleteCostAzureUCConfig" request
And request contains "cloud_account_id" parameter with value 123456
When the request is sent
Then the response status is 404 Not Found
@replay-only @team:DataDog/cloud-cost-management
Scenario: Delete Custom Costs File returns "No Content" response
Given new "DeleteCustomCostsFile" request
And request contains "file_id" parameter with value "9d055d22-a838-4e9f-bc34-a4f9ab66280c"
When the request is sent
Then the response status is 204 No Content
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Delete Custom Costs file returns "No Content" response
Given new "DeleteCustomCostsFile" request
And request contains "file_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 204 No Content
@team:DataDog/cloud-cost-management
Scenario: Delete Custom Costs file returns "Not Found" response
Given new "DeleteCustomCostsFile" request
And request contains "file_id" parameter with value "00000000-0000-0000-0000-000000000000"
When the request is sent
Then the response status is 404 Not Found
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Delete Google Cloud Usage Cost config returns "Bad Request" response
Given new "DeleteCostGCPUsageCostConfig" request
And request contains "cloud_account_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@replay-only @team:DataDog/cloud-cost-management
Scenario: Delete Google Cloud Usage Cost config returns "No Content" response
Given new "DeleteCostGCPUsageCostConfig" request
And request contains "cloud_account_id" parameter with value 100
When the request is sent
Then the response status is 204 No Content
@team:DataDog/cloud-cost-management
Scenario: Delete Google Cloud Usage Cost config returns "Not Found" response
Given new "DeleteCostGCPUsageCostConfig" request
And request contains "cloud_account_id" parameter with value 123456
When the request is sent
Then the response status is 404 Not Found
@team:DataDog/cloud-cost-management
Scenario: Delete a budget returns "Bad Request" response
Given new "DeleteBudget" request
And request contains "budget_id" parameter with value "1"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Delete budget returns "No Content" response
Given new "DeleteBudget" request
And request contains "budget_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 204 No Content
@replay-only @team:DataDog/cloud-cost-management
Scenario: Delete custom allocation rule returns "No Content" response
Given new "DeleteCustomAllocationRule" request
And request contains "rule_id" parameter with value 683
When the request is sent
Then the response status is 204 No Content
@replay-only @team:DataDog/cloud-cost-management
Scenario: Delete tag pipeline ruleset returns "No Content" response
Given new "DeleteTagPipelinesRuleset" request
And request contains "ruleset_id" parameter with value "ee10c3ff-312f-464c-b4f6-46adaa6d00a1"
When the request is sent
Then the response status is 204 No Content
@replay-only @team:DataDog/cloud-cost-management
Scenario: Get Custom Costs File returns "OK" response
Given new "GetCustomCostsFile" request
And request contains "file_id" parameter with value "9d055d22-a838-4e9f-bc34-a4f9ab66280c"
When the request is sent
Then the response status is 200 OK
And the response "data.attributes.name" is equal to "data.json"
And the response "data.attributes.content[0].ChargeDescription" is equal to "my_description"
@team:DataDog/cloud-cost-management
Scenario: Get Custom Costs file returns "Not Found" response
Given new "GetCustomCostsFile" request
And request contains "file_id" parameter with value "00000000-0000-0000-0000-000000000000"
When the request is sent
Then the response status is 404 Not Found
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get Custom Costs file returns "OK" response
Given new "GetCustomCostsFile" request
And request contains "file_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 Google Cloud Usage Cost config returns "OK" response
Given new "GetCostGCPUsageCostConfig" request
And request contains "cloud_account_id" parameter with value 123456
When the request is sent
Then the response status is 200 OK
And the response "data.type" is equal to "gcp_uc_config"
And the response "data.attributes.account_id" is equal to "123456_ABCDEF_123ABC"
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get a Cloud Cost Management tag key returns "Bad Request" response
Given new "GetCostTagKey" request
And request contains "tag_key" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get a Cloud Cost Management tag key returns "Not Found" response
Given new "GetCostTagKey" request
And request contains "tag_key" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get a Cloud Cost Management tag key returns "OK" response
Given new "GetCostTagKey" request
And request contains "tag_key" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@team:DataDog/cloud-cost-management
Scenario: Get a budget returns "Not Found" response
Given new "GetBudget" request
And request contains "budget_id" parameter with value "9d055d22-0a0a-0a0a-aaa0-00000000000a"
When the request is sent
Then the response status is 404 Not Found
@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"
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get budget returns "OK" response
Given new "GetBudget" request
And request contains "budget_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get commitments coverage (scalar) returns "Bad Request" response
Given operation "GetCommitmentsCoverageScalar" enabled
And new "GetCommitmentsCoverageScalar" request
And request contains "provider" parameter from "REPLACE.ME"
And request contains "product" parameter from "REPLACE.ME"
And request contains "start" parameter from "REPLACE.ME"
And request contains "end" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get commitments coverage (scalar) returns "OK" response
Given operation "GetCommitmentsCoverageScalar" enabled
And new "GetCommitmentsCoverageScalar" request
And request contains "provider" parameter from "REPLACE.ME"
And request contains "product" parameter from "REPLACE.ME"
And request contains "start" parameter from "REPLACE.ME"
And request contains "end" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get commitments coverage (timeseries) returns "Bad Request" response
Given operation "GetCommitmentsCoverageTimeseries" enabled
And new "GetCommitmentsCoverageTimeseries" request
And request contains "provider" parameter from "REPLACE.ME"
And request contains "product" parameter from "REPLACE.ME"
And request contains "start" parameter from "REPLACE.ME"
And request contains "end" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get commitments coverage (timeseries) returns "OK" response
Given operation "GetCommitmentsCoverageTimeseries" enabled
And new "GetCommitmentsCoverageTimeseries" request
And request contains "provider" parameter from "REPLACE.ME"
And request contains "product" parameter from "REPLACE.ME"
And request contains "start" parameter from "REPLACE.ME"
And request contains "end" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get commitments list returns "Bad Request" response
Given operation "GetCommitmentsCommitmentList" enabled
And new "GetCommitmentsCommitmentList" request
And request contains "provider" parameter from "REPLACE.ME"
And request contains "product" parameter from "REPLACE.ME"
And request contains "start" parameter from "REPLACE.ME"
And request contains "end" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get commitments list returns "OK" response
Given operation "GetCommitmentsCommitmentList" enabled
And new "GetCommitmentsCommitmentList" request
And request contains "provider" parameter from "REPLACE.ME"
And request contains "product" parameter from "REPLACE.ME"
And request contains "start" parameter from "REPLACE.ME"
And request contains "end" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get commitments on-demand hot spots (scalar) returns "Bad Request" response
Given operation "GetCommitmentsOnDemandHotspotsScalar" enabled
And new "GetCommitmentsOnDemandHotspotsScalar" request
And request contains "provider" parameter from "REPLACE.ME"
And request contains "product" parameter from "REPLACE.ME"
And request contains "start" parameter from "REPLACE.ME"
And request contains "end" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get commitments on-demand hot spots (scalar) returns "OK" response
Given operation "GetCommitmentsOnDemandHotspotsScalar" enabled
And new "GetCommitmentsOnDemandHotspotsScalar" request
And request contains "provider" parameter from "REPLACE.ME"
And request contains "product" parameter from "REPLACE.ME"
And request contains "start" parameter from "REPLACE.ME"
And request contains "end" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get commitments savings (scalar) returns "Bad Request" response
Given operation "GetCommitmentsSavingsScalar" enabled
And new "GetCommitmentsSavingsScalar" request
And request contains "provider" parameter from "REPLACE.ME"
And request contains "product" parameter from "REPLACE.ME"
And request contains "start" parameter from "REPLACE.ME"
And request contains "end" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get commitments savings (scalar) returns "OK" response
Given operation "GetCommitmentsSavingsScalar" enabled
And new "GetCommitmentsSavingsScalar" request
And request contains "provider" parameter from "REPLACE.ME"
And request contains "product" parameter from "REPLACE.ME"
And request contains "start" parameter from "REPLACE.ME"
And request contains "end" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get commitments savings (timeseries) returns "Bad Request" response
Given operation "GetCommitmentsSavingsTimeseries" enabled
And new "GetCommitmentsSavingsTimeseries" request
And request contains "provider" parameter from "REPLACE.ME"
And request contains "product" parameter from "REPLACE.ME"
And request contains "start" parameter from "REPLACE.ME"
And request contains "end" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get commitments savings (timeseries) returns "OK" response
Given operation "GetCommitmentsSavingsTimeseries" enabled
And new "GetCommitmentsSavingsTimeseries" request
And request contains "provider" parameter from "REPLACE.ME"
And request contains "product" parameter from "REPLACE.ME"
And request contains "start" parameter from "REPLACE.ME"
And request contains "end" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get commitments utilization (scalar) returns "Bad Request" response
Given operation "GetCommitmentsUtilizationScalar" enabled
And new "GetCommitmentsUtilizationScalar" request
And request contains "provider" parameter from "REPLACE.ME"
And request contains "product" parameter from "REPLACE.ME"
And request contains "start" parameter from "REPLACE.ME"
And request contains "end" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get commitments utilization (scalar) returns "OK" response
Given operation "GetCommitmentsUtilizationScalar" enabled
And new "GetCommitmentsUtilizationScalar" request
And request contains "provider" parameter from "REPLACE.ME"
And request contains "product" parameter from "REPLACE.ME"
And request contains "start" parameter from "REPLACE.ME"
And request contains "end" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get commitments utilization (timeseries) returns "Bad Request" response
Given operation "GetCommitmentsUtilizationTimeseries" enabled
And new "GetCommitmentsUtilizationTimeseries" request
And request contains "provider" parameter from "REPLACE.ME"
And request contains "product" parameter from "REPLACE.ME"
And request contains "start" parameter from "REPLACE.ME"
And request contains "end" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get commitments utilization (timeseries) returns "OK" response
Given operation "GetCommitmentsUtilizationTimeseries" enabled
And new "GetCommitmentsUtilizationTimeseries" request
And request contains "provider" parameter from "REPLACE.ME"
And request contains "product" parameter from "REPLACE.ME"
And request contains "start" parameter from "REPLACE.ME"
And request contains "end" 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 cost AWS CUR config returns "OK" response
Given new "GetCostAWSCURConfig" request
And request contains "cloud_account_id" parameter with value 123456
When the request is sent
Then the response status is 200 OK
And the response "data.type" is equal to "aws_cur_config"
And the response "data.attributes.account_id" is equal to "123456123456"
@replay-only @team:DataDog/cloud-cost-management
Scenario: Get cost Azure UC config returns "OK" response
Given new "GetCostAzureUCConfig" request
And request contains "cloud_account_id" parameter with value 123456
When the request is sent
Then the response status is 200 OK
And the response "data.type" is equal to "azure_uc_configs"
And the response "data.attributes.configs[0].dataset_type" is equal to "amortized"
And the response "data.attributes.configs[1].dataset_type" is equal to "actual"
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get cost anomaly returns "Bad Request" response
Given operation "GetCostAnomaly" enabled
And new "GetCostAnomaly" request
And request contains "anomaly_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get cost anomaly returns "Not Found" response
Given operation "GetCostAnomaly" enabled
And new "GetCostAnomaly" request
And request contains "anomaly_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get cost anomaly returns "OK" response
Given operation "GetCostAnomaly" enabled
And new "GetCostAnomaly" request
And request contains "anomaly_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 custom allocation rule returns "OK" response
Given new "GetCustomAllocationRule" request
And request contains "rule_id" parameter with value 683
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get the Cloud Cost Management billing currency returns "Bad Request" response
Given operation "GetCostTagMetadataCurrency" enabled
And new "GetCostTagMetadataCurrency" request
And request contains "filter[month]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Get the Cloud Cost Management billing currency returns "OK" response
Given operation "GetCostTagMetadataCurrency" enabled
And new "GetCostTagMetadataCurrency" request
And request contains "filter[month]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@replay-only @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management AWS CUR configs returns "OK" response
Given new "ListCostAWSCURConfigs" request
When the request is sent
Then the response status is 200 OK
And the response "data[0].attributes.bucket_name" is equal to "test_bucket_name"
@replay-only @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management Azure configs returns "OK" response
Given new "ListCostAzureUCConfigs" request
When the request is sent
Then the response status is 200 OK
And the response "data[0].attributes.configs[0].export_name" is equal to "test_export_name"
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management OCI configs returns "OK" response
Given new "ListCostOCIConfigs" request
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management orchestrators returns "Bad Request" response
Given operation "ListCostTagMetadataOrchestrators" enabled
And new "ListCostTagMetadataOrchestrators" request
And request contains "filter[month]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management orchestrators returns "OK" response
Given operation "ListCostTagMetadataOrchestrators" enabled
And new "ListCostTagMetadataOrchestrators" request
And request contains "filter[month]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management tag descriptions returns "OK" response
Given new "ListCostTagDescriptions" request
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management tag key metadata returns "Bad Request" response
Given operation "ListCostTagMetadata" enabled
And new "ListCostTagMetadata" request
And request contains "filter[month]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management tag key metadata returns "OK" response
Given operation "ListCostTagMetadata" enabled
And new "ListCostTagMetadata" request
And request contains "filter[month]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management tag keys returns "Bad Request" response
Given new "ListCostTagKeys" request
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management tag keys returns "OK" response
Given new "ListCostTagKeys" request
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management tag metadata months returns "Bad Request" response
Given operation "ListCostTagMetadataMonths" enabled
And new "ListCostTagMetadataMonths" request
And request contains "filter[provider]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management tag metadata months returns "OK" response
Given operation "ListCostTagMetadataMonths" enabled
And new "ListCostTagMetadataMonths" request
And request contains "filter[provider]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management tag sources returns "Bad Request" response
Given operation "ListCostTagKeySources" enabled
And new "ListCostTagKeySources" request
And request contains "filter[month]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management tag sources returns "OK" response
Given operation "ListCostTagKeySources" enabled
And new "ListCostTagKeySources" request
And request contains "filter[month]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management tags returns "Bad Request" response
Given new "ListCostTags" request
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management tags returns "OK" response
Given new "ListCostTags" request
When the request is sent
Then the response status is 200 OK
@replay-only @team:DataDog/cloud-cost-management
Scenario: List Custom Costs Files returns "OK" response
Given new "ListCustomCostsFiles" request
When the request is sent
Then the response status is 200 OK
And the response "data[0].attributes.name" is equal to "data.json"
@team:DataDog/cloud-cost-management
Scenario: List Custom Costs files returns "Bad Request" response
Given new "ListCustomCostsFiles" request
And request contains "filter[status]" parameter with value "invalid_file_status"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List Custom Costs files returns "OK" response
Given new "ListCustomCostsFiles" request
When the request is sent
Then the response status is 200 OK
@team:DataDog/cloud-cost-management
Scenario: List Google Cloud Usage Cost configs returns "OK" response
Given new "ListCostGCPUsageCostConfigs" request
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List available Cloud Cost Management metrics returns "Bad Request" response
Given operation "ListCostTagMetadataMetrics" enabled
And new "ListCostTagMetadataMetrics" request
And request contains "filter[month]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List available Cloud Cost Management metrics returns "OK" response
Given operation "ListCostTagMetadataMetrics" enabled
And new "ListCostTagMetadataMetrics" request
And request contains "filter[month]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@team:DataDog/cloud-cost-management
Scenario: List budgets returns "OK" response
Given new "ListBudgets" request
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List cost anomalies returns "Bad Request" response
Given operation "ListCostAnomalies" enabled
And new "ListCostAnomalies" request
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List cost anomalies returns "OK" response
Given operation "ListCostAnomalies" enabled
And new "ListCostAnomalies" request
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List custom allocation rule statuses returns "OK" response
Given new "ListCustomAllocationRulesStatus" request
When the request is sent
Then the response status is 200 OK
@replay-only @team:DataDog/cloud-cost-management
Scenario: List custom allocation rules returns "OK" response
Given new "ListCustomAllocationRules" request
When the request is sent
Then the response status is 200 OK
And the response "data[0].attributes.rule_name" is equal to "example-arbitrary-cost-rule"
@generated @skip @team:DataDog/cloud-cost-management
Scenario: List tag pipeline ruleset statuses returns "OK" response
Given new "ListTagPipelinesRulesetsStatus" request
When the request is sent
Then the response status is 200 OK
@replay-only @team:DataDog/cloud-cost-management
Scenario: List tag pipeline rulesets returns "OK" response
Given new "ListTagPipelinesRulesets" request
When the request is sent
Then the response status is 200 OK
And the response "data[0].attributes.name" is equal to "New Ruleset"
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Reorder custom allocation rules returns "Successfully reordered rules" response
Given new "ReorderCustomAllocationRules" request
And body with value {"data": [{"id": "456", "type": "arbitrary_rule"}, {"id": "123", "type": "arbitrary_rule"}, {"id": "789", "type": "arbitrary_rule"}]}
When the request is sent
Then the response status is 204 Successfully reordered rules
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Reorder tag pipeline rulesets returns "Successfully reordered rulesets" response
Given new "ReorderTagPipelinesRulesets" request
And body with value {"data": [{"id": "55ef2385-9ae1-4410-90c4-5ac1b60fec10", "type": "ruleset"}, {"id": "a7b8c9d0-1234-5678-9abc-def012345678", "type": "ruleset"}, {"id": "f1e2d3c4-b5a6-9780-1234-567890abcdef", "type": "ruleset"}]}
When the request is sent
Then the response status is 204 Successfully reordered rulesets
@generated @skip @team:DataDog/ccm-optimize
Scenario: Search cost recommendations returns "OK" response
Given operation "SearchCostRecommendations" enabled
And new "SearchCostRecommendations" request
And body with value {"filter": "@resource_table:aws_ec2_instance", "sort": [{"expression": "potential_daily_savings.amount", "order": "DESC"}]}
When the request is sent
Then the response status is 200 OK
@team:DataDog/cloud-cost-management
Scenario: Update Cloud Cost Management AWS CUR config returns "Not Found" response
Given new "UpdateCostAWSCURConfig" request
And request contains "cloud_account_id" parameter with value 123456
And body with value {"data": {"attributes": {"is_enabled": true}, "type": "aws_cur_config_patch_request"}}
When the request is sent
Then the response status is 404 Not Found
@replay-only @team:DataDog/cloud-cost-management
Scenario: Update Cloud Cost Management AWS CUR config returns "OK" response
Given new "UpdateCostAWSCURConfig" request
And request contains "cloud_account_id" parameter with value 100
And body with value {"data": {"attributes": {"is_enabled": true}, "type": "aws_cur_config_patch_request"}}
When the request is sent
Then the response status is 200 OK
And the response "data[0].attributes.account_id" is equal to "000000000000"
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Update Cloud Cost Management Azure config returns "Bad Request" response
Given new "UpdateCostAzureUCConfigs" request
And request contains "cloud_account_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"is_enabled": true}, "type": "azure_uc_config_patch_request"}}
When the request is sent
Then the response status is 400 Bad Request
@team:DataDog/cloud-cost-management
Scenario: Update Cloud Cost Management Azure config returns "Not Found" response
Given new "UpdateCostAzureUCConfigs" request
And request contains "cloud_account_id" parameter with value 123456
And body with value {"data": {"attributes": {"is_enabled": true}, "type": "azure_uc_config_patch_request"}}
When the request is sent
Then the response status is 404 Not Found
@replay-only @team:DataDog/cloud-cost-management
Scenario: Update Cloud Cost Management Azure config returns "OK" response
Given new "UpdateCostAzureUCConfigs" request
And request contains "cloud_account_id" parameter with value 100
And body with value {"data": {"attributes": {"is_enabled": true}, "type": "azure_uc_config_patch_request"}}
When the request is sent
Then the response status is 200 OK
And the response "data.type" is equal to "azure_uc_configs"
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Update Google Cloud Usage Cost config returns "Bad Request" response
Given new "UpdateCostGCPUsageCostConfig" request
And request contains "cloud_account_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"is_enabled": true}, "type": "gcp_uc_config_patch_request"}}
When the request is sent
Then the response status is 400 Bad Request
@team:DataDog/cloud-cost-management
Scenario: Update Google Cloud Usage Cost config returns "Not Found" response
Given new "UpdateCostGCPUsageCostConfig" request
And request contains "cloud_account_id" parameter with value 123456
And body with value {"data": {"attributes": {"is_enabled": true}, "type": "gcp_uc_config_patch_request"}}
When the request is sent
Then the response status is 404 Not Found
@replay-only @team:DataDog/cloud-cost-management
Scenario: Update Google Cloud Usage Cost config returns "OK" response
Given new "UpdateCostGCPUsageCostConfig" request
And request contains "cloud_account_id" parameter with value 100
And body with value {"data": {"attributes": {"is_enabled": true}, "type": "gcp_uc_config_patch_request"}}
When the request is sent
Then the response status is 200 OK
And the response "data.attributes.account_id" is equal to "123456_A123BC_12AB34"
@replay-only @team:DataDog/cloud-cost-management
Scenario: Update custom allocation rule returns "OK" response
Given new "UpdateCustomAllocationRule" request
And request contains "rule_id" parameter with value 683
And body with value {"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"}}
When the request is sent
Then the response status is 200 OK
@replay-only @team:DataDog/cloud-cost-management
Scenario: Update tag pipeline ruleset returns "OK" response
Given new "UpdateTagPipelinesRuleset" request
And request contains "ruleset_id" parameter with value "ee10c3ff-312f-464c-b4f6-46adaa6d00a1"
And body with value {"data": {"attributes": {"enabled": true, "last_version": 3611102, "rules": [{"enabled": true, "mapping": {"destination_key": "team_owner", "if_not_exists": true, "source_keys": ["account_name", "account_id"]}, "name": "Account Name Mapping", "query": null, "reference_table": null}]}, "id": "New Ruleset", "type": "update_ruleset"}}
When the request is sent
Then the response status is 200 OK
@replay-only @team:DataDog/cloud-cost-management
Scenario: Update tag pipeline ruleset with if_tag_exists returns "OK" response
Given new "UpdateTagPipelinesRuleset" request
And request contains "ruleset_id" parameter with value "ee10c3ff-312f-464c-b4f6-46adaa6d00a1"
And body with value {"data": {"attributes": {"enabled": true, "last_version": 3611102, "rules": [{"enabled": true, "mapping": {"destination_key": "team_owner", "if_tag_exists": "replace", "source_keys": ["account_name", "account_id"]}, "name": "Account Name Mapping", "query": null, "reference_table": null}]}, "id": "New Ruleset", "type": "update_ruleset"}}
When the request is sent
Then the response status is 200 OK
@replay-only @team:DataDog/cloud-cost-management
Scenario: Upload Custom Costs File returns "Accepted" response
Given new "UploadCustomCostsFile" request
And body with value [{ "ProviderName": "my_provider", "ChargePeriodStart": "2023-05-06", "ChargePeriodEnd": "2023-06-06","ChargeDescription": "my_description","BilledCost": 250,"BillingCurrency": "USD","Tags": {"key": "value"}}]
When the request is sent
Then the response status is 202 Accepted
And the response "data.attributes.name" is equal to "data.json"
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Upload Custom Costs file returns "Accepted" response
Given new "UploadCustomCostsFile" request
And body with value [{"BilledCost": 100.5, "BillingCurrency": "USD", "ChargeDescription": "Monthly usage charge for my service", "ChargePeriodEnd": "2023-02-28", "ChargePeriodStart": "2023-02-01"}]
When the request is sent
Then the response status is 202 Accepted
@team:DataDog/cloud-cost-management
Scenario: Upload Custom Costs file returns "Bad Request" response
Given new "UploadCustomCostsFile" request
And body with value [{"BilledCost": 100.5, "BillingCurrency": "USD", "ChargeDescription": "Monthly usage charge for my service", "ChargePeriodEnd": "2023-02-28", "ChargePeriodStart": "2023-02-01"}]
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Validate CSV budget returns "OK" response
Given new "ValidateCsvBudget" request
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/cloud-cost-management
Scenario: Validate budget returns "OK" response
Given new "ValidateBudget" request
And body with value {"data": {"attributes": {"created_at": 1738258683590, "created_by": "00000000-0a0a-0a0a-aaa0-00000000000a", "end_month": 202502, "entries": [{"amount": 500, "month": 202501, "tag_filters": [{"tag_key": "service", "tag_value": "ec2"}]}, {"amount": 500, "month": 202502, "tag_filters": [{"tag_key": "service", "tag_value": "ec2"}]}], "metrics_query": "aws.cost.amortized{service:ec2} by {service}", "name": "my budget", "org_id": 123, "start_month": 202501, "total_amount": 1000, "updated_at": 1738258683590, "updated_by": "00000000-0a0a-0a0a-aaa0-00000000000a"}, "id": "1", "type": "budget"}}
When the request is sent
Then the response status is 200 OK
@replay-only @team:DataDog/cloud-cost-management
Scenario: Validate query returns "OK" response
Given new "ValidateQuery" request
And body with value {"data": {"attributes": {"Query": "example:query AND test:true"}, "type": "validate_query"}}
When the request is sent
Then the response status is 200 OK