Skip to content

Add code_analysis_sa_committers_hwm and code_analysis_sca_committers_hwm to UsageMetering #327

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-10-04 15:31:58.294860",
"spec_repo_commit": "f28ad048"
"regenerated": "2024-10-07 14:32:07.351355",
"spec_repo_commit": "ef7c2778"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-04 15:31:58.309733",
"spec_repo_commit": "f28ad048"
"regenerated": "2024-10-07 14:32:07.365583",
"spec_repo_commit": "ef7c2778"
}
}
}
30 changes: 30 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19609,6 +19609,16 @@ components:
events over all hours in the current date for the given org.
format: int64
type: integer
code_analysis_sa_committers_hwm:
description: Shows the high-water mark of all Static Analysis committers
over all hours in the current date for the given org.
format: int64
type: integer
code_analysis_sca_committers_hwm:
description: Shows the high-water mark of all static Software Composition
Analysis committers 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 @@ -20349,6 +20359,16 @@ components:
events over all hours in the current date for the given org.
format: int64
type: integer
code_analysis_sa_committers_hwm:
description: Shows the high-water mark of all Static Analysis committers
over all hours in the current date for the given org.
format: int64
type: integer
code_analysis_sca_committers_hwm:
description: Shows the high-water mark of all static Software Composition
Analysis committers 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 @@ -21100,6 +21120,16 @@ components:
events over all hours in the current month for all organizations.
format: int64
type: integer
code_analysis_sa_committers_hwm_sum:
description: Shows the high-water mark of all Static Analysis committers
over all hours in the current month for all organizations.
format: int64
type: integer
code_analysis_sca_committers_hwm_sum:
description: Shows the high-water mark of all static Software Composition
Analysis committers 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
2 changes: 1 addition & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40326,7 +40326,7 @@ paths:
`observability_pipelines`,

`online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`,
`sds`, `snmp`,
`sds`, `snmp`, `software_delivery`,

`synthetics_api`, `synthetics_browser`, `synthetics_mobile`, `synthetics_parallel_testing`,
`timeseries`, `vuln_management`,
Expand Down
1 change: 0 additions & 1 deletion LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ openssl-sys,https://github.com/sfackler/rust-openssl,MIT,"Alex Crichton <alex@al
parking_lot,https://github.com/Amanieu/parking_lot,Apache-2.0 OR MIT,Amanieu d'Antras <amanieu@gmail.com>
pin-project-lite,https://github.com/taiki-e/pin-project-lite,Apache-2.0 OR MIT,The pin-project-lite Authors
pin-utils,https://github.com/rust-lang-nursery/pin-utils,MIT OR Apache-2.0,Josef Brandl <mail@josefbrandl.de>
portable-atomic,https://github.com/taiki-e/portable-atomic,Apache-2.0 OR MIT,The portable-atomic Authors
powerfmt,https://github.com/jhpratt/powerfmt,MIT OR Apache-2.0,Jacob Pratt <jacob@jhpratt.dev>
ppv-lite86,https://github.com/cryptocorrosion/cryptocorrosion,MIT OR Apache-2.0,The CryptoCorrosion Contributors
proc-macro2,https://github.com/dtolnay/proc-macro2,MIT OR Apache-2.0,"David Tolnay <dtolnay@gmail.com>, Alex Crichton <alex@alexcrichton.com>"
Expand Down
38 changes: 38 additions & 0 deletions src/datadogV1/model/model_usage_summary_date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ pub struct UsageSummaryDate {
/// Shows the sum of all Cloud Security Information and Event Management events over all hours in the current date for the given org.
#[serde(rename = "cloud_siem_events_sum")]
pub cloud_siem_events_sum: Option<i64>,
/// Shows the high-water mark of all Static Analysis committers over all hours in the current date for the given org.
#[serde(rename = "code_analysis_sa_committers_hwm")]
pub code_analysis_sa_committers_hwm: Option<i64>,
/// 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 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 @@ -469,6 +475,8 @@ impl UsageSummaryDate {
cloud_cost_management_gcp_host_count_avg: None,
cloud_cost_management_host_count_avg: None,
cloud_siem_events_sum: None,
code_analysis_sa_committers_hwm: None,
code_analysis_sca_committers_hwm: None,
container_avg: None,
container_excl_agent_avg: None,
container_hwm: None,
Expand Down Expand Up @@ -749,6 +757,18 @@ impl UsageSummaryDate {
self
}

#[allow(deprecated)]
pub fn code_analysis_sa_committers_hwm(mut self, value: i64) -> Self {
self.code_analysis_sa_committers_hwm = Some(value);
self
}

#[allow(deprecated)]
pub fn code_analysis_sca_committers_hwm(mut self, value: i64) -> Self {
self.code_analysis_sca_committers_hwm = Some(value);
self
}

#[allow(deprecated)]
pub fn container_avg(mut self, value: i64) -> Self {
self.container_avg = Some(value);
Expand Down Expand Up @@ -1451,6 +1471,8 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
let mut cloud_cost_management_gcp_host_count_avg: Option<i64> = None;
let mut cloud_cost_management_host_count_avg: Option<i64> = None;
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 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 @@ -1762,6 +1784,20 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
cloud_siem_events_sum =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"code_analysis_sa_committers_hwm" => {
if v.is_null() {
continue;
}
code_analysis_sa_committers_hwm =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"code_analysis_sca_committers_hwm" => {
if v.is_null() {
continue;
}
code_analysis_sca_committers_hwm =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"container_avg" => {
if v.is_null() {
continue;
Expand Down Expand Up @@ -2547,6 +2583,8 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
cloud_cost_management_gcp_host_count_avg,
cloud_cost_management_host_count_avg,
cloud_siem_events_sum,
code_analysis_sa_committers_hwm,
code_analysis_sca_committers_hwm,
container_avg,
container_excl_agent_avg,
container_hwm,
Expand Down
38 changes: 38 additions & 0 deletions src/datadogV1/model/model_usage_summary_date_org.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ pub struct UsageSummaryDateOrg {
/// Shows the sum of all Cloud Security Information and Event Management events over all hours in the current date for the given org.
#[serde(rename = "cloud_siem_events_sum")]
pub cloud_siem_events_sum: Option<i64>,
/// Shows the high-water mark of all Static Analysis committers over all hours in the current date for the given org.
#[serde(rename = "code_analysis_sa_committers_hwm")]
pub code_analysis_sa_committers_hwm: Option<i64>,
/// 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 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 @@ -490,6 +496,8 @@ impl UsageSummaryDateOrg {
cloud_cost_management_gcp_host_count_avg: None,
cloud_cost_management_host_count_avg: None,
cloud_siem_events_sum: None,
code_analysis_sa_committers_hwm: None,
code_analysis_sca_committers_hwm: None,
container_avg: None,
container_excl_agent_avg: None,
container_hwm: None,
Expand Down Expand Up @@ -786,6 +794,18 @@ impl UsageSummaryDateOrg {
self
}

#[allow(deprecated)]
pub fn code_analysis_sa_committers_hwm(mut self, value: i64) -> Self {
self.code_analysis_sa_committers_hwm = Some(value);
self
}

#[allow(deprecated)]
pub fn code_analysis_sca_committers_hwm(mut self, value: i64) -> Self {
self.code_analysis_sca_committers_hwm = Some(value);
self
}

#[allow(deprecated)]
pub fn container_avg(mut self, value: i64) -> Self {
self.container_avg = Some(value);
Expand Down Expand Up @@ -1514,6 +1534,8 @@ impl<'de> Deserialize<'de> for UsageSummaryDateOrg {
let mut cloud_cost_management_gcp_host_count_avg: Option<i64> = None;
let mut cloud_cost_management_host_count_avg: Option<i64> = None;
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 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 @@ -1843,6 +1865,20 @@ impl<'de> Deserialize<'de> for UsageSummaryDateOrg {
cloud_siem_events_sum =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"code_analysis_sa_committers_hwm" => {
if v.is_null() {
continue;
}
code_analysis_sa_committers_hwm =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"code_analysis_sca_committers_hwm" => {
if v.is_null() {
continue;
}
code_analysis_sca_committers_hwm =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"container_avg" => {
if v.is_null() {
continue;
Expand Down Expand Up @@ -2656,6 +2692,8 @@ impl<'de> Deserialize<'de> for UsageSummaryDateOrg {
cloud_cost_management_gcp_host_count_avg,
cloud_cost_management_host_count_avg,
cloud_siem_events_sum,
code_analysis_sa_committers_hwm,
code_analysis_sca_committers_hwm,
container_avg,
container_excl_agent_avg,
container_hwm,
Expand Down
38 changes: 38 additions & 0 deletions src/datadogV1/model/model_usage_summary_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ pub struct UsageSummaryResponse {
/// Shows the sum of all Cloud Security Information and Event Management events over all hours in the current month for all organizations.
#[serde(rename = "cloud_siem_events_agg_sum")]
pub cloud_siem_events_agg_sum: Option<i64>,
/// Shows the high-water mark of all Static Analysis committers over all hours in the current month for all organizations.
#[serde(rename = "code_analysis_sa_committers_hwm_sum")]
pub code_analysis_sa_committers_hwm_sum: Option<i64>,
/// 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<i64>,
/// 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<i64>,
Expand Down Expand Up @@ -506,6 +512,8 @@ impl UsageSummaryResponse {
cloud_cost_management_gcp_host_count_avg_sum: None,
cloud_cost_management_host_count_avg_sum: None,
cloud_siem_events_agg_sum: None,
code_analysis_sa_committers_hwm_sum: None,
code_analysis_sca_committers_hwm_sum: None,
container_avg_sum: None,
container_excl_agent_avg_sum: None,
container_hwm_sum: None,
Expand Down Expand Up @@ -802,6 +810,18 @@ impl UsageSummaryResponse {
self
}

#[allow(deprecated)]
pub fn code_analysis_sa_committers_hwm_sum(mut self, value: i64) -> Self {
self.code_analysis_sa_committers_hwm_sum = Some(value);
self
}

#[allow(deprecated)]
pub fn code_analysis_sca_committers_hwm_sum(mut self, value: i64) -> Self {
self.code_analysis_sca_committers_hwm_sum = Some(value);
self
}

#[allow(deprecated)]
pub fn container_avg_sum(mut self, value: i64) -> Self {
self.container_avg_sum = Some(value);
Expand Down Expand Up @@ -1565,6 +1585,8 @@ impl<'de> Deserialize<'de> for UsageSummaryResponse {
let mut cloud_cost_management_gcp_host_count_avg_sum: Option<i64> = None;
let mut cloud_cost_management_host_count_avg_sum: Option<i64> = None;
let mut cloud_siem_events_agg_sum: Option<i64> = None;
let mut code_analysis_sa_committers_hwm_sum: Option<i64> = None;
let mut code_analysis_sca_committers_hwm_sum: Option<i64> = None;
let mut container_avg_sum: Option<i64> = None;
let mut container_excl_agent_avg_sum: Option<i64> = None;
let mut container_hwm_sum: Option<i64> = None;
Expand Down Expand Up @@ -1893,6 +1915,20 @@ impl<'de> Deserialize<'de> for UsageSummaryResponse {
cloud_siem_events_agg_sum =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"code_analysis_sa_committers_hwm_sum" => {
if v.is_null() {
continue;
}
code_analysis_sa_committers_hwm_sum =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"code_analysis_sca_committers_hwm_sum" => {
if v.is_null() {
continue;
}
code_analysis_sca_committers_hwm_sum =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"container_avg_sum" => {
if v.is_null() {
continue;
Expand Down Expand Up @@ -2748,6 +2784,8 @@ impl<'de> Deserialize<'de> for UsageSummaryResponse {
cloud_cost_management_gcp_host_count_avg_sum,
cloud_cost_management_host_count_avg_sum,
cloud_siem_events_agg_sum,
code_analysis_sa_committers_hwm_sum,
code_analysis_sca_committers_hwm_sum,
container_avg_sum,
container_excl_agent_avg_sum,
container_hwm_sum,
Expand Down
Loading