Skip to content

Commit d0906df

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add new product Code Security host for summary endpoint and UA endpoints (#392)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent df11800 commit d0906df

8 files changed

+135
-4
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-13 14:31:40.464564",
8-
"spec_repo_commit": "ed3bb0a0"
7+
"regenerated": "2024-12-13 14:48:41.684377",
8+
"spec_repo_commit": "5392df51"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-13 14:31:40.482782",
13-
"spec_repo_commit": "ed3bb0a0"
12+
"regenerated": "2024-12-13 14:48:41.704277",
13+
"spec_repo_commit": "5392df51"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 29 additions & 0 deletions
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).
@@ -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.

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,

src/datadogV1/model/model_usage_summary_date.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ pub struct UsageSummaryDate {
104104
/// Shows the high-water mark of all static Software Composition Analysis committers over all hours in the current date for the given org.
105105
#[serde(rename = "code_analysis_sca_committers_hwm")]
106106
pub code_analysis_sca_committers_hwm: Option<i64>,
107+
/// Shows the 99th percentile of all Code Security hosts over all hours in the current date for the given org.
108+
#[serde(rename = "code_security_host_top99p")]
109+
pub code_security_host_top99p: Option<i64>,
107110
/// Shows the average of all distinct containers over all hours in the current date for all organizations.
108111
#[serde(rename = "container_avg")]
109112
pub container_avg: Option<i64>,
@@ -486,6 +489,7 @@ impl UsageSummaryDate {
486489
cloud_siem_events_sum: None,
487490
code_analysis_sa_committers_hwm: None,
488491
code_analysis_sca_committers_hwm: None,
492+
code_security_host_top99p: None,
489493
container_avg: None,
490494
container_excl_agent_avg: None,
491495
container_hwm: None,
@@ -781,6 +785,12 @@ impl UsageSummaryDate {
781785
self
782786
}
783787

788+
#[allow(deprecated)]
789+
pub fn code_security_host_top99p(mut self, value: i64) -> Self {
790+
self.code_security_host_top99p = Some(value);
791+
self
792+
}
793+
784794
#[allow(deprecated)]
785795
pub fn container_avg(mut self, value: i64) -> Self {
786796
self.container_avg = Some(value);
@@ -1503,6 +1513,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
15031513
let mut cloud_siem_events_sum: Option<i64> = None;
15041514
let mut code_analysis_sa_committers_hwm: Option<i64> = None;
15051515
let mut code_analysis_sca_committers_hwm: Option<i64> = None;
1516+
let mut code_security_host_top99p: Option<i64> = None;
15061517
let mut container_avg: Option<i64> = None;
15071518
let mut container_excl_agent_avg: Option<i64> = None;
15081519
let mut container_hwm: Option<i64> = None;
@@ -1831,6 +1842,13 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
18311842
code_analysis_sca_committers_hwm =
18321843
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
18331844
}
1845+
"code_security_host_top99p" => {
1846+
if v.is_null() {
1847+
continue;
1848+
}
1849+
code_security_host_top99p =
1850+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
1851+
}
18341852
"container_avg" => {
18351853
if v.is_null() {
18361854
continue;
@@ -2639,6 +2657,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
26392657
cloud_siem_events_sum,
26402658
code_analysis_sa_committers_hwm,
26412659
code_analysis_sca_committers_hwm,
2660+
code_security_host_top99p,
26422661
container_avg,
26432662
container_excl_agent_avg,
26442663
container_hwm,

src/datadogV1/model/model_usage_summary_date_org.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ pub struct UsageSummaryDateOrg {
110110
/// Shows the high-water mark of all static Software Composition Analysis committers over all hours in the current date for the given org.
111111
#[serde(rename = "code_analysis_sca_committers_hwm")]
112112
pub code_analysis_sca_committers_hwm: Option<i64>,
113+
/// Shows the 99th percentile of all Code Security hosts over all hours in the current date for the given org.
114+
#[serde(rename = "code_security_host_top99p")]
115+
pub code_security_host_top99p: Option<i64>,
113116
/// Shows the average of all distinct containers over all hours in the current date for the given org.
114117
#[serde(rename = "container_avg")]
115118
pub container_avg: Option<i64>,
@@ -507,6 +510,7 @@ impl UsageSummaryDateOrg {
507510
cloud_siem_events_sum: None,
508511
code_analysis_sa_committers_hwm: None,
509512
code_analysis_sca_committers_hwm: None,
513+
code_security_host_top99p: None,
510514
container_avg: None,
511515
container_excl_agent_avg: None,
512516
container_hwm: None,
@@ -818,6 +822,12 @@ impl UsageSummaryDateOrg {
818822
self
819823
}
820824

825+
#[allow(deprecated)]
826+
pub fn code_security_host_top99p(mut self, value: i64) -> Self {
827+
self.code_security_host_top99p = Some(value);
828+
self
829+
}
830+
821831
#[allow(deprecated)]
822832
pub fn container_avg(mut self, value: i64) -> Self {
823833
self.container_avg = Some(value);
@@ -1566,6 +1576,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDateOrg {
15661576
let mut cloud_siem_events_sum: Option<i64> = None;
15671577
let mut code_analysis_sa_committers_hwm: Option<i64> = None;
15681578
let mut code_analysis_sca_committers_hwm: Option<i64> = None;
1579+
let mut code_security_host_top99p: Option<i64> = None;
15691580
let mut container_avg: Option<i64> = None;
15701581
let mut container_excl_agent_avg: Option<i64> = None;
15711582
let mut container_hwm: Option<i64> = None;
@@ -1912,6 +1923,13 @@ impl<'de> Deserialize<'de> for UsageSummaryDateOrg {
19121923
code_analysis_sca_committers_hwm =
19131924
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
19141925
}
1926+
"code_security_host_top99p" => {
1927+
if v.is_null() {
1928+
continue;
1929+
}
1930+
code_security_host_top99p =
1931+
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
1932+
}
19151933
"container_avg" => {
19161934
if v.is_null() {
19171935
continue;
@@ -2748,6 +2766,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDateOrg {
27482766
cloud_siem_events_sum,
27492767
code_analysis_sa_committers_hwm,
27502768
code_analysis_sca_committers_hwm,
2769+
code_security_host_top99p,
27512770
container_avg,
27522771
container_excl_agent_avg,
27532772
container_hwm,

0 commit comments

Comments
 (0)