-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathapi_cloud_cost_management.rs
More file actions
9135 lines (8346 loc) · 372 KB
/
api_cloud_cost_management.rs
File metadata and controls
9135 lines (8346 loc) · 372 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
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2019-Present Datadog, Inc.
use crate::datadog;
use flate2::{
write::{GzEncoder, ZlibEncoder},
Compression,
};
use log::warn;
use reqwest::header::{HeaderMap, HeaderValue};
use serde::{Deserialize, Serialize};
use std::io::Write;
/// GetCommitmentsCommitmentListOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::get_commitments_commitment_list`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct GetCommitmentsCommitmentListOptionalParams {
/// Optional filter expression to narrow down results.
pub filter_by: Option<String>,
/// Type of commitment to query. ri for Reserved Instances, sp for Savings Plans. Defaults to ri.
pub commitment_type: Option<crate::datadogV2::model::CommitmentsCommitmentType>,
}
impl GetCommitmentsCommitmentListOptionalParams {
/// Optional filter expression to narrow down results.
pub fn filter_by(mut self, value: String) -> Self {
self.filter_by = Some(value);
self
}
/// Type of commitment to query. ri for Reserved Instances, sp for Savings Plans. Defaults to ri.
pub fn commitment_type(
mut self,
value: crate::datadogV2::model::CommitmentsCommitmentType,
) -> Self {
self.commitment_type = Some(value);
self
}
}
/// GetCommitmentsCoverageScalarOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::get_commitments_coverage_scalar`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct GetCommitmentsCoverageScalarOptionalParams {
/// Optional filter expression to narrow down results.
pub filter_by: Option<String>,
}
impl GetCommitmentsCoverageScalarOptionalParams {
/// Optional filter expression to narrow down results.
pub fn filter_by(mut self, value: String) -> Self {
self.filter_by = Some(value);
self
}
}
/// GetCommitmentsCoverageTimeseriesOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::get_commitments_coverage_timeseries`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct GetCommitmentsCoverageTimeseriesOptionalParams {
/// Optional filter expression to narrow down results.
pub filter_by: Option<String>,
}
impl GetCommitmentsCoverageTimeseriesOptionalParams {
/// Optional filter expression to narrow down results.
pub fn filter_by(mut self, value: String) -> Self {
self.filter_by = Some(value);
self
}
}
/// GetCommitmentsOnDemandHotspotsScalarOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::get_commitments_on_demand_hotspots_scalar`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct GetCommitmentsOnDemandHotspotsScalarOptionalParams {
/// Optional filter expression to narrow down results.
pub filter_by: Option<String>,
}
impl GetCommitmentsOnDemandHotspotsScalarOptionalParams {
/// Optional filter expression to narrow down results.
pub fn filter_by(mut self, value: String) -> Self {
self.filter_by = Some(value);
self
}
}
/// GetCommitmentsSavingsScalarOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::get_commitments_savings_scalar`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct GetCommitmentsSavingsScalarOptionalParams {
/// Optional filter expression to narrow down results.
pub filter_by: Option<String>,
}
impl GetCommitmentsSavingsScalarOptionalParams {
/// Optional filter expression to narrow down results.
pub fn filter_by(mut self, value: String) -> Self {
self.filter_by = Some(value);
self
}
}
/// GetCommitmentsSavingsTimeseriesOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::get_commitments_savings_timeseries`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct GetCommitmentsSavingsTimeseriesOptionalParams {
/// Optional filter expression to narrow down results.
pub filter_by: Option<String>,
}
impl GetCommitmentsSavingsTimeseriesOptionalParams {
/// Optional filter expression to narrow down results.
pub fn filter_by(mut self, value: String) -> Self {
self.filter_by = Some(value);
self
}
}
/// GetCommitmentsUtilizationScalarOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::get_commitments_utilization_scalar`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct GetCommitmentsUtilizationScalarOptionalParams {
/// Optional filter expression to narrow down results.
pub filter_by: Option<String>,
/// Type of commitment to query. ri for Reserved Instances, sp for Savings Plans. Defaults to ri.
pub commitment_type: Option<crate::datadogV2::model::CommitmentsCommitmentType>,
}
impl GetCommitmentsUtilizationScalarOptionalParams {
/// Optional filter expression to narrow down results.
pub fn filter_by(mut self, value: String) -> Self {
self.filter_by = Some(value);
self
}
/// Type of commitment to query. ri for Reserved Instances, sp for Savings Plans. Defaults to ri.
pub fn commitment_type(
mut self,
value: crate::datadogV2::model::CommitmentsCommitmentType,
) -> Self {
self.commitment_type = Some(value);
self
}
}
/// GetCommitmentsUtilizationTimeseriesOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::get_commitments_utilization_timeseries`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct GetCommitmentsUtilizationTimeseriesOptionalParams {
/// Optional filter expression to narrow down results.
pub filter_by: Option<String>,
/// Type of commitment to query. ri for Reserved Instances, sp for Savings Plans. Defaults to ri.
pub commitment_type: Option<crate::datadogV2::model::CommitmentsCommitmentType>,
}
impl GetCommitmentsUtilizationTimeseriesOptionalParams {
/// Optional filter expression to narrow down results.
pub fn filter_by(mut self, value: String) -> Self {
self.filter_by = Some(value);
self
}
/// Type of commitment to query. ri for Reserved Instances, sp for Savings Plans. Defaults to ri.
pub fn commitment_type(
mut self,
value: crate::datadogV2::model::CommitmentsCommitmentType,
) -> Self {
self.commitment_type = Some(value);
self
}
}
/// GetCostTagKeyOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::get_cost_tag_key`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct GetCostTagKeyOptionalParams {
/// The Cloud Cost Management metric to scope the tag key details to. When omitted, returns details across all metrics.
pub filter_metric: Option<String>,
/// Controls the size of the internal tag value search scope. This does **not** restrict the number of example tag values returned in the response. Defaults to 50, maximum 10000.
pub page_size: Option<i32>,
}
impl GetCostTagKeyOptionalParams {
/// The Cloud Cost Management metric to scope the tag key details to. When omitted, returns details across all metrics.
pub fn filter_metric(mut self, value: String) -> Self {
self.filter_metric = Some(value);
self
}
/// Controls the size of the internal tag value search scope. This does **not** restrict the number of example tag values returned in the response. Defaults to 50, maximum 10000.
pub fn page_size(mut self, value: i32) -> Self {
self.page_size = Some(value);
self
}
}
/// GetCostTagMetadataCurrencyOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::get_cost_tag_metadata_currency`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct GetCostTagMetadataCurrencyOptionalParams {
/// Filter results to a specific provider. Common cloud values are `aws`, `azure`, `gcp`, `Oracle` (OCI), and `custom`. SaaS billing integrations (for example, `Snowflake`, `MongoDB`, `Databricks`) are also accepted using their display-name string. Values are case-sensitive.
pub filter_provider: Option<String>,
}
impl GetCostTagMetadataCurrencyOptionalParams {
/// Filter results to a specific provider. Common cloud values are `aws`, `azure`, `gcp`, `Oracle` (OCI), and `custom`. SaaS billing integrations (for example, `Snowflake`, `MongoDB`, `Databricks`) are also accepted using their display-name string. Values are case-sensitive.
pub fn filter_provider(mut self, value: String) -> Self {
self.filter_provider = Some(value);
self
}
}
/// ListCostAnomaliesOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::list_cost_anomalies`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct ListCostAnomaliesOptionalParams {
/// Start time as Unix milliseconds. Defaults to the start of the latest stable seven-day window.
pub start: Option<i64>,
/// End time as Unix milliseconds. Defaults to the end of the latest stable seven-day window.
pub end: Option<i64>,
/// Optional JSON object mapping cost tag keys to allowed values, for example `{"team":["payments"],"env":["prod"]}`. Filters match anomaly dimensions or correlated tags.
pub filter: Option<String>,
/// Minimum absolute anomalous cost change to include. Numeric value; defaults to `1`.
pub min_anomalous_threshold: Option<String>,
/// Minimum absolute actual cost to include. Numeric value; defaults to `0`.
pub min_cost_threshold: Option<String>,
/// Filter by resolution state. Use `none` for unresolved anomalies, `all` or `*` for resolved anomalies, or a comma-separated list of causes.
pub dismissal_cause: Option<String>,
/// Sort field. One of `start_date`, `end_date`, `duration`, `max_cost`, `anomalous_cost`, or `dismissal_date`. Defaults to `anomalous_cost`.
pub order_by: Option<String>,
/// Sort direction. One of `asc` or `desc`. Defaults to `desc`.
pub order: Option<String>,
/// Maximum number of anomalies to return. Defaults to `200`.
pub limit: Option<i32>,
/// Pagination offset. Defaults to `0`.
pub offset: Option<i32>,
/// Optional repeated cloud or SaaS provider filters, such as `aws`, `gcp`, `azure`, `Oracle`, `datadog`, `OpenAI`, or `Anthropic`.
pub provider_ids: Option<Vec<String>>,
}
impl ListCostAnomaliesOptionalParams {
/// Start time as Unix milliseconds. Defaults to the start of the latest stable seven-day window.
pub fn start(mut self, value: i64) -> Self {
self.start = Some(value);
self
}
/// End time as Unix milliseconds. Defaults to the end of the latest stable seven-day window.
pub fn end(mut self, value: i64) -> Self {
self.end = Some(value);
self
}
/// Optional JSON object mapping cost tag keys to allowed values, for example `{"team":["payments"],"env":["prod"]}`. Filters match anomaly dimensions or correlated tags.
pub fn filter(mut self, value: String) -> Self {
self.filter = Some(value);
self
}
/// Minimum absolute anomalous cost change to include. Numeric value; defaults to `1`.
pub fn min_anomalous_threshold(mut self, value: String) -> Self {
self.min_anomalous_threshold = Some(value);
self
}
/// Minimum absolute actual cost to include. Numeric value; defaults to `0`.
pub fn min_cost_threshold(mut self, value: String) -> Self {
self.min_cost_threshold = Some(value);
self
}
/// Filter by resolution state. Use `none` for unresolved anomalies, `all` or `*` for resolved anomalies, or a comma-separated list of causes.
pub fn dismissal_cause(mut self, value: String) -> Self {
self.dismissal_cause = Some(value);
self
}
/// Sort field. One of `start_date`, `end_date`, `duration`, `max_cost`, `anomalous_cost`, or `dismissal_date`. Defaults to `anomalous_cost`.
pub fn order_by(mut self, value: String) -> Self {
self.order_by = Some(value);
self
}
/// Sort direction. One of `asc` or `desc`. Defaults to `desc`.
pub fn order(mut self, value: String) -> Self {
self.order = Some(value);
self
}
/// Maximum number of anomalies to return. Defaults to `200`.
pub fn limit(mut self, value: i32) -> Self {
self.limit = Some(value);
self
}
/// Pagination offset. Defaults to `0`.
pub fn offset(mut self, value: i32) -> Self {
self.offset = Some(value);
self
}
/// Optional repeated cloud or SaaS provider filters, such as `aws`, `gcp`, `azure`, `Oracle`, `datadog`, `OpenAI`, or `Anthropic`.
pub fn provider_ids(mut self, value: Vec<String>) -> Self {
self.provider_ids = Some(value);
self
}
}
/// ListCostTagDescriptionsOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::list_cost_tag_descriptions`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct ListCostTagDescriptionsOptionalParams {
/// Filter descriptions to a specific cloud provider (for example, `aws`). Omit to return descriptions across all clouds.
pub filter_cloud: Option<String>,
}
impl ListCostTagDescriptionsOptionalParams {
/// Filter descriptions to a specific cloud provider (for example, `aws`). Omit to return descriptions across all clouds.
pub fn filter_cloud(mut self, value: String) -> Self {
self.filter_cloud = Some(value);
self
}
}
/// ListCostTagKeySourcesOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::list_cost_tag_key_sources`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct ListCostTagKeySourcesOptionalParams {
/// Filter results to a specific provider. Common cloud values are `aws`, `azure`, `gcp`, `Oracle` (OCI), and `custom`. SaaS billing integrations (for example, `Snowflake`, `MongoDB`, `Databricks`) are also accepted using their display-name string. Values are case-sensitive.
pub filter_provider: Option<String>,
}
impl ListCostTagKeySourcesOptionalParams {
/// Filter results to a specific provider. Common cloud values are `aws`, `azure`, `gcp`, `Oracle` (OCI), and `custom`. SaaS billing integrations (for example, `Snowflake`, `MongoDB`, `Databricks`) are also accepted using their display-name string. Values are case-sensitive.
pub fn filter_provider(mut self, value: String) -> Self {
self.filter_provider = Some(value);
self
}
}
/// ListCostTagKeysOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::list_cost_tag_keys`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct ListCostTagKeysOptionalParams {
/// The Cloud Cost Management metric to scope the tag keys to. When omitted, returns tag keys across all metrics.
pub filter_metric: Option<String>,
/// Filter to return only tag keys that appear with the given `key:value` tag values. For example, `filter[tags]=providername:aws` returns tag keys found on the same cost data, such as `is_aws_ec2_compute` and `aws_instance_type`.
pub filter_tags: Option<Vec<String>>,
}
impl ListCostTagKeysOptionalParams {
/// The Cloud Cost Management metric to scope the tag keys to. When omitted, returns tag keys across all metrics.
pub fn filter_metric(mut self, value: String) -> Self {
self.filter_metric = Some(value);
self
}
/// Filter to return only tag keys that appear with the given `key:value` tag values. For example, `filter[tags]=providername:aws` returns tag keys found on the same cost data, such as `is_aws_ec2_compute` and `aws_instance_type`.
pub fn filter_tags(mut self, value: Vec<String>) -> Self {
self.filter_tags = Some(value);
self
}
}
/// ListCostTagMetadataOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::list_cost_tag_metadata`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct ListCostTagMetadataOptionalParams {
/// Filter results to a specific provider. Common cloud values are `aws`, `azure`, `gcp`, `Oracle` (OCI), and `custom`. SaaS billing integrations (for example, `Snowflake`, `MongoDB`, `Databricks`) are also accepted using their display-name string. Values are case-sensitive.
pub filter_provider: Option<String>,
/// Filter results to a specific Cloud Cost Management metric (for example, `aws.cost.net.amortized`). When omitted, every available metric for the requested period is returned.
pub filter_metric: Option<String>,
/// Restrict results to a single tag key.
pub filter_tag_key: Option<String>,
/// When `true`, return one row per day with the day in the `date` attribute. Defaults to the monthly roll-up when omitted.
pub filter_daily: Option<crate::datadogV2::model::CostTagMetadataDailyFilter>,
}
impl ListCostTagMetadataOptionalParams {
/// Filter results to a specific provider. Common cloud values are `aws`, `azure`, `gcp`, `Oracle` (OCI), and `custom`. SaaS billing integrations (for example, `Snowflake`, `MongoDB`, `Databricks`) are also accepted using their display-name string. Values are case-sensitive.
pub fn filter_provider(mut self, value: String) -> Self {
self.filter_provider = Some(value);
self
}
/// Filter results to a specific Cloud Cost Management metric (for example, `aws.cost.net.amortized`). When omitted, every available metric for the requested period is returned.
pub fn filter_metric(mut self, value: String) -> Self {
self.filter_metric = Some(value);
self
}
/// Restrict results to a single tag key.
pub fn filter_tag_key(mut self, value: String) -> Self {
self.filter_tag_key = Some(value);
self
}
/// When `true`, return one row per day with the day in the `date` attribute. Defaults to the monthly roll-up when omitted.
pub fn filter_daily(
mut self,
value: crate::datadogV2::model::CostTagMetadataDailyFilter,
) -> Self {
self.filter_daily = Some(value);
self
}
}
/// ListCostTagMetadataMetricsOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::list_cost_tag_metadata_metrics`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct ListCostTagMetadataMetricsOptionalParams {
/// Filter results to a specific provider. Common cloud values are `aws`, `azure`, `gcp`, `Oracle` (OCI), and `custom`. SaaS billing integrations (for example, `Snowflake`, `MongoDB`, `Databricks`) are also accepted using their display-name string. Values are case-sensitive.
pub filter_provider: Option<String>,
}
impl ListCostTagMetadataMetricsOptionalParams {
/// Filter results to a specific provider. Common cloud values are `aws`, `azure`, `gcp`, `Oracle` (OCI), and `custom`. SaaS billing integrations (for example, `Snowflake`, `MongoDB`, `Databricks`) are also accepted using their display-name string. Values are case-sensitive.
pub fn filter_provider(mut self, value: String) -> Self {
self.filter_provider = Some(value);
self
}
}
/// ListCostTagMetadataOrchestratorsOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::list_cost_tag_metadata_orchestrators`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct ListCostTagMetadataOrchestratorsOptionalParams {
/// Filter results to a specific provider. Common cloud values are `aws`, `azure`, `gcp`, `Oracle` (OCI), and `custom`. SaaS billing integrations (for example, `Snowflake`, `MongoDB`, `Databricks`) are also accepted using their display-name string. Values are case-sensitive.
pub filter_provider: Option<String>,
}
impl ListCostTagMetadataOrchestratorsOptionalParams {
/// Filter results to a specific provider. Common cloud values are `aws`, `azure`, `gcp`, `Oracle` (OCI), and `custom`. SaaS billing integrations (for example, `Snowflake`, `MongoDB`, `Databricks`) are also accepted using their display-name string. Values are case-sensitive.
pub fn filter_provider(mut self, value: String) -> Self {
self.filter_provider = Some(value);
self
}
}
/// ListCostTagsOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::list_cost_tags`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct ListCostTagsOptionalParams {
/// The Cloud Cost Management metric to scope the tags to. When omitted, returns tags across all metrics.
pub filter_metric: Option<String>,
/// A substring used to filter the returned tags by name.
pub filter_match: Option<String>,
/// Filter to return only tags that appear with the given `key:value` tag values. For example, `filter[tags]=providername:aws` returns tags found on the same cost data, such as `aws_instance_type:t3.micro` and `aws_instance_type:m5.large`.
pub filter_tags: Option<Vec<String>>,
/// Restrict the returned tags to those whose key matches one of the given tag keys.
pub filter_tag_keys: Option<Vec<String>>,
/// Controls the size of the internal tag search scope. This does **not** restrict the number of tags returned in the response. Defaults to 50, maximum 10000.
pub page_size: Option<i32>,
}
impl ListCostTagsOptionalParams {
/// The Cloud Cost Management metric to scope the tags to. When omitted, returns tags across all metrics.
pub fn filter_metric(mut self, value: String) -> Self {
self.filter_metric = Some(value);
self
}
/// A substring used to filter the returned tags by name.
pub fn filter_match(mut self, value: String) -> Self {
self.filter_match = Some(value);
self
}
/// Filter to return only tags that appear with the given `key:value` tag values. For example, `filter[tags]=providername:aws` returns tags found on the same cost data, such as `aws_instance_type:t3.micro` and `aws_instance_type:m5.large`.
pub fn filter_tags(mut self, value: Vec<String>) -> Self {
self.filter_tags = Some(value);
self
}
/// Restrict the returned tags to those whose key matches one of the given tag keys.
pub fn filter_tag_keys(mut self, value: Vec<String>) -> Self {
self.filter_tag_keys = Some(value);
self
}
/// Controls the size of the internal tag search scope. This does **not** restrict the number of tags returned in the response. Defaults to 50, maximum 10000.
pub fn page_size(mut self, value: i32) -> Self {
self.page_size = Some(value);
self
}
}
/// ListCustomCostsFilesOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::list_custom_costs_files`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct ListCustomCostsFilesOptionalParams {
/// Page number for pagination
pub page_number: Option<i64>,
/// Page size for pagination
pub page_size: Option<i64>,
/// Filter by file status
pub filter_status: Option<String>,
/// Filter files by name with case-insensitive substring matching.
pub filter_name: Option<String>,
/// Filter by provider.
pub filter_provider: Option<Vec<String>>,
/// Sort key with optional descending prefix
pub sort: Option<String>,
}
impl ListCustomCostsFilesOptionalParams {
/// Page number for pagination
pub fn page_number(mut self, value: i64) -> Self {
self.page_number = Some(value);
self
}
/// Page size for pagination
pub fn page_size(mut self, value: i64) -> Self {
self.page_size = Some(value);
self
}
/// Filter by file status
pub fn filter_status(mut self, value: String) -> Self {
self.filter_status = Some(value);
self
}
/// Filter files by name with case-insensitive substring matching.
pub fn filter_name(mut self, value: String) -> Self {
self.filter_name = Some(value);
self
}
/// Filter by provider.
pub fn filter_provider(mut self, value: Vec<String>) -> Self {
self.filter_provider = Some(value);
self
}
/// Sort key with optional descending prefix
pub fn sort(mut self, value: String) -> Self {
self.sort = Some(value);
self
}
}
/// SearchCostRecommendationsOptionalParams is a struct for passing parameters to the method [`CloudCostManagementAPI::search_cost_recommendations`]
#[non_exhaustive]
#[derive(Clone, Default, Debug)]
pub struct SearchCostRecommendationsOptionalParams {
/// Number of results per page (1–10000).
pub page_size: Option<String>,
/// Pagination token from a previous response.
pub page_token: Option<String>,
}
impl SearchCostRecommendationsOptionalParams {
/// Number of results per page (1–10000).
pub fn page_size(mut self, value: String) -> Self {
self.page_size = Some(value);
self
}
/// Pagination token from a previous response.
pub fn page_token(mut self, value: String) -> Self {
self.page_token = Some(value);
self
}
}
/// CreateCostAWSCURConfigError is a struct for typed errors of method [`CloudCostManagementAPI::create_cost_awscur_config`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CreateCostAWSCURConfigError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// CreateCostAzureUCConfigsError is a struct for typed errors of method [`CloudCostManagementAPI::create_cost_azure_uc_configs`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CreateCostAzureUCConfigsError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// CreateCostGCPUsageCostConfigError is a struct for typed errors of method [`CloudCostManagementAPI::create_cost_gcp_usage_cost_config`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CreateCostGCPUsageCostConfigError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// CreateCustomAllocationRuleError is a struct for typed errors of method [`CloudCostManagementAPI::create_custom_allocation_rule`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CreateCustomAllocationRuleError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// CreateTagPipelinesRulesetError is a struct for typed errors of method [`CloudCostManagementAPI::create_tag_pipelines_ruleset`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CreateTagPipelinesRulesetError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// DeleteBudgetError is a struct for typed errors of method [`CloudCostManagementAPI::delete_budget`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum DeleteBudgetError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// DeleteCostAWSCURConfigError is a struct for typed errors of method [`CloudCostManagementAPI::delete_cost_awscur_config`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum DeleteCostAWSCURConfigError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// DeleteCostAzureUCConfigError is a struct for typed errors of method [`CloudCostManagementAPI::delete_cost_azure_uc_config`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum DeleteCostAzureUCConfigError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// DeleteCostGCPUsageCostConfigError is a struct for typed errors of method [`CloudCostManagementAPI::delete_cost_gcp_usage_cost_config`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum DeleteCostGCPUsageCostConfigError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// DeleteCustomAllocationRuleError is a struct for typed errors of method [`CloudCostManagementAPI::delete_custom_allocation_rule`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum DeleteCustomAllocationRuleError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// DeleteCustomCostsFileError is a struct for typed errors of method [`CloudCostManagementAPI::delete_custom_costs_file`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum DeleteCustomCostsFileError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// DeleteTagPipelinesRulesetError is a struct for typed errors of method [`CloudCostManagementAPI::delete_tag_pipelines_ruleset`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum DeleteTagPipelinesRulesetError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetBudgetError is a struct for typed errors of method [`CloudCostManagementAPI::get_budget`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetBudgetError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetCommitmentsCommitmentListError is a struct for typed errors of method [`CloudCostManagementAPI::get_commitments_commitment_list`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetCommitmentsCommitmentListError {
JSONAPIErrorResponse(crate::datadogV2::model::JSONAPIErrorResponse),
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetCommitmentsCoverageScalarError is a struct for typed errors of method [`CloudCostManagementAPI::get_commitments_coverage_scalar`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetCommitmentsCoverageScalarError {
JSONAPIErrorResponse(crate::datadogV2::model::JSONAPIErrorResponse),
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetCommitmentsCoverageTimeseriesError is a struct for typed errors of method [`CloudCostManagementAPI::get_commitments_coverage_timeseries`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetCommitmentsCoverageTimeseriesError {
JSONAPIErrorResponse(crate::datadogV2::model::JSONAPIErrorResponse),
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetCommitmentsOnDemandHotspotsScalarError is a struct for typed errors of method [`CloudCostManagementAPI::get_commitments_on_demand_hotspots_scalar`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetCommitmentsOnDemandHotspotsScalarError {
JSONAPIErrorResponse(crate::datadogV2::model::JSONAPIErrorResponse),
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetCommitmentsSavingsScalarError is a struct for typed errors of method [`CloudCostManagementAPI::get_commitments_savings_scalar`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetCommitmentsSavingsScalarError {
JSONAPIErrorResponse(crate::datadogV2::model::JSONAPIErrorResponse),
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetCommitmentsSavingsTimeseriesError is a struct for typed errors of method [`CloudCostManagementAPI::get_commitments_savings_timeseries`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetCommitmentsSavingsTimeseriesError {
JSONAPIErrorResponse(crate::datadogV2::model::JSONAPIErrorResponse),
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetCommitmentsUtilizationScalarError is a struct for typed errors of method [`CloudCostManagementAPI::get_commitments_utilization_scalar`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetCommitmentsUtilizationScalarError {
JSONAPIErrorResponse(crate::datadogV2::model::JSONAPIErrorResponse),
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetCommitmentsUtilizationTimeseriesError is a struct for typed errors of method [`CloudCostManagementAPI::get_commitments_utilization_timeseries`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetCommitmentsUtilizationTimeseriesError {
JSONAPIErrorResponse(crate::datadogV2::model::JSONAPIErrorResponse),
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetCostAWSCURConfigError is a struct for typed errors of method [`CloudCostManagementAPI::get_cost_awscur_config`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetCostAWSCURConfigError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetCostAnomalyError is a struct for typed errors of method [`CloudCostManagementAPI::get_cost_anomaly`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetCostAnomalyError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetCostAzureUCConfigError is a struct for typed errors of method [`CloudCostManagementAPI::get_cost_azure_uc_config`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetCostAzureUCConfigError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetCostGCPUsageCostConfigError is a struct for typed errors of method [`CloudCostManagementAPI::get_cost_gcp_usage_cost_config`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetCostGCPUsageCostConfigError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetCostTagKeyError is a struct for typed errors of method [`CloudCostManagementAPI::get_cost_tag_key`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetCostTagKeyError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetCostTagMetadataCurrencyError is a struct for typed errors of method [`CloudCostManagementAPI::get_cost_tag_metadata_currency`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetCostTagMetadataCurrencyError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetCustomAllocationRuleError is a struct for typed errors of method [`CloudCostManagementAPI::get_custom_allocation_rule`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetCustomAllocationRuleError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetCustomCostsFileError is a struct for typed errors of method [`CloudCostManagementAPI::get_custom_costs_file`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetCustomCostsFileError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// GetTagPipelinesRulesetError is a struct for typed errors of method [`CloudCostManagementAPI::get_tag_pipelines_ruleset`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GetTagPipelinesRulesetError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListBudgetsError is a struct for typed errors of method [`CloudCostManagementAPI::list_budgets`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListBudgetsError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListCostAWSCURConfigsError is a struct for typed errors of method [`CloudCostManagementAPI::list_cost_awscur_configs`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCostAWSCURConfigsError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListCostAnomaliesError is a struct for typed errors of method [`CloudCostManagementAPI::list_cost_anomalies`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCostAnomaliesError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListCostAzureUCConfigsError is a struct for typed errors of method [`CloudCostManagementAPI::list_cost_azure_uc_configs`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCostAzureUCConfigsError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListCostGCPUsageCostConfigsError is a struct for typed errors of method [`CloudCostManagementAPI::list_cost_gcp_usage_cost_configs`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCostGCPUsageCostConfigsError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListCostOCIConfigsError is a struct for typed errors of method [`CloudCostManagementAPI::list_cost_oci_configs`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCostOCIConfigsError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListCostTagDescriptionsError is a struct for typed errors of method [`CloudCostManagementAPI::list_cost_tag_descriptions`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCostTagDescriptionsError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListCostTagKeySourcesError is a struct for typed errors of method [`CloudCostManagementAPI::list_cost_tag_key_sources`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCostTagKeySourcesError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListCostTagKeysError is a struct for typed errors of method [`CloudCostManagementAPI::list_cost_tag_keys`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCostTagKeysError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListCostTagMetadataError is a struct for typed errors of method [`CloudCostManagementAPI::list_cost_tag_metadata`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCostTagMetadataError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListCostTagMetadataMetricsError is a struct for typed errors of method [`CloudCostManagementAPI::list_cost_tag_metadata_metrics`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCostTagMetadataMetricsError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListCostTagMetadataMonthsError is a struct for typed errors of method [`CloudCostManagementAPI::list_cost_tag_metadata_months`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCostTagMetadataMonthsError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListCostTagMetadataOrchestratorsError is a struct for typed errors of method [`CloudCostManagementAPI::list_cost_tag_metadata_orchestrators`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCostTagMetadataOrchestratorsError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListCostTagsError is a struct for typed errors of method [`CloudCostManagementAPI::list_cost_tags`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCostTagsError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListCustomAllocationRulesError is a struct for typed errors of method [`CloudCostManagementAPI::list_custom_allocation_rules`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCustomAllocationRulesError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListCustomAllocationRulesStatusError is a struct for typed errors of method [`CloudCostManagementAPI::list_custom_allocation_rules_status`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCustomAllocationRulesStatusError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListCustomCostsFilesError is a struct for typed errors of method [`CloudCostManagementAPI::list_custom_costs_files`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListCustomCostsFilesError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListTagPipelinesRulesetsError is a struct for typed errors of method [`CloudCostManagementAPI::list_tag_pipelines_rulesets`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListTagPipelinesRulesetsError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ListTagPipelinesRulesetsStatusError is a struct for typed errors of method [`CloudCostManagementAPI::list_tag_pipelines_rulesets_status`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ListTagPipelinesRulesetsStatusError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ReorderCustomAllocationRulesError is a struct for typed errors of method [`CloudCostManagementAPI::reorder_custom_allocation_rules`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ReorderCustomAllocationRulesError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// ReorderTagPipelinesRulesetsError is a struct for typed errors of method [`CloudCostManagementAPI::reorder_tag_pipelines_rulesets`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum ReorderTagPipelinesRulesetsError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// SearchCostRecommendationsError is a struct for typed errors of method [`CloudCostManagementAPI::search_cost_recommendations`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum SearchCostRecommendationsError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// UpdateCostAWSCURConfigError is a struct for typed errors of method [`CloudCostManagementAPI::update_cost_awscur_config`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum UpdateCostAWSCURConfigError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// UpdateCostAzureUCConfigsError is a struct for typed errors of method [`CloudCostManagementAPI::update_cost_azure_uc_configs`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum UpdateCostAzureUCConfigsError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// UpdateCostGCPUsageCostConfigError is a struct for typed errors of method [`CloudCostManagementAPI::update_cost_gcp_usage_cost_config`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum UpdateCostGCPUsageCostConfigError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// UpdateCustomAllocationRuleError is a struct for typed errors of method [`CloudCostManagementAPI::update_custom_allocation_rule`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]
pub enum UpdateCustomAllocationRuleError {
APIErrorResponse(crate::datadogV2::model::APIErrorResponse),
UnknownValue(serde_json::Value),
}
/// UpdateTagPipelinesRulesetError is a struct for typed errors of method [`CloudCostManagementAPI::update_tag_pipelines_ruleset`]
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(untagged)]