Skip to content

Commit db1f140

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add new fields to usage metering api spec (#1061)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent d49202c commit db1f140

File tree

4 files changed

+276
-0
lines changed

4 files changed

+276
-0
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20913,6 +20913,11 @@ components:
2091320913
for the given date and given organization.
2091420914
format: int64
2091520915
type: integer
20916+
cloud_cost_management_oci_host_count_avg:
20917+
description: Average host count for Cloud Cost Management on OCI for the
20918+
given date and organization.
20919+
format: int64
20920+
type: integer
2091620921
cloud_siem_events_sum:
2091720922
description: Shows the sum of all Cloud Security Information and Event Management
2091820923
events over all hours in the current date for the given org.
@@ -21147,6 +21152,11 @@ components:
2114721152
Plus over all hours in the current date for the given org.
2114821153
format: int64
2114921154
type: integer
21155+
eph_infra_host_proxmox_sum:
21156+
description: Sum of all ephemeral infrastructure hosts for Proxmox over
21157+
all hours in the current date for all organizations.
21158+
format: int64
21159+
type: integer
2115021160
error_tracking_apm_error_events_sum:
2115121161
description: Shows the sum of all Error Tracking APM error events over all
2115221162
hours in the current date for the given org.
@@ -21443,6 +21453,16 @@ components:
2144321453
within the current date for all organizations.
2144421454
format: int64
2144521455
type: integer
21456+
proxmox_host_sum:
21457+
description: Sum of all Proxmox hosts over all hours in the current date
21458+
for all organizations.
21459+
format: int64
21460+
type: integer
21461+
proxmox_host_top99p:
21462+
description: 99th percentile of all Proxmox hosts over all hours in the
21463+
current date for all organizations.
21464+
format: int64
21465+
type: integer
2144621466
published_app_hwm:
2144721467
description: Shows the high-water mark of all published applications over
2144821468
all hours in the current date for all organizations.
@@ -22026,6 +22046,11 @@ components:
2202622046
for the given date and given org.
2202722047
format: int64
2202822048
type: integer
22049+
cloud_cost_management_oci_host_count_avg:
22050+
description: Average host count for Cloud Cost Management on OCI for the
22051+
given date and organization.
22052+
format: int64
22053+
type: integer
2202922054
cloud_siem_events_sum:
2203022055
description: Shows the sum of all Cloud Security Information and Event Management
2203122056
events over all hours in the current date for the given org.
@@ -22266,6 +22291,11 @@ components:
2226622291
Plus over all hours in the current date for the given org.
2226722292
format: int64
2226822293
type: integer
22294+
eph_infra_host_proxmox_sum:
22295+
description: Sum of all ephemeral infrastructure hosts for Proxmox over
22296+
all hours in the current date for the given organization.
22297+
format: int64
22298+
type: integer
2226922299
error_tracking_apm_error_events_sum:
2227022300
description: Shows the sum of all Error Tracking APM error events over all
2227122301
hours in the current date for the given org.
@@ -22560,6 +22590,16 @@ components:
2256022590
within the current date for the given org.
2256122591
format: int64
2256222592
type: integer
22593+
proxmox_host_sum:
22594+
description: Sum of all Proxmox hosts over all hours in the current date
22595+
for the given organization.
22596+
format: int64
22597+
type: integer
22598+
proxmox_host_top99p:
22599+
description: 99th percentile of all Proxmox hosts over all hours in the
22600+
current date for the given organization.
22601+
format: int64
22602+
type: integer
2256322603
public_id:
2256422604
description: The organization public id.
2256522605
type: string
@@ -23149,6 +23189,11 @@ components:
2314923189
all cloud providers.
2315023190
format: int64
2315123191
type: integer
23192+
cloud_cost_management_oci_host_count_avg_sum:
23193+
description: Sum of the average host counts for Cloud Cost Management on
23194+
OCI.
23195+
format: int64
23196+
type: integer
2315223197
cloud_siem_events_agg_sum:
2315323198
description: Shows the sum of all Cloud Security Information and Event Management
2315423199
events over all hours in the current month for all organizations.
@@ -23390,6 +23435,11 @@ components:
2339023435
Plus over all hours in the current month for all organizations.
2339123436
format: int64
2339223437
type: integer
23438+
eph_infra_host_proxmox_agg_sum:
23439+
description: Sum of all ephemeral infrastructure hosts for Proxmox over
23440+
all hours in the current month for all organizations.
23441+
format: int64
23442+
type: integer
2339323443
error_tracking_apm_error_events_agg_sum:
2339423444
description: Shows the sum of all Error Tracking APM error events over all
2339523445
hours in the current month for all organizations.
@@ -23708,6 +23758,16 @@ components:
2370823758
in the current month for all organizations.
2370923759
format: int64
2371023760
type: integer
23761+
proxmox_host_agg_sum:
23762+
description: Sum of all Proxmox hosts over all hours in the current month
23763+
for all organizations.
23764+
format: int64
23765+
type: integer
23766+
proxmox_host_top99p_sum:
23767+
description: Sum of the 99th percentile of all Proxmox hosts over all hours
23768+
in the current month for all organizations.
23769+
format: int64
23770+
type: integer
2371123771
published_app_hwm_sum:
2371223772
description: Shows the high-water mark of all published applications over
2371323773
all hours in the current month for all organizations.

src/datadogV1/model/model_usage_summary_date.rs

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ pub struct UsageSummaryDate {
104104
/// Host count average of Cloud Cost Management for all cloud providers for the given date and given organization.
105105
#[serde(rename = "cloud_cost_management_host_count_avg")]
106106
pub cloud_cost_management_host_count_avg: Option<i64>,
107+
/// Average host count for Cloud Cost Management on OCI for the given date and organization.
108+
#[serde(rename = "cloud_cost_management_oci_host_count_avg")]
109+
pub cloud_cost_management_oci_host_count_avg: Option<i64>,
107110
/// Shows the sum of all Cloud Security Information and Event Management events over all hours in the current date for the given org.
108111
#[serde(rename = "cloud_siem_events_sum")]
109112
pub cloud_siem_events_sum: Option<i64>,
@@ -239,6 +242,9 @@ pub struct UsageSummaryDate {
239242
/// Shows the sum of all ephemeral infrastructure hosts for Pro Plus over all hours in the current date for the given org.
240243
#[serde(rename = "eph_infra_host_proplus_sum")]
241244
pub eph_infra_host_proplus_sum: Option<i64>,
245+
/// Sum of all ephemeral infrastructure hosts for Proxmox over all hours in the current date for all organizations.
246+
#[serde(rename = "eph_infra_host_proxmox_sum")]
247+
pub eph_infra_host_proxmox_sum: Option<i64>,
242248
/// Shows the sum of all Error Tracking APM error events over all hours in the current date for the given org.
243249
#[serde(rename = "error_tracking_apm_error_events_sum")]
244250
pub error_tracking_apm_error_events_sum: Option<i64>,
@@ -413,6 +419,12 @@ pub struct UsageSummaryDate {
413419
/// Shows the 99th percentile of all profiled hosts over all hours within the current date for all organizations.
414420
#[serde(rename = "profiling_host_top99p")]
415421
pub profiling_host_top99p: Option<i64>,
422+
/// Sum of all Proxmox hosts over all hours in the current date for all organizations.
423+
#[serde(rename = "proxmox_host_sum")]
424+
pub proxmox_host_sum: Option<i64>,
425+
/// 99th percentile of all Proxmox hosts over all hours in the current date for all organizations.
426+
#[serde(rename = "proxmox_host_top99p")]
427+
pub proxmox_host_top99p: Option<i64>,
416428
/// Shows the high-water mark of all published applications over all hours in the current date for all organizations.
417429
#[serde(rename = "published_app_hwm")]
418430
pub published_app_hwm: Option<i64>,
@@ -684,6 +696,7 @@ impl UsageSummaryDate {
684696
cloud_cost_management_azure_host_count_avg: None,
685697
cloud_cost_management_gcp_host_count_avg: None,
686698
cloud_cost_management_host_count_avg: None,
699+
cloud_cost_management_oci_host_count_avg: None,
687700
cloud_siem_events_sum: None,
688701
code_analysis_sa_committers_hwm: None,
689702
code_analysis_sca_committers_hwm: None,
@@ -729,6 +742,7 @@ impl UsageSummaryDate {
729742
eph_infra_host_opentelemetry_sum: None,
730743
eph_infra_host_pro_sum: None,
731744
eph_infra_host_proplus_sum: None,
745+
eph_infra_host_proxmox_sum: None,
732746
error_tracking_apm_error_events_sum: None,
733747
error_tracking_error_events_sum: None,
734748
error_tracking_events_sum: None,
@@ -784,6 +798,8 @@ impl UsageSummaryDate {
784798
product_analytics_sum: None,
785799
profiling_aas_count_top99p: None,
786800
profiling_host_top99p: None,
801+
proxmox_host_sum: None,
802+
proxmox_host_top99p: None,
787803
published_app_hwm: None,
788804
rum_browser_and_mobile_session_count: None,
789805
rum_browser_legacy_session_count_sum: None,
@@ -1045,6 +1061,12 @@ impl UsageSummaryDate {
10451061
self
10461062
}
10471063

1064+
#[allow(deprecated)]
1065+
pub fn cloud_cost_management_oci_host_count_avg(mut self, value: i64) -> Self {
1066+
self.cloud_cost_management_oci_host_count_avg = Some(value);
1067+
self
1068+
}
1069+
10481070
#[allow(deprecated)]
10491071
pub fn cloud_siem_events_sum(mut self, value: i64) -> Self {
10501072
self.cloud_siem_events_sum = Some(value);
@@ -1315,6 +1337,12 @@ impl UsageSummaryDate {
13151337
self
13161338
}
13171339

1340+
#[allow(deprecated)]
1341+
pub fn eph_infra_host_proxmox_sum(mut self, value: i64) -> Self {
1342+
self.eph_infra_host_proxmox_sum = Some(value);
1343+
self
1344+
}
1345+
13181346
#[allow(deprecated)]
13191347
pub fn error_tracking_apm_error_events_sum(mut self, value: i64) -> Self {
13201348
self.error_tracking_apm_error_events_sum = Some(value);
@@ -1648,6 +1676,18 @@ impl UsageSummaryDate {
16481676
self
16491677
}
16501678

1679+
#[allow(deprecated)]
1680+
pub fn proxmox_host_sum(mut self, value: i64) -> Self {
1681+
self.proxmox_host_sum = Some(value);
1682+
self
1683+
}
1684+
1685+
#[allow(deprecated)]
1686+
pub fn proxmox_host_top99p(mut self, value: i64) -> Self {
1687+
self.proxmox_host_top99p = Some(value);
1688+
self
1689+
}
1690+
16511691
#[allow(deprecated)]
16521692
pub fn published_app_hwm(mut self, value: i64) -> Self {
16531693
self.published_app_hwm = Some(value);
@@ -2193,6 +2233,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
21932233
let mut cloud_cost_management_azure_host_count_avg: Option<i64> = None;
21942234
let mut cloud_cost_management_gcp_host_count_avg: Option<i64> = None;
21952235
let mut cloud_cost_management_host_count_avg: Option<i64> = None;
2236+
let mut cloud_cost_management_oci_host_count_avg: Option<i64> = None;
21962237
let mut cloud_siem_events_sum: Option<i64> = None;
21972238
let mut code_analysis_sa_committers_hwm: Option<i64> = None;
21982239
let mut code_analysis_sca_committers_hwm: Option<i64> = None;
@@ -2238,6 +2279,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
22382279
let mut eph_infra_host_opentelemetry_sum: Option<i64> = None;
22392280
let mut eph_infra_host_pro_sum: Option<i64> = None;
22402281
let mut eph_infra_host_proplus_sum: Option<i64> = None;
2282+
let mut eph_infra_host_proxmox_sum: Option<i64> = None;
22412283
let mut error_tracking_apm_error_events_sum: Option<i64> = None;
22422284
let mut error_tracking_error_events_sum: Option<i64> = None;
22432285
let mut error_tracking_events_sum: Option<i64> = None;
@@ -2294,6 +2336,8 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
22942336
let mut product_analytics_sum: Option<i64> = None;
22952337
let mut profiling_aas_count_top99p: Option<i64> = None;
22962338
let mut profiling_host_top99p: Option<i64> = None;
2339+
let mut proxmox_host_sum: Option<i64> = None;
2340+
let mut proxmox_host_top99p: Option<i64> = None;
22972341
let mut published_app_hwm: Option<i64> = None;
22982342
let mut rum_browser_and_mobile_session_count: Option<i64> = None;
22992343
let mut rum_browser_legacy_session_count_sum: Option<i64> = None;
@@ -2569,6 +2613,12 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
25692613
}
25702614
cloud_cost_management_host_count_avg = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
25712615
},
2616+
"cloud_cost_management_oci_host_count_avg" => {
2617+
if v.is_null() {
2618+
continue;
2619+
}
2620+
cloud_cost_management_oci_host_count_avg = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
2621+
},
25722622
"cloud_siem_events_sum" => {
25732623
if v.is_null() {
25742624
continue;
@@ -2839,6 +2889,12 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
28392889
}
28402890
eph_infra_host_proplus_sum = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
28412891
},
2892+
"eph_infra_host_proxmox_sum" => {
2893+
if v.is_null() {
2894+
continue;
2895+
}
2896+
eph_infra_host_proxmox_sum = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
2897+
},
28422898
"error_tracking_apm_error_events_sum" => {
28432899
if v.is_null() {
28442900
continue;
@@ -3169,6 +3225,18 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
31693225
}
31703226
profiling_host_top99p = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
31713227
},
3228+
"proxmox_host_sum" => {
3229+
if v.is_null() {
3230+
continue;
3231+
}
3232+
proxmox_host_sum = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
3233+
},
3234+
"proxmox_host_top99p" => {
3235+
if v.is_null() {
3236+
continue;
3237+
}
3238+
proxmox_host_top99p = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
3239+
},
31723240
"published_app_hwm" => {
31733241
if v.is_null() {
31743242
continue;
@@ -3665,6 +3733,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
36653733
cloud_cost_management_azure_host_count_avg,
36663734
cloud_cost_management_gcp_host_count_avg,
36673735
cloud_cost_management_host_count_avg,
3736+
cloud_cost_management_oci_host_count_avg,
36683737
cloud_siem_events_sum,
36693738
code_analysis_sa_committers_hwm,
36703739
code_analysis_sca_committers_hwm,
@@ -3710,6 +3779,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
37103779
eph_infra_host_opentelemetry_sum,
37113780
eph_infra_host_pro_sum,
37123781
eph_infra_host_proplus_sum,
3782+
eph_infra_host_proxmox_sum,
37133783
error_tracking_apm_error_events_sum,
37143784
error_tracking_error_events_sum,
37153785
error_tracking_events_sum,
@@ -3765,6 +3835,8 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
37653835
product_analytics_sum,
37663836
profiling_aas_count_top99p,
37673837
profiling_host_top99p,
3838+
proxmox_host_sum,
3839+
proxmox_host_top99p,
37683840
published_app_hwm,
37693841
rum_browser_and_mobile_session_count,
37703842
rum_browser_legacy_session_count_sum,

0 commit comments

Comments
 (0)