Skip to content

Commit

Permalink
Regenerate client from commit ae3b5463 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Nov 8, 2024
1 parent d638a8c commit c0f091d
Show file tree
Hide file tree
Showing 9 changed files with 147 additions and 15 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-11-08 14:25:31.791201",
"spec_repo_commit": "d907813e"
"regenerated": "2024-11-08 19:36:27.945748",
"spec_repo_commit": "ae3b5463"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-08 14:25:31.809719",
"spec_repo_commit": "d907813e"
"regenerated": "2024-11-08 19:36:27.964476",
"spec_repo_commit": "ae3b5463"
}
}
}
32 changes: 31 additions & 1 deletion .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4187,6 +4187,7 @@ components:
- custom_ingested_timeseries_usage
- custom_timeseries_usage
- cws_containers_usage
- cws_fargate_task_usage
- cws_hosts_usage
- data_jobs_monitoring_usage
- data_stream_monitoring_usage
Expand Down Expand Up @@ -4259,6 +4260,7 @@ components:
- CUSTOM_INGESTED_TIMESERIES_USAGE
- CUSTOM_TIMESERIES_USAGE
- CWS_CONTAINERS_USAGE
- CWS_FARGATE_TASK_USAGE
- CWS_HOSTS_USAGE
- DATA_JOBS_MONITORING_USAGE
- DATA_STREAM_MONITORING_USAGE
Expand Down Expand Up @@ -7939,6 +7941,8 @@ components:
- custom_ingested_timeseries_percentage
- cws_containers_percentage
- cws_containers_usage
- cws_fargate_task_percentage
- cws_fargate_task_usage
- cws_hosts_percentage
- cws_hosts_usage
- data_jobs_monitoring_usage
Expand Down Expand Up @@ -8078,6 +8082,8 @@ components:
- CUSTOM_INGESTED_TIMESERIES_PERCENTAGE
- CWS_CONTAINERS_PERCENTAGE
- CWS_CONTAINERS_USAGE
- CWS_FARGATE_TASK_PERCENTAGE
- CWS_FARGATE_TASK_USAGE
- CWS_HOSTS_PERCENTAGE
- CWS_HOSTS_USAGE
- DATA_JOBS_MONITORING_USAGE
Expand Down Expand Up @@ -8357,6 +8363,15 @@ components:
description: The Cloud Workload Security container usage by tag(s).
format: double
type: number
cws_fargate_task_percentage:
description: The percentage of Cloud Workload Security Fargate task usage
by tag(s).
format: double
type: number
cws_fargate_task_usage:
description: The Cloud Workload Security Fargate task usage by tag(s).
format: double
type: number
cws_hosts_percentage:
description: The percentage of Cloud Workload Security host usage by tag(s).
format: double
Expand Down Expand Up @@ -19909,6 +19924,11 @@ components:
over all hours in the current date for all organizations.
format: int64
type: integer
cws_fargate_task_avg:
description: Shows the average of all distinct Cloud Workload Security Fargate
tasks over all hours in the current date for all organizations.
format: int64
type: integer
cws_host_top99p:
description: Shows the 99th percentile of all Cloud Workload Security hosts
over all hours in the current date for all organizations.
Expand Down Expand Up @@ -20679,6 +20699,11 @@ components:
over all hours in the current date for the given org.
format: int64
type: integer
cws_fargate_task_avg:
description: Shows the average of all distinct Cloud Workload Security Fargate
tasks over all hours in the current date for the given org.
format: int64
type: integer
cws_host_top99p:
description: Shows the 99th percentile of all Cloud Workload Security hosts
over all hours in the current date for the given org.
Expand Down Expand Up @@ -21443,11 +21468,16 @@ components:
hours in the current month for all organizations.
format: int64
type: integer
cws_containers_avg_sum:
cws_container_avg_sum:
description: Shows the average of all distinct Cloud Workload Security containers
over all hours in the current month for all organizations.
format: int64
type: integer
cws_fargate_task_avg_sum:
description: Shows the average of all distinct Cloud Workload Security Fargate
tasks over all hours in the current month for all organizations.
format: int64
type: integer
cws_host_top99p_sum:
description: Shows the 99th percentile of all Cloud Workload Security hosts
over all hours in the current month for all organizations.
Expand Down
2 changes: 1 addition & 1 deletion examples/v2_security-monitoring_GetHistoricalJob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ async fn main() {
// there is a valid "historical_job" in the system
let historical_job_data_id = std::env::var("HISTORICAL_JOB_DATA_ID").unwrap();
let mut configuration = datadog::Configuration::new();
configuration.set_unstable_operation_enabled("v2.GetHistoricalJob", true);
configuration.set_unstable_operation_enabled("v2.RunHistoricalJob", true);
configuration.set_unstable_operation_enabled("v2.GetHistoricalJob", true);
let api = SecurityMonitoringAPI::with_config(configuration);
let resp = api.get_historical_job(historical_job_data_id.clone()).await;
if let Ok(value) = resp {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub enum HourlyUsageAttributionUsageType {
CUSTOM_INGESTED_TIMESERIES_USAGE,
CUSTOM_TIMESERIES_USAGE,
CWS_CONTAINERS_USAGE,
CWS_FARGATE_TASK_USAGE,
CWS_HOSTS_USAGE,
DATA_JOBS_MONITORING_USAGE,
DATA_STREAM_MONITORING_USAGE,
Expand Down Expand Up @@ -112,6 +113,7 @@ impl ToString for HourlyUsageAttributionUsageType {
}
Self::CUSTOM_TIMESERIES_USAGE => String::from("custom_timeseries_usage"),
Self::CWS_CONTAINERS_USAGE => String::from("cws_containers_usage"),
Self::CWS_FARGATE_TASK_USAGE => String::from("cws_fargate_task_usage"),
Self::CWS_HOSTS_USAGE => String::from("cws_hosts_usage"),
Self::DATA_JOBS_MONITORING_USAGE => String::from("data_jobs_monitoring_usage"),
Self::DATA_STREAM_MONITORING_USAGE => String::from("data_stream_monitoring_usage"),
Expand Down Expand Up @@ -222,6 +224,7 @@ impl<'de> Deserialize<'de> for HourlyUsageAttributionUsageType {
"custom_ingested_timeseries_usage" => Self::CUSTOM_INGESTED_TIMESERIES_USAGE,
"custom_timeseries_usage" => Self::CUSTOM_TIMESERIES_USAGE,
"cws_containers_usage" => Self::CWS_CONTAINERS_USAGE,
"cws_fargate_task_usage" => Self::CWS_FARGATE_TASK_USAGE,
"cws_hosts_usage" => Self::CWS_HOSTS_USAGE,
"data_jobs_monitoring_usage" => Self::DATA_JOBS_MONITORING_USAGE,
"data_stream_monitoring_usage" => Self::DATA_STREAM_MONITORING_USAGE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ pub enum MonthlyUsageAttributionSupportedMetrics {
CUSTOM_INGESTED_TIMESERIES_PERCENTAGE,
CWS_CONTAINERS_PERCENTAGE,
CWS_CONTAINERS_USAGE,
CWS_FARGATE_TASK_PERCENTAGE,
CWS_FARGATE_TASK_USAGE,
CWS_HOSTS_PERCENTAGE,
CWS_HOSTS_USAGE,
DATA_JOBS_MONITORING_USAGE,
Expand Down Expand Up @@ -194,6 +196,8 @@ impl ToString for MonthlyUsageAttributionSupportedMetrics {
}
Self::CWS_CONTAINERS_PERCENTAGE => String::from("cws_containers_percentage"),
Self::CWS_CONTAINERS_USAGE => String::from("cws_containers_usage"),
Self::CWS_FARGATE_TASK_PERCENTAGE => String::from("cws_fargate_task_percentage"),
Self::CWS_FARGATE_TASK_USAGE => String::from("cws_fargate_task_usage"),
Self::CWS_HOSTS_PERCENTAGE => String::from("cws_hosts_percentage"),
Self::CWS_HOSTS_USAGE => String::from("cws_hosts_usage"),
Self::DATA_JOBS_MONITORING_USAGE => String::from("data_jobs_monitoring_usage"),
Expand Down Expand Up @@ -401,6 +405,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionSupportedMetrics {
"custom_ingested_timeseries_percentage" => Self::CUSTOM_INGESTED_TIMESERIES_PERCENTAGE,
"cws_containers_percentage" => Self::CWS_CONTAINERS_PERCENTAGE,
"cws_containers_usage" => Self::CWS_CONTAINERS_USAGE,
"cws_fargate_task_percentage" => Self::CWS_FARGATE_TASK_PERCENTAGE,
"cws_fargate_task_usage" => Self::CWS_FARGATE_TASK_USAGE,
"cws_hosts_percentage" => Self::CWS_HOSTS_PERCENTAGE,
"cws_hosts_usage" => Self::CWS_HOSTS_USAGE,
"data_jobs_monitoring_usage" => Self::DATA_JOBS_MONITORING_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 @@ -131,6 +131,12 @@ pub struct MonthlyUsageAttributionValues {
/// The Cloud Workload Security container usage by tag(s).
#[serde(rename = "cws_containers_usage")]
pub cws_containers_usage: Option<f64>,
/// The percentage of Cloud Workload Security Fargate task usage by tag(s).
#[serde(rename = "cws_fargate_task_percentage")]
pub cws_fargate_task_percentage: Option<f64>,
/// The Cloud Workload Security Fargate task usage by tag(s).
#[serde(rename = "cws_fargate_task_usage")]
pub cws_fargate_task_usage: Option<f64>,
/// The percentage of Cloud Workload Security host usage by tag(s).
#[serde(rename = "cws_hosts_percentage")]
pub cws_hosts_percentage: Option<f64>,
Expand Down Expand Up @@ -463,6 +469,8 @@ impl MonthlyUsageAttributionValues {
custom_timeseries_usage: None,
cws_containers_percentage: None,
cws_containers_usage: None,
cws_fargate_task_percentage: None,
cws_fargate_task_usage: None,
cws_hosts_percentage: None,
cws_hosts_usage: None,
data_jobs_monitoring_usage: None,
Expand Down Expand Up @@ -762,6 +770,16 @@ impl MonthlyUsageAttributionValues {
self
}

pub fn cws_fargate_task_percentage(mut self, value: f64) -> Self {
self.cws_fargate_task_percentage = Some(value);
self
}

pub fn cws_fargate_task_usage(mut self, value: f64) -> Self {
self.cws_fargate_task_usage = Some(value);
self
}

pub fn cws_hosts_percentage(mut self, value: f64) -> Self {
self.cws_hosts_percentage = Some(value);
self
Expand Down Expand Up @@ -1304,6 +1322,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
let mut custom_timeseries_usage: Option<f64> = None;
let mut cws_containers_percentage: Option<f64> = None;
let mut cws_containers_usage: Option<f64> = None;
let mut cws_fargate_task_percentage: Option<f64> = None;
let mut cws_fargate_task_usage: Option<f64> = None;
let mut cws_hosts_percentage: Option<f64> = None;
let mut cws_hosts_usage: Option<f64> = None;
let mut data_jobs_monitoring_usage: Option<f64> = None;
Expand Down Expand Up @@ -1685,6 +1705,20 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
cws_containers_usage =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"cws_fargate_task_percentage" => {
if v.is_null() {
continue;
}
cws_fargate_task_percentage =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"cws_fargate_task_usage" => {
if v.is_null() {
continue;
}
cws_fargate_task_usage =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"cws_hosts_percentage" => {
if v.is_null() {
continue;
Expand Down Expand Up @@ -2391,6 +2425,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
custom_timeseries_usage,
cws_containers_percentage,
cws_containers_usage,
cws_fargate_task_percentage,
cws_fargate_task_usage,
cws_hosts_percentage,
cws_hosts_usage,
data_jobs_monitoring_usage,
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 @@ -170,6 +170,9 @@ pub struct UsageSummaryDate {
/// Shows the average of all distinct Cloud Workload Security containers over all hours in the current date for all organizations.
#[serde(rename = "cws_container_count_avg")]
pub cws_container_count_avg: Option<i64>,
/// Shows the average of all distinct Cloud Workload Security Fargate tasks over all hours in the current date for all organizations.
#[serde(rename = "cws_fargate_task_avg")]
pub cws_fargate_task_avg: Option<i64>,
/// Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for all organizations.
#[serde(rename = "cws_host_top99p")]
pub cws_host_top99p: Option<i64>,
Expand Down Expand Up @@ -505,6 +508,7 @@ impl UsageSummaryDate {
cspm_host_top99p: None,
custom_ts_avg: None,
cws_container_count_avg: None,
cws_fargate_task_avg: None,
cws_host_top99p: None,
data_jobs_monitoring_host_hr_sum: None,
date: None,
Expand Down Expand Up @@ -909,6 +913,12 @@ impl UsageSummaryDate {
self
}

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

#[allow(deprecated)]
pub fn cws_host_top99p(mut self, value: i64) -> Self {
self.cws_host_top99p = Some(value);
Expand Down Expand Up @@ -1515,6 +1525,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
let mut cspm_host_top99p: Option<i64> = None;
let mut custom_ts_avg: Option<i64> = None;
let mut cws_container_count_avg: Option<i64> = None;
let mut cws_fargate_task_avg: Option<i64> = None;
let mut cws_host_top99p: Option<i64> = None;
let mut data_jobs_monitoring_host_hr_sum: Option<i64> = None;
let mut date: Option<chrono::DateTime<chrono::Utc>> = None;
Expand Down Expand Up @@ -1974,6 +1985,13 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
cws_container_count_avg =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"cws_fargate_task_avg" => {
if v.is_null() {
continue;
}
cws_fargate_task_avg =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"cws_host_top99p" => {
if v.is_null() {
continue;
Expand Down Expand Up @@ -2643,6 +2661,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDate {
cspm_host_top99p,
custom_ts_avg,
cws_container_count_avg,
cws_fargate_task_avg,
cws_host_top99p,
data_jobs_monitoring_host_hr_sum,
date,
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 @@ -182,6 +182,9 @@ pub struct UsageSummaryDateOrg {
/// Shows the average of all distinct Cloud Workload Security containers over all hours in the current date for the given org.
#[serde(rename = "cws_container_count_avg")]
pub cws_container_count_avg: Option<i64>,
/// Shows the average of all distinct Cloud Workload Security Fargate tasks over all hours in the current date for the given org.
#[serde(rename = "cws_fargate_task_avg")]
pub cws_fargate_task_avg: Option<i64>,
/// Shows the 99th percentile of all Cloud Workload Security hosts over all hours in the current date for the given org.
#[serde(rename = "cws_host_top99p")]
pub cws_host_top99p: Option<i64>,
Expand Down Expand Up @@ -528,6 +531,7 @@ impl UsageSummaryDateOrg {
custom_live_ts_avg: None,
custom_ts_avg: None,
cws_container_count_avg: None,
cws_fargate_task_avg: None,
cws_host_top99p: None,
data_jobs_monitoring_host_hr_sum: None,
dbm_host_top99p_sum: None,
Expand Down Expand Up @@ -958,6 +962,12 @@ impl UsageSummaryDateOrg {
self
}

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

#[allow(deprecated)]
pub fn cws_host_top99p(mut self, value: i64) -> Self {
self.cws_host_top99p = Some(value);
Expand Down Expand Up @@ -1580,6 +1590,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDateOrg {
let mut custom_live_ts_avg: Option<i64> = None;
let mut custom_ts_avg: Option<i64> = None;
let mut cws_container_count_avg: Option<i64> = None;
let mut cws_fargate_task_avg: Option<i64> = None;
let mut cws_host_top99p: Option<i64> = None;
let mut data_jobs_monitoring_host_hr_sum: Option<i64> = None;
let mut dbm_host_top99p_sum: Option<i64> = None;
Expand Down Expand Up @@ -2069,6 +2080,13 @@ impl<'de> Deserialize<'de> for UsageSummaryDateOrg {
cws_container_count_avg =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"cws_fargate_task_avg" => {
if v.is_null() {
continue;
}
cws_fargate_task_avg =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"cws_host_top99p" => {
if v.is_null() {
continue;
Expand Down Expand Up @@ -2754,6 +2772,7 @@ impl<'de> Deserialize<'de> for UsageSummaryDateOrg {
custom_live_ts_avg,
custom_ts_avg,
cws_container_count_avg,
cws_fargate_task_avg,
cws_host_top99p,
data_jobs_monitoring_host_hr_sum,
dbm_host_top99p_sum,
Expand Down
Loading

0 comments on commit c0f091d

Please sign in to comment.