Skip to content

Commit 232a07f

Browse files
Merge master into datadog-api-spec/test/oliver/add-draft-apps.yaml
2 parents 7a7bb5d + 7c7141d commit 232a07f

19 files changed

+207
-28
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-12-12 15:23:50.266080",
8-
"spec_repo_commit": "222e1f81"
7+
"regenerated": "2024-12-13 16:09:25.555961",
8+
"spec_repo_commit": "936a5463"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-12 15:23:50.285587",
13-
"spec_repo_commit": "222e1f81"
12+
"regenerated": "2024-12-13 16:09:25.575458",
13+
"spec_repo_commit": "936a5463"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4185,6 +4185,7 @@ components:
41854185
- ci_test_indexed_spans_usage
41864186
- ci_visibility_itr_usage
41874187
- cloud_siem_usage
4188+
- code_security_host_usage
41884189
- container_excl_agent_usage
41894190
- container_usage
41904191
- cspm_containers_usage
@@ -4258,6 +4259,7 @@ components:
42584259
- CI_TEST_INDEXED_SPANS_USAGE
42594260
- CI_VISIBILITY_ITR_USAGE
42604261
- CLOUD_SIEM_USAGE
4262+
- CODE_SECURITY_HOST_USAGE
42614263
- CONTAINER_EXCL_AGENT_USAGE
42624264
- CONTAINER_USAGE
42634265
- CSPM_CONTAINERS_USAGE
@@ -7938,6 +7940,8 @@ components:
79387940
- ci_visibility_itr_percentage
79397941
- cloud_siem_usage
79407942
- cloud_siem_percentage
7943+
- code_security_host_usage
7944+
- code_security_host_percentage
79417945
- container_excl_agent_usage
79427946
- container_excl_agent_percentage
79437947
- container_usage
@@ -8079,6 +8083,8 @@ components:
80798083
- CI_VISIBILITY_ITR_PERCENTAGE
80808084
- CLOUD_SIEM_USAGE
80818085
- CLOUD_SIEM_PERCENTAGE
8086+
- CODE_SECURITY_HOST_USAGE
8087+
- CODE_SECURITY_HOST_PERCENTAGE
80828088
- CONTAINER_EXCL_AGENT_USAGE
80838089
- CONTAINER_EXCL_AGENT_PERCENTAGE
80848090
- CONTAINER_USAGE
@@ -8306,6 +8312,14 @@ components:
83068312
tag(s).
83078313
format: double
83088314
type: number
8315+
code_security_host_percentage:
8316+
description: The percentage of Code Security host usage by tags.
8317+
format: double
8318+
type: number
8319+
code_security_host_usage:
8320+
description: The Code Security host usage by tags.
8321+
format: double
8322+
type: number
83098323
container_excl_agent_percentage:
83108324
description: The percentage of container usage without the Datadog Agent
83118325
by tag(s).
@@ -15197,7 +15211,7 @@ components:
1519715211
format: int64
1519815212
type: integer
1519915213
public_ids:
15200-
description: An array of Synthetic test IDs you want to delete.
15214+
description: An array of Synthetic test IDs you want uptimes for.
1520115215
example: []
1520215216
items:
1520315217
description: A Synthetic test ID.
@@ -19790,6 +19804,11 @@ components:
1979019804
Analysis committers over all hours in the current date for the given org.
1979119805
format: int64
1979219806
type: integer
19807+
code_security_host_top99p:
19808+
description: Shows the 99th percentile of all Code Security hosts over all
19809+
hours in the current date for the given org.
19810+
format: int64
19811+
type: integer
1979319812
container_avg:
1979419813
description: Shows the average of all distinct containers over all hours
1979519814
in the current date for all organizations.
@@ -20556,6 +20575,11 @@ components:
2055620575
Analysis committers over all hours in the current date for the given org.
2055720576
format: int64
2055820577
type: integer
20578+
code_security_host_top99p:
20579+
description: Shows the 99th percentile of all Code Security hosts over all
20580+
hours in the current date for the given org.
20581+
format: int64
20582+
type: integer
2055920583
container_avg:
2056020584
description: Shows the average of all distinct containers over all hours
2056120585
in the current date for the given org.
@@ -21333,6 +21357,11 @@ components:
2133321357
Analysis committers over all hours in the current month for all organizations.
2133421358
format: int64
2133521359
type: integer
21360+
code_security_host_top99p_sum:
21361+
description: Shows the 99th percentile of all Code Security hosts over all
21362+
hours in the current month for all organizations.
21363+
format: int64
21364+
type: integer
2133621365
container_avg_sum:
2133721366
description: Shows the average of all distinct containers over all hours
2133821367
in the current month for all organizations.

.generator/schemas/v2/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31356,6 +31356,9 @@ paths:
3135631356
permissions:
3135731357
- rum_delete_data
3135831358
- logs_delete_data
31359+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
31360+
31361+
contact [Datadog support](https://docs.datadoghq.com/help/).'
3135931362
/api/v2/deletion/requests:
3136031363
get:
3136131364
description: Gets a list of data deletion requests based on several filter parameters.
@@ -31431,6 +31434,9 @@ paths:
3143131434
permissions:
3143231435
- rum_delete_data
3143331436
- logs_delete_data
31437+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
31438+
31439+
contact [Datadog support](https://docs.datadoghq.com/help/).'
3143431440
/api/v2/deletion/requests/{id}/cancel:
3143531441
put:
3143631442
description: Cancels a data deletion request by providing its ID.
@@ -31473,6 +31479,9 @@ paths:
3147331479
permissions:
3147431480
- rum_delete_data
3147531481
- logs_delete_data
31482+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
31483+
31484+
contact [Datadog support](https://docs.datadoghq.com/help/).'
3147631485
/api/v2/domain_allowlist:
3147731486
get:
3147831487
description: Get the domain allowlist for an organization.

examples/v2_data-deletion_CancelDataDeletionRequest.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ use datadog_api_client::datadogV2::api_data_deletion::DataDeletionAPI;
66
async fn main() {
77
// there is a valid "deletion_request" in the system
88
let deletion_request_data_id = std::env::var("DELETION_REQUEST_DATA_ID").unwrap();
9-
let configuration = datadog::Configuration::new();
9+
let mut configuration = datadog::Configuration::new();
10+
configuration.set_unstable_operation_enabled("v2.CancelDataDeletionRequest", true);
1011
let api = DataDeletionAPI::with_config(configuration);
1112
let resp = api
1213
.cancel_data_deletion_request(deletion_request_data_id.clone())

examples/v2_data-deletion_CreateDataDeletionRequest.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ async fn main() {
1919
)
2020
.indexes(vec!["test-index".to_string(), "test-index-2".to_string()]),
2121
));
22-
let configuration = datadog::Configuration::new();
22+
let mut configuration = datadog::Configuration::new();
23+
configuration.set_unstable_operation_enabled("v2.CreateDataDeletionRequest", true);
2324
let api = DataDeletionAPI::with_config(configuration);
2425
let resp = api
2526
.create_data_deletion_request("logs".to_string(), body)

examples/v2_data-deletion_GetDataDeletionRequests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ use datadog_api_client::datadogV2::api_data_deletion::GetDataDeletionRequestsOpt
55

66
#[tokio::main]
77
async fn main() {
8-
let configuration = datadog::Configuration::new();
8+
let mut configuration = datadog::Configuration::new();
9+
configuration.set_unstable_operation_enabled("v2.GetDataDeletionRequests", true);
910
let api = DataDeletionAPI::with_config(configuration);
1011
let resp = api
1112
.get_data_deletion_requests(GetDataDeletionRequestsOptionalParams::default())

src/datadog/configuration.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ impl Default for Configuration {
137137
("v2.get_active_billing_dimensions".to_owned(), false),
138138
("v2.get_billing_dimension_mapping".to_owned(), false),
139139
("v2.get_monthly_cost_attribution".to_owned(), false),
140+
("v2.cancel_data_deletion_request".to_owned(), false),
141+
("v2.create_data_deletion_request".to_owned(), false),
142+
("v2.get_data_deletion_requests".to_owned(), false),
140143
("v2.create_dora_deployment".to_owned(), false),
141144
("v2.create_dora_incident".to_owned(), false),
142145
("v2.create_incident".to_owned(), false),

src/datadogV1/model/model_hourly_usage_attribution_usage_type.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ pub enum HourlyUsageAttributionUsageType {
2020
CI_TEST_INDEXED_SPANS_USAGE,
2121
CI_VISIBILITY_ITR_USAGE,
2222
CLOUD_SIEM_USAGE,
23+
CODE_SECURITY_HOST_USAGE,
2324
CONTAINER_EXCL_AGENT_USAGE,
2425
CONTAINER_USAGE,
2526
CSPM_CONTAINERS_USAGE,
@@ -103,6 +104,7 @@ impl ToString for HourlyUsageAttributionUsageType {
103104
Self::CI_TEST_INDEXED_SPANS_USAGE => String::from("ci_test_indexed_spans_usage"),
104105
Self::CI_VISIBILITY_ITR_USAGE => String::from("ci_visibility_itr_usage"),
105106
Self::CLOUD_SIEM_USAGE => String::from("cloud_siem_usage"),
107+
Self::CODE_SECURITY_HOST_USAGE => String::from("code_security_host_usage"),
106108
Self::CONTAINER_EXCL_AGENT_USAGE => String::from("container_excl_agent_usage"),
107109
Self::CONTAINER_USAGE => String::from("container_usage"),
108110
Self::CSPM_CONTAINERS_USAGE => String::from("cspm_containers_usage"),
@@ -216,6 +218,7 @@ impl<'de> Deserialize<'de> for HourlyUsageAttributionUsageType {
216218
"ci_test_indexed_spans_usage" => Self::CI_TEST_INDEXED_SPANS_USAGE,
217219
"ci_visibility_itr_usage" => Self::CI_VISIBILITY_ITR_USAGE,
218220
"cloud_siem_usage" => Self::CLOUD_SIEM_USAGE,
221+
"code_security_host_usage" => Self::CODE_SECURITY_HOST_USAGE,
219222
"container_excl_agent_usage" => Self::CONTAINER_EXCL_AGENT_USAGE,
220223
"container_usage" => Self::CONTAINER_USAGE,
221224
"cspm_containers_usage" => Self::CSPM_CONTAINERS_USAGE,

src/datadogV1/model/model_monthly_usage_attribution_supported_metrics.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ pub enum MonthlyUsageAttributionSupportedMetrics {
2727
CI_VISIBILITY_ITR_PERCENTAGE,
2828
CLOUD_SIEM_USAGE,
2929
CLOUD_SIEM_PERCENTAGE,
30+
CODE_SECURITY_HOST_USAGE,
31+
CODE_SECURITY_HOST_PERCENTAGE,
3032
CONTAINER_EXCL_AGENT_USAGE,
3133
CONTAINER_EXCL_AGENT_PERCENTAGE,
3234
CONTAINER_USAGE,
@@ -176,6 +178,8 @@ impl ToString for MonthlyUsageAttributionSupportedMetrics {
176178
Self::CI_VISIBILITY_ITR_PERCENTAGE => String::from("ci_visibility_itr_percentage"),
177179
Self::CLOUD_SIEM_USAGE => String::from("cloud_siem_usage"),
178180
Self::CLOUD_SIEM_PERCENTAGE => String::from("cloud_siem_percentage"),
181+
Self::CODE_SECURITY_HOST_USAGE => String::from("code_security_host_usage"),
182+
Self::CODE_SECURITY_HOST_PERCENTAGE => String::from("code_security_host_percentage"),
179183
Self::CONTAINER_EXCL_AGENT_USAGE => String::from("container_excl_agent_usage"),
180184
Self::CONTAINER_EXCL_AGENT_PERCENTAGE => {
181185
String::from("container_excl_agent_percentage")
@@ -391,6 +395,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionSupportedMetrics {
391395
"ci_visibility_itr_percentage" => Self::CI_VISIBILITY_ITR_PERCENTAGE,
392396
"cloud_siem_usage" => Self::CLOUD_SIEM_USAGE,
393397
"cloud_siem_percentage" => Self::CLOUD_SIEM_PERCENTAGE,
398+
"code_security_host_usage" => Self::CODE_SECURITY_HOST_USAGE,
399+
"code_security_host_percentage" => Self::CODE_SECURITY_HOST_PERCENTAGE,
394400
"container_excl_agent_usage" => Self::CONTAINER_EXCL_AGENT_USAGE,
395401
"container_excl_agent_percentage" => Self::CONTAINER_EXCL_AGENT_PERCENTAGE,
396402
"container_usage" => Self::CONTAINER_USAGE,

src/datadogV1/model/model_monthly_usage_attribution_values.rs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ pub struct MonthlyUsageAttributionValues {
8383
/// The Cloud Security Information and Event Management usage by tag(s).
8484
#[serde(rename = "cloud_siem_usage")]
8585
pub cloud_siem_usage: Option<f64>,
86+
/// The percentage of Code Security host usage by tags.
87+
#[serde(rename = "code_security_host_percentage")]
88+
pub code_security_host_percentage: Option<f64>,
89+
/// The Code Security host usage by tags.
90+
#[serde(rename = "code_security_host_usage")]
91+
pub code_security_host_usage: Option<f64>,
8692
/// The percentage of container usage without the Datadog Agent by tag(s).
8793
#[serde(rename = "container_excl_agent_percentage")]
8894
pub container_excl_agent_percentage: Option<f64>,
@@ -453,6 +459,8 @@ impl MonthlyUsageAttributionValues {
453459
ci_visibility_itr_usage: None,
454460
cloud_siem_percentage: None,
455461
cloud_siem_usage: None,
462+
code_security_host_percentage: None,
463+
code_security_host_usage: None,
456464
container_excl_agent_percentage: None,
457465
container_excl_agent_usage: None,
458466
container_percentage: None,
@@ -690,6 +698,16 @@ impl MonthlyUsageAttributionValues {
690698
self
691699
}
692700

701+
pub fn code_security_host_percentage(mut self, value: f64) -> Self {
702+
self.code_security_host_percentage = Some(value);
703+
self
704+
}
705+
706+
pub fn code_security_host_usage(mut self, value: f64) -> Self {
707+
self.code_security_host_usage = Some(value);
708+
self
709+
}
710+
693711
pub fn container_excl_agent_percentage(mut self, value: f64) -> Self {
694712
self.container_excl_agent_percentage = Some(value);
695713
self
@@ -1306,6 +1324,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
13061324
let mut ci_visibility_itr_usage: Option<f64> = None;
13071325
let mut cloud_siem_percentage: Option<f64> = None;
13081326
let mut cloud_siem_usage: Option<f64> = None;
1327+
let mut code_security_host_percentage: Option<f64> = None;
1328+
let mut code_security_host_usage: Option<f64> = None;
13091329
let mut container_excl_agent_percentage: Option<f64> = None;
13101330
let mut container_excl_agent_usage: Option<f64> = None;
13111331
let mut container_percentage: Option<f64> = None;
@@ -1593,6 +1613,20 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
15931613
cloud_siem_usage =
15941614
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
15951615
}
1616+
"code_security_host_percentage" => {
1617+
if v.is_null() {
1618+
continue;
1619+
}
1620+
code_security_host_percentage =
1621+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
1622+
}
1623+
"code_security_host_usage" => {
1624+
if v.is_null() {
1625+
continue;
1626+
}
1627+
code_security_host_usage =
1628+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
1629+
}
15961630
"container_excl_agent_percentage" => {
15971631
if v.is_null() {
15981632
continue;
@@ -2409,6 +2443,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
24092443
ci_visibility_itr_usage,
24102444
cloud_siem_percentage,
24112445
cloud_siem_usage,
2446+
code_security_host_percentage,
2447+
code_security_host_usage,
24122448
container_excl_agent_percentage,
24132449
container_excl_agent_usage,
24142450
container_percentage,

0 commit comments

Comments
 (0)