From 01c5ebb4acf796eb1b672e2140f67d2309f21d7d Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 13 Dec 2024 14:54:29 +0000 Subject: [PATCH] Regenerate client from commit 5392df51 of spec repo --- .apigentools-info | 8 ++--- .generator/schemas/v1/openapi.yaml | 29 +++++++++++++++ ...del_hourly_usage_attribution_usage_type.rs | 3 ++ ...hly_usage_attribution_supported_metrics.rs | 6 ++++ .../model_monthly_usage_attribution_values.rs | 36 +++++++++++++++++++ .../model/model_usage_summary_date.rs | 19 ++++++++++ .../model/model_usage_summary_date_org.rs | 19 ++++++++++ .../model/model_usage_summary_response.rs | 19 ++++++++++ 8 files changed, 135 insertions(+), 4 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 0b63946f1..a2dc59114 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-12-13 14:31:40.464564", - "spec_repo_commit": "ed3bb0a0" + "regenerated": "2024-12-13 14:48:41.684377", + "spec_repo_commit": "5392df51" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-12-13 14:31:40.482782", - "spec_repo_commit": "ed3bb0a0" + "regenerated": "2024-12-13 14:48:41.704277", + "spec_repo_commit": "5392df51" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index fd1644703..e3615a73b 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -4185,6 +4185,7 @@ components: - ci_test_indexed_spans_usage - ci_visibility_itr_usage - cloud_siem_usage + - code_security_host_usage - container_excl_agent_usage - container_usage - cspm_containers_usage @@ -4258,6 +4259,7 @@ components: - CI_TEST_INDEXED_SPANS_USAGE - CI_VISIBILITY_ITR_USAGE - CLOUD_SIEM_USAGE + - CODE_SECURITY_HOST_USAGE - CONTAINER_EXCL_AGENT_USAGE - CONTAINER_USAGE - CSPM_CONTAINERS_USAGE @@ -7938,6 +7940,8 @@ components: - ci_visibility_itr_percentage - cloud_siem_usage - cloud_siem_percentage + - code_security_host_usage + - code_security_host_percentage - container_excl_agent_usage - container_excl_agent_percentage - container_usage @@ -8079,6 +8083,8 @@ components: - CI_VISIBILITY_ITR_PERCENTAGE - CLOUD_SIEM_USAGE - CLOUD_SIEM_PERCENTAGE + - CODE_SECURITY_HOST_USAGE + - CODE_SECURITY_HOST_PERCENTAGE - CONTAINER_EXCL_AGENT_USAGE - CONTAINER_EXCL_AGENT_PERCENTAGE - CONTAINER_USAGE @@ -8306,6 +8312,14 @@ components: tag(s). format: double type: number + code_security_host_percentage: + description: The percentage of Code Security host usage by tags. + format: double + type: number + code_security_host_usage: + description: The Code Security host usage by tags. + format: double + type: number container_excl_agent_percentage: description: The percentage of container usage without the Datadog Agent by tag(s). @@ -19790,6 +19804,11 @@ components: Analysis committers over all hours in the current date for the given org. format: int64 type: integer + code_security_host_top99p: + description: Shows the 99th percentile of all Code Security hosts over all + hours in the current date for the given org. + format: int64 + type: integer container_avg: description: Shows the average of all distinct containers over all hours in the current date for all organizations. @@ -20556,6 +20575,11 @@ components: Analysis committers over all hours in the current date for the given org. format: int64 type: integer + code_security_host_top99p: + description: Shows the 99th percentile of all Code Security hosts over all + hours in the current date for the given org. + format: int64 + type: integer container_avg: description: Shows the average of all distinct containers over all hours in the current date for the given org. @@ -21333,6 +21357,11 @@ components: Analysis committers over all hours in the current month for all organizations. format: int64 type: integer + code_security_host_top99p_sum: + description: Shows the 99th percentile of all Code Security hosts over all + hours in the current month for all organizations. + format: int64 + type: integer container_avg_sum: description: Shows the average of all distinct containers over all hours in the current month for all organizations. diff --git a/src/datadogV1/model/model_hourly_usage_attribution_usage_type.rs b/src/datadogV1/model/model_hourly_usage_attribution_usage_type.rs index 785cd0de8..7a3ad83ec 100644 --- a/src/datadogV1/model/model_hourly_usage_attribution_usage_type.rs +++ b/src/datadogV1/model/model_hourly_usage_attribution_usage_type.rs @@ -20,6 +20,7 @@ pub enum HourlyUsageAttributionUsageType { CI_TEST_INDEXED_SPANS_USAGE, CI_VISIBILITY_ITR_USAGE, CLOUD_SIEM_USAGE, + CODE_SECURITY_HOST_USAGE, CONTAINER_EXCL_AGENT_USAGE, CONTAINER_USAGE, CSPM_CONTAINERS_USAGE, @@ -103,6 +104,7 @@ impl ToString for HourlyUsageAttributionUsageType { Self::CI_TEST_INDEXED_SPANS_USAGE => String::from("ci_test_indexed_spans_usage"), Self::CI_VISIBILITY_ITR_USAGE => String::from("ci_visibility_itr_usage"), Self::CLOUD_SIEM_USAGE => String::from("cloud_siem_usage"), + Self::CODE_SECURITY_HOST_USAGE => String::from("code_security_host_usage"), Self::CONTAINER_EXCL_AGENT_USAGE => String::from("container_excl_agent_usage"), Self::CONTAINER_USAGE => String::from("container_usage"), Self::CSPM_CONTAINERS_USAGE => String::from("cspm_containers_usage"), @@ -216,6 +218,7 @@ impl<'de> Deserialize<'de> for HourlyUsageAttributionUsageType { "ci_test_indexed_spans_usage" => Self::CI_TEST_INDEXED_SPANS_USAGE, "ci_visibility_itr_usage" => Self::CI_VISIBILITY_ITR_USAGE, "cloud_siem_usage" => Self::CLOUD_SIEM_USAGE, + "code_security_host_usage" => Self::CODE_SECURITY_HOST_USAGE, "container_excl_agent_usage" => Self::CONTAINER_EXCL_AGENT_USAGE, "container_usage" => Self::CONTAINER_USAGE, "cspm_containers_usage" => Self::CSPM_CONTAINERS_USAGE, diff --git a/src/datadogV1/model/model_monthly_usage_attribution_supported_metrics.rs b/src/datadogV1/model/model_monthly_usage_attribution_supported_metrics.rs index 1c7ed57a6..97a57b260 100644 --- a/src/datadogV1/model/model_monthly_usage_attribution_supported_metrics.rs +++ b/src/datadogV1/model/model_monthly_usage_attribution_supported_metrics.rs @@ -27,6 +27,8 @@ pub enum MonthlyUsageAttributionSupportedMetrics { CI_VISIBILITY_ITR_PERCENTAGE, CLOUD_SIEM_USAGE, CLOUD_SIEM_PERCENTAGE, + CODE_SECURITY_HOST_USAGE, + CODE_SECURITY_HOST_PERCENTAGE, CONTAINER_EXCL_AGENT_USAGE, CONTAINER_EXCL_AGENT_PERCENTAGE, CONTAINER_USAGE, @@ -176,6 +178,8 @@ impl ToString for MonthlyUsageAttributionSupportedMetrics { Self::CI_VISIBILITY_ITR_PERCENTAGE => String::from("ci_visibility_itr_percentage"), Self::CLOUD_SIEM_USAGE => String::from("cloud_siem_usage"), Self::CLOUD_SIEM_PERCENTAGE => String::from("cloud_siem_percentage"), + Self::CODE_SECURITY_HOST_USAGE => String::from("code_security_host_usage"), + Self::CODE_SECURITY_HOST_PERCENTAGE => String::from("code_security_host_percentage"), Self::CONTAINER_EXCL_AGENT_USAGE => String::from("container_excl_agent_usage"), Self::CONTAINER_EXCL_AGENT_PERCENTAGE => { String::from("container_excl_agent_percentage") @@ -391,6 +395,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionSupportedMetrics { "ci_visibility_itr_percentage" => Self::CI_VISIBILITY_ITR_PERCENTAGE, "cloud_siem_usage" => Self::CLOUD_SIEM_USAGE, "cloud_siem_percentage" => Self::CLOUD_SIEM_PERCENTAGE, + "code_security_host_usage" => Self::CODE_SECURITY_HOST_USAGE, + "code_security_host_percentage" => Self::CODE_SECURITY_HOST_PERCENTAGE, "container_excl_agent_usage" => Self::CONTAINER_EXCL_AGENT_USAGE, "container_excl_agent_percentage" => Self::CONTAINER_EXCL_AGENT_PERCENTAGE, "container_usage" => Self::CONTAINER_USAGE, diff --git a/src/datadogV1/model/model_monthly_usage_attribution_values.rs b/src/datadogV1/model/model_monthly_usage_attribution_values.rs index b5c41c31e..8e1ec3bc4 100644 --- a/src/datadogV1/model/model_monthly_usage_attribution_values.rs +++ b/src/datadogV1/model/model_monthly_usage_attribution_values.rs @@ -83,6 +83,12 @@ pub struct MonthlyUsageAttributionValues { /// The Cloud Security Information and Event Management usage by tag(s). #[serde(rename = "cloud_siem_usage")] pub cloud_siem_usage: Option, + /// The percentage of Code Security host usage by tags. + #[serde(rename = "code_security_host_percentage")] + pub code_security_host_percentage: Option, + /// The Code Security host usage by tags. + #[serde(rename = "code_security_host_usage")] + pub code_security_host_usage: Option, /// The percentage of container usage without the Datadog Agent by tag(s). #[serde(rename = "container_excl_agent_percentage")] pub container_excl_agent_percentage: Option, @@ -453,6 +459,8 @@ impl MonthlyUsageAttributionValues { ci_visibility_itr_usage: None, cloud_siem_percentage: None, cloud_siem_usage: None, + code_security_host_percentage: None, + code_security_host_usage: None, container_excl_agent_percentage: None, container_excl_agent_usage: None, container_percentage: None, @@ -690,6 +698,16 @@ impl MonthlyUsageAttributionValues { self } + pub fn code_security_host_percentage(mut self, value: f64) -> Self { + self.code_security_host_percentage = Some(value); + self + } + + pub fn code_security_host_usage(mut self, value: f64) -> Self { + self.code_security_host_usage = Some(value); + self + } + pub fn container_excl_agent_percentage(mut self, value: f64) -> Self { self.container_excl_agent_percentage = Some(value); self @@ -1306,6 +1324,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues { let mut ci_visibility_itr_usage: Option = None; let mut cloud_siem_percentage: Option = None; let mut cloud_siem_usage: Option = None; + let mut code_security_host_percentage: Option = None; + let mut code_security_host_usage: Option = None; let mut container_excl_agent_percentage: Option = None; let mut container_excl_agent_usage: Option = None; let mut container_percentage: Option = None; @@ -1593,6 +1613,20 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues { cloud_siem_usage = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } + "code_security_host_percentage" => { + if v.is_null() { + continue; + } + code_security_host_percentage = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } + "code_security_host_usage" => { + if v.is_null() { + continue; + } + code_security_host_usage = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "container_excl_agent_percentage" => { if v.is_null() { continue; @@ -2409,6 +2443,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues { ci_visibility_itr_usage, cloud_siem_percentage, cloud_siem_usage, + code_security_host_percentage, + code_security_host_usage, container_excl_agent_percentage, container_excl_agent_usage, container_percentage, diff --git a/src/datadogV1/model/model_usage_summary_date.rs b/src/datadogV1/model/model_usage_summary_date.rs index f84b708ec..a2eb48a76 100644 --- a/src/datadogV1/model/model_usage_summary_date.rs +++ b/src/datadogV1/model/model_usage_summary_date.rs @@ -104,6 +104,9 @@ pub struct UsageSummaryDate { /// Shows the high-water mark of all static Software Composition Analysis committers over all hours in the current date for the given org. #[serde(rename = "code_analysis_sca_committers_hwm")] pub code_analysis_sca_committers_hwm: Option, + /// Shows the 99th percentile of all Code Security hosts over all hours in the current date for the given org. + #[serde(rename = "code_security_host_top99p")] + pub code_security_host_top99p: Option, /// Shows the average of all distinct containers over all hours in the current date for all organizations. #[serde(rename = "container_avg")] pub container_avg: Option, @@ -486,6 +489,7 @@ impl UsageSummaryDate { cloud_siem_events_sum: None, code_analysis_sa_committers_hwm: None, code_analysis_sca_committers_hwm: None, + code_security_host_top99p: None, container_avg: None, container_excl_agent_avg: None, container_hwm: None, @@ -781,6 +785,12 @@ impl UsageSummaryDate { self } + #[allow(deprecated)] + pub fn code_security_host_top99p(mut self, value: i64) -> Self { + self.code_security_host_top99p = Some(value); + self + } + #[allow(deprecated)] pub fn container_avg(mut self, value: i64) -> Self { self.container_avg = Some(value); @@ -1503,6 +1513,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDate { let mut cloud_siem_events_sum: Option = None; let mut code_analysis_sa_committers_hwm: Option = None; let mut code_analysis_sca_committers_hwm: Option = None; + let mut code_security_host_top99p: Option = None; let mut container_avg: Option = None; let mut container_excl_agent_avg: Option = None; let mut container_hwm: Option = None; @@ -1831,6 +1842,13 @@ impl<'de> Deserialize<'de> for UsageSummaryDate { code_analysis_sca_committers_hwm = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } + "code_security_host_top99p" => { + if v.is_null() { + continue; + } + code_security_host_top99p = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "container_avg" => { if v.is_null() { continue; @@ -2639,6 +2657,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDate { cloud_siem_events_sum, code_analysis_sa_committers_hwm, code_analysis_sca_committers_hwm, + code_security_host_top99p, container_avg, container_excl_agent_avg, container_hwm, diff --git a/src/datadogV1/model/model_usage_summary_date_org.rs b/src/datadogV1/model/model_usage_summary_date_org.rs index ba39a4c74..e9f052ac4 100644 --- a/src/datadogV1/model/model_usage_summary_date_org.rs +++ b/src/datadogV1/model/model_usage_summary_date_org.rs @@ -110,6 +110,9 @@ pub struct UsageSummaryDateOrg { /// Shows the high-water mark of all static Software Composition Analysis committers over all hours in the current date for the given org. #[serde(rename = "code_analysis_sca_committers_hwm")] pub code_analysis_sca_committers_hwm: Option, + /// Shows the 99th percentile of all Code Security hosts over all hours in the current date for the given org. + #[serde(rename = "code_security_host_top99p")] + pub code_security_host_top99p: Option, /// Shows the average of all distinct containers over all hours in the current date for the given org. #[serde(rename = "container_avg")] pub container_avg: Option, @@ -507,6 +510,7 @@ impl UsageSummaryDateOrg { cloud_siem_events_sum: None, code_analysis_sa_committers_hwm: None, code_analysis_sca_committers_hwm: None, + code_security_host_top99p: None, container_avg: None, container_excl_agent_avg: None, container_hwm: None, @@ -818,6 +822,12 @@ impl UsageSummaryDateOrg { self } + #[allow(deprecated)] + pub fn code_security_host_top99p(mut self, value: i64) -> Self { + self.code_security_host_top99p = Some(value); + self + } + #[allow(deprecated)] pub fn container_avg(mut self, value: i64) -> Self { self.container_avg = Some(value); @@ -1566,6 +1576,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDateOrg { let mut cloud_siem_events_sum: Option = None; let mut code_analysis_sa_committers_hwm: Option = None; let mut code_analysis_sca_committers_hwm: Option = None; + let mut code_security_host_top99p: Option = None; let mut container_avg: Option = None; let mut container_excl_agent_avg: Option = None; let mut container_hwm: Option = None; @@ -1912,6 +1923,13 @@ impl<'de> Deserialize<'de> for UsageSummaryDateOrg { code_analysis_sca_committers_hwm = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } + "code_security_host_top99p" => { + if v.is_null() { + continue; + } + code_security_host_top99p = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "container_avg" => { if v.is_null() { continue; @@ -2748,6 +2766,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDateOrg { cloud_siem_events_sum, code_analysis_sa_committers_hwm, code_analysis_sca_committers_hwm, + code_security_host_top99p, container_avg, container_excl_agent_avg, container_hwm, diff --git a/src/datadogV1/model/model_usage_summary_response.rs b/src/datadogV1/model/model_usage_summary_response.rs index 72f8d0f6d..36a6abb72 100644 --- a/src/datadogV1/model/model_usage_summary_response.rs +++ b/src/datadogV1/model/model_usage_summary_response.rs @@ -107,6 +107,9 @@ pub struct UsageSummaryResponse { /// Shows the high-water mark of all static Software Composition Analysis committers over all hours in the current month for all organizations. #[serde(rename = "code_analysis_sca_committers_hwm_sum")] pub code_analysis_sca_committers_hwm_sum: Option, + /// Shows the 99th percentile of all Code Security hosts over all hours in the current month for all organizations. + #[serde(rename = "code_security_host_top99p_sum")] + pub code_security_host_top99p_sum: Option, /// Shows the average of all distinct containers over all hours in the current month for all organizations. #[serde(rename = "container_avg_sum")] pub container_avg_sum: Option, @@ -523,6 +526,7 @@ impl UsageSummaryResponse { cloud_siem_events_agg_sum: None, code_analysis_sa_committers_hwm_sum: None, code_analysis_sca_committers_hwm_sum: None, + code_security_host_top99p_sum: None, container_avg_sum: None, container_excl_agent_avg_sum: None, container_hwm_sum: None, @@ -834,6 +838,12 @@ impl UsageSummaryResponse { self } + #[allow(deprecated)] + pub fn code_security_host_top99p_sum(mut self, value: i64) -> Self { + self.code_security_host_top99p_sum = Some(value); + self + } + #[allow(deprecated)] pub fn container_avg_sum(mut self, value: i64) -> Self { self.container_avg_sum = Some(value); @@ -1617,6 +1627,7 @@ impl<'de> Deserialize<'de> for UsageSummaryResponse { let mut cloud_siem_events_agg_sum: Option = None; let mut code_analysis_sa_committers_hwm_sum: Option = None; let mut code_analysis_sca_committers_hwm_sum: Option = None; + let mut code_security_host_top99p_sum: Option = None; let mut container_avg_sum: Option = None; let mut container_excl_agent_avg_sum: Option = None; let mut container_hwm_sum: Option = None; @@ -1962,6 +1973,13 @@ impl<'de> Deserialize<'de> for UsageSummaryResponse { code_analysis_sca_committers_hwm_sum = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } + "code_security_host_top99p_sum" => { + if v.is_null() { + continue; + } + code_security_host_top99p_sum = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "container_avg_sum" => { if v.is_null() { continue; @@ -2840,6 +2858,7 @@ impl<'de> Deserialize<'de> for UsageSummaryResponse { cloud_siem_events_agg_sum, code_analysis_sa_committers_hwm_sum, code_analysis_sca_committers_hwm_sum, + code_security_host_top99p_sum, container_avg_sum, container_excl_agent_avg_sum, container_hwm_sum,