Skip to content

Commit

Permalink
Regenerate client from commit 5392df51 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Dec 13, 2024
1 parent df11800 commit 01c5ebb
Show file tree
Hide file tree
Showing 8 changed files with 135 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
29 changes: 29 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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).
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"),
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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,
Expand Down
36 changes: 36 additions & 0 deletions src/datadogV1/model/model_monthly_usage_attribution_values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<f64>,
/// The percentage of Code Security host usage by tags.
#[serde(rename = "code_security_host_percentage")]
pub code_security_host_percentage: Option<f64>,
/// The Code Security host usage by tags.
#[serde(rename = "code_security_host_usage")]
pub code_security_host_usage: Option<f64>,
/// The percentage of container usage without the Datadog Agent by tag(s).
#[serde(rename = "container_excl_agent_percentage")]
pub container_excl_agent_percentage: Option<f64>,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1306,6 +1324,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
let mut ci_visibility_itr_usage: Option<f64> = None;
let mut cloud_siem_percentage: Option<f64> = None;
let mut cloud_siem_usage: Option<f64> = None;
let mut code_security_host_percentage: Option<f64> = None;
let mut code_security_host_usage: Option<f64> = None;
let mut container_excl_agent_percentage: Option<f64> = None;
let mut container_excl_agent_usage: Option<f64> = None;
let mut container_percentage: Option<f64> = None;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down
19 changes: 19 additions & 0 deletions src/datadogV1/model/model_usage_summary_date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<i64>,
/// 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<i64>,
/// 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<i64>,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -1503,6 +1513,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
let mut cloud_siem_events_sum: Option<i64> = None;
let mut code_analysis_sa_committers_hwm: Option<i64> = None;
let mut code_analysis_sca_committers_hwm: Option<i64> = None;
let mut code_security_host_top99p: Option<i64> = None;
let mut container_avg: Option<i64> = None;
let mut container_excl_agent_avg: Option<i64> = None;
let mut container_hwm: Option<i64> = None;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down
19 changes: 19 additions & 0 deletions src/datadogV1/model/model_usage_summary_date_org.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<i64>,
/// 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<i64>,
/// 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<i64>,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -1566,6 +1576,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDateOrg {
let mut cloud_siem_events_sum: Option<i64> = None;
let mut code_analysis_sa_committers_hwm: Option<i64> = None;
let mut code_analysis_sca_committers_hwm: Option<i64> = None;
let mut code_security_host_top99p: Option<i64> = None;
let mut container_avg: Option<i64> = None;
let mut container_excl_agent_avg: Option<i64> = None;
let mut container_hwm: Option<i64> = None;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down
Loading

0 comments on commit 01c5ebb

Please sign in to comment.