From f344650165c9ad9ad5b7a67878853b709270efde Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 29 Mar 2024 13:24:33 +0000 Subject: [PATCH] Regenerate client from commit 3e55ad68 of spec repo --- .apigentools-info | 8 +-- .generator/schemas/v1/openapi.yaml | 29 ++++++++ ...del_hourly_usage_attribution_usage_type.rs | 10 +++ ...hly_usage_attribution_supported_metrics.rs | 20 ++++++ .../model_monthly_usage_attribution_values.rs | 72 +++++++++++++++++++ 5 files changed, 135 insertions(+), 4 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 30963f24f..61d5b65e1 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-03-28 14:36:52.852799", - "spec_repo_commit": "a462e143" + "regenerated": "2024-03-29 13:20:47.377297", + "spec_repo_commit": "3e55ad68" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-03-28 14:36:52.870334", - "spec_repo_commit": "a462e143" + "regenerated": "2024-03-29 13:20:47.394748", + "spec_repo_commit": "3e55ad68" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 018dd3fc3..d1e645a4d 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -4110,6 +4110,7 @@ components: - estimated_rum_sessions_usage - fargate_usage - functions_usage + - incident_management_monthly_active_users_usage - indexed_spans_usage - infra_host_usage - ingested_logs_bytes_usage @@ -4131,6 +4132,7 @@ components: - npm_host_usage - obs_pipeline_bytes_usage - obs_pipelines_vcpu_usage + - online_archive_usage - profiled_container_usage - profiled_fargate_usage - profiled_host_usage @@ -4178,6 +4180,7 @@ components: - ESTIMATED_RUM_SESSIONS_USAGE - FARGATE_USAGE - FUNCTIONS_USAGE + - INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE - INDEXED_SPANS_USAGE - INFRA_HOST_USAGE - INGESTED_LOGS_BYTES_USAGE @@ -4199,6 +4202,7 @@ components: - NPM_HOST_USAGE - OBS_PIPELINE_BYTES_USAGE - OBS_PIPELINE_VCPU_USAGE + - ONLINE_ARCHIVE_USAGE - PROFILED_CONTAINER_USAGE - PROFILED_FARGATE_USAGE - PROFILED_HOST_USAGE @@ -7816,6 +7820,8 @@ components: - fargate_percentage - functions_usage - functions_percentage + - incident_management_monthly_active_users_usage + - incident_management_monthly_active_users_percentage - infra_host_usage - infra_host_percentage - invocations_usage @@ -7832,6 +7838,8 @@ components: - obs_pipeline_bytes_percentage - obs_pipelines_vcpu_usage - obs_pipelines_vcpu_percentage + - online_archive_usage + - online_archive_percentage - profiled_container_usage - profiled_container_percentage - profiled_fargate_usage @@ -7947,6 +7955,8 @@ components: - FARGATE_PERCENTAGE - FUNCTIONS_USAGE - FUNCTIONS_PERCENTAGE + - INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE + - INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_PERCENTAGE - INFRA_HOST_USAGE - INFRA_HOST_PERCENTAGE - INVOCATIONS_USAGE @@ -7963,6 +7973,8 @@ components: - OBS_PIPELINE_BYTES_PERCENTAGE - OBS_PIPELINES_VCPU_USAGE - OBS_PIPELINES_VCPU_PERCENTAGE + - ONLINE_ARCHIVE_USAGE + - ONLINE_ARCHIVE_PERCENTAGE - PROFILED_CONTAINER_USAGE - PROFILED_CONTAINER_PERCENTAGE - PROFILED_FARGATE_USAGE @@ -8286,6 +8298,15 @@ components: description: The Lambda function usage by tag(s). format: double type: number + incident_management_monthly_active_users_percentage: + description: The percentage of Incident Management monthly active users + usage by tag(s). + format: double + type: number + incident_management_monthly_active_users_usage: + description: The Incident Management monthly active users usage by tag(s). + format: double + type: number indexed_spans_percentage: description: The percentage of APM Indexed Spans usage by tag(s). format: double @@ -8465,6 +8486,14 @@ components: description: The observability pipeline per core usage by tag(s). format: double type: number + online_archive_percentage: + description: The percentage of online archive usage by tag(s). + format: double + type: number + online_archive_usage: + description: The online archive usage by tag(s). + format: double + type: number profiled_container_percentage: description: The percentage of profiled container usage by tag(s). format: double diff --git a/src/datadogV1/model/model_hourly_usage_attribution_usage_type.rs b/src/datadogV1/model/model_hourly_usage_attribution_usage_type.rs index dda85d497..7379b9123 100644 --- a/src/datadogV1/model/model_hourly_usage_attribution_usage_type.rs +++ b/src/datadogV1/model/model_hourly_usage_attribution_usage_type.rs @@ -40,6 +40,7 @@ pub enum HourlyUsageAttributionUsageType { ESTIMATED_RUM_SESSIONS_USAGE, FARGATE_USAGE, FUNCTIONS_USAGE, + INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE, INDEXED_SPANS_USAGE, INFRA_HOST_USAGE, INGESTED_LOGS_BYTES_USAGE, @@ -61,6 +62,7 @@ pub enum HourlyUsageAttributionUsageType { NPM_HOST_USAGE, OBS_PIPELINE_BYTES_USAGE, OBS_PIPELINE_VCPU_USAGE, + ONLINE_ARCHIVE_USAGE, PROFILED_CONTAINER_USAGE, PROFILED_FARGATE_USAGE, PROFILED_HOST_USAGE, @@ -120,6 +122,9 @@ impl ToString for HourlyUsageAttributionUsageType { Self::ESTIMATED_RUM_SESSIONS_USAGE => String::from("estimated_rum_sessions_usage"), Self::FARGATE_USAGE => String::from("fargate_usage"), Self::FUNCTIONS_USAGE => String::from("functions_usage"), + Self::INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE => { + String::from("incident_management_monthly_active_users_usage") + } Self::INDEXED_SPANS_USAGE => String::from("indexed_spans_usage"), Self::INFRA_HOST_USAGE => String::from("infra_host_usage"), Self::INGESTED_LOGS_BYTES_USAGE => String::from("ingested_logs_bytes_usage"), @@ -145,6 +150,7 @@ impl ToString for HourlyUsageAttributionUsageType { Self::NPM_HOST_USAGE => String::from("npm_host_usage"), Self::OBS_PIPELINE_BYTES_USAGE => String::from("obs_pipeline_bytes_usage"), Self::OBS_PIPELINE_VCPU_USAGE => String::from("obs_pipelines_vcpu_usage"), + Self::ONLINE_ARCHIVE_USAGE => String::from("online_archive_usage"), Self::PROFILED_CONTAINER_USAGE => String::from("profiled_container_usage"), Self::PROFILED_FARGATE_USAGE => String::from("profiled_fargate_usage"), Self::PROFILED_HOST_USAGE => String::from("profiled_host_usage"), @@ -222,6 +228,9 @@ impl<'de> Deserialize<'de> for HourlyUsageAttributionUsageType { "estimated_rum_sessions_usage" => Self::ESTIMATED_RUM_SESSIONS_USAGE, "fargate_usage" => Self::FARGATE_USAGE, "functions_usage" => Self::FUNCTIONS_USAGE, + "incident_management_monthly_active_users_usage" => { + Self::INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE + } "indexed_spans_usage" => Self::INDEXED_SPANS_USAGE, "infra_host_usage" => Self::INFRA_HOST_USAGE, "ingested_logs_bytes_usage" => Self::INGESTED_LOGS_BYTES_USAGE, @@ -243,6 +252,7 @@ impl<'de> Deserialize<'de> for HourlyUsageAttributionUsageType { "npm_host_usage" => Self::NPM_HOST_USAGE, "obs_pipeline_bytes_usage" => Self::OBS_PIPELINE_BYTES_USAGE, "obs_pipelines_vcpu_usage" => Self::OBS_PIPELINE_VCPU_USAGE, + "online_archive_usage" => Self::ONLINE_ARCHIVE_USAGE, "profiled_container_usage" => Self::PROFILED_CONTAINER_USAGE, "profiled_fargate_usage" => Self::PROFILED_FARGATE_USAGE, "profiled_host_usage" => Self::PROFILED_HOST_USAGE, diff --git a/src/datadogV1/model/model_monthly_usage_attribution_supported_metrics.rs b/src/datadogV1/model/model_monthly_usage_attribution_supported_metrics.rs index bc94dccae..09af55711 100644 --- a/src/datadogV1/model/model_monthly_usage_attribution_supported_metrics.rs +++ b/src/datadogV1/model/model_monthly_usage_attribution_supported_metrics.rs @@ -61,6 +61,8 @@ pub enum MonthlyUsageAttributionSupportedMetrics { FARGATE_PERCENTAGE, FUNCTIONS_USAGE, FUNCTIONS_PERCENTAGE, + INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE, + INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_PERCENTAGE, INFRA_HOST_USAGE, INFRA_HOST_PERCENTAGE, INVOCATIONS_USAGE, @@ -77,6 +79,8 @@ pub enum MonthlyUsageAttributionSupportedMetrics { OBS_PIPELINE_BYTES_PERCENTAGE, OBS_PIPELINES_VCPU_USAGE, OBS_PIPELINES_VCPU_PERCENTAGE, + ONLINE_ARCHIVE_USAGE, + ONLINE_ARCHIVE_PERCENTAGE, PROFILED_CONTAINER_USAGE, PROFILED_CONTAINER_PERCENTAGE, PROFILED_FARGATE_USAGE, @@ -214,6 +218,12 @@ impl ToString for MonthlyUsageAttributionSupportedMetrics { Self::FARGATE_PERCENTAGE => String::from("fargate_percentage"), Self::FUNCTIONS_USAGE => String::from("functions_usage"), Self::FUNCTIONS_PERCENTAGE => String::from("functions_percentage"), + Self::INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE => { + String::from("incident_management_monthly_active_users_usage") + } + Self::INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_PERCENTAGE => { + String::from("incident_management_monthly_active_users_percentage") + } Self::INFRA_HOST_USAGE => String::from("infra_host_usage"), Self::INFRA_HOST_PERCENTAGE => String::from("infra_host_percentage"), Self::INVOCATIONS_USAGE => String::from("invocations_usage"), @@ -234,6 +244,8 @@ impl ToString for MonthlyUsageAttributionSupportedMetrics { Self::OBS_PIPELINE_BYTES_PERCENTAGE => String::from("obs_pipeline_bytes_percentage"), Self::OBS_PIPELINES_VCPU_USAGE => String::from("obs_pipelines_vcpu_usage"), Self::OBS_PIPELINES_VCPU_PERCENTAGE => String::from("obs_pipelines_vcpu_percentage"), + Self::ONLINE_ARCHIVE_USAGE => String::from("online_archive_usage"), + Self::ONLINE_ARCHIVE_PERCENTAGE => String::from("online_archive_percentage"), Self::PROFILED_CONTAINER_USAGE => String::from("profiled_container_usage"), Self::PROFILED_CONTAINER_PERCENTAGE => String::from("profiled_container_percentage"), Self::PROFILED_FARGATE_USAGE => String::from("profiled_fargate_usage"), @@ -399,6 +411,12 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionSupportedMetrics { "fargate_percentage" => Self::FARGATE_PERCENTAGE, "functions_usage" => Self::FUNCTIONS_USAGE, "functions_percentage" => Self::FUNCTIONS_PERCENTAGE, + "incident_management_monthly_active_users_usage" => { + Self::INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_USAGE + } + "incident_management_monthly_active_users_percentage" => { + Self::INCIDENT_MANAGEMENT_MONTHLY_ACTIVE_USERS_PERCENTAGE + } "infra_host_usage" => Self::INFRA_HOST_USAGE, "infra_host_percentage" => Self::INFRA_HOST_PERCENTAGE, "invocations_usage" => Self::INVOCATIONS_USAGE, @@ -415,6 +433,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionSupportedMetrics { "obs_pipeline_bytes_percentage" => Self::OBS_PIPELINE_BYTES_PERCENTAGE, "obs_pipelines_vcpu_usage" => Self::OBS_PIPELINES_VCPU_USAGE, "obs_pipelines_vcpu_percentage" => Self::OBS_PIPELINES_VCPU_PERCENTAGE, + "online_archive_usage" => Self::ONLINE_ARCHIVE_USAGE, + "online_archive_percentage" => Self::ONLINE_ARCHIVE_PERCENTAGE, "profiled_container_usage" => Self::PROFILED_CONTAINER_USAGE, "profiled_container_percentage" => Self::PROFILED_CONTAINER_PERCENTAGE, "profiled_fargate_usage" => Self::PROFILED_FARGATE_USAGE, diff --git a/src/datadogV1/model/model_monthly_usage_attribution_values.rs b/src/datadogV1/model/model_monthly_usage_attribution_values.rs index ea662e5a3..92c553c5a 100644 --- a/src/datadogV1/model/model_monthly_usage_attribution_values.rs +++ b/src/datadogV1/model/model_monthly_usage_attribution_values.rs @@ -197,6 +197,12 @@ pub struct MonthlyUsageAttributionValues { /// The Lambda function usage by tag(s). #[serde(rename = "functions_usage")] pub functions_usage: Option, + /// The percentage of Incident Management monthly active users usage by tag(s). + #[serde(rename = "incident_management_monthly_active_users_percentage")] + pub incident_management_monthly_active_users_percentage: Option, + /// The Incident Management monthly active users usage by tag(s). + #[serde(rename = "incident_management_monthly_active_users_usage")] + pub incident_management_monthly_active_users_usage: Option, /// The percentage of APM Indexed Spans usage by tag(s). #[serde(rename = "indexed_spans_percentage")] pub indexed_spans_percentage: Option, @@ -323,6 +329,12 @@ pub struct MonthlyUsageAttributionValues { /// The observability pipeline per core usage by tag(s). #[serde(rename = "obs_pipelines_vcpu_usage")] pub obs_pipelines_vcpu_usage: Option, + /// The percentage of online archive usage by tag(s). + #[serde(rename = "online_archive_percentage")] + pub online_archive_percentage: Option, + /// The online archive usage by tag(s). + #[serde(rename = "online_archive_usage")] + pub online_archive_usage: Option, /// The percentage of profiled container usage by tag(s). #[serde(rename = "profiled_container_percentage")] pub profiled_container_percentage: Option, @@ -465,6 +477,8 @@ impl MonthlyUsageAttributionValues { fargate_usage: None, functions_percentage: None, functions_usage: None, + incident_management_monthly_active_users_percentage: None, + incident_management_monthly_active_users_usage: None, indexed_spans_percentage: None, indexed_spans_usage: None, infra_host_percentage: None, @@ -507,6 +521,8 @@ impl MonthlyUsageAttributionValues { obs_pipeline_bytes_usage: None, obs_pipelines_vcpu_percentage: None, obs_pipelines_vcpu_usage: None, + online_archive_percentage: None, + online_archive_usage: None, profiled_container_percentage: None, profiled_container_usage: None, profiled_fargate_percentage: None, @@ -845,6 +861,16 @@ impl MonthlyUsageAttributionValues { self } + pub fn incident_management_monthly_active_users_percentage(mut self, value: f64) -> Self { + self.incident_management_monthly_active_users_percentage = Some(value); + self + } + + pub fn incident_management_monthly_active_users_usage(mut self, value: f64) -> Self { + self.incident_management_monthly_active_users_usage = Some(value); + self + } + pub fn indexed_spans_percentage(mut self, value: f64) -> Self { self.indexed_spans_percentage = Some(value); self @@ -1055,6 +1081,16 @@ impl MonthlyUsageAttributionValues { self } + pub fn online_archive_percentage(mut self, value: f64) -> Self { + self.online_archive_percentage = Some(value); + self + } + + pub fn online_archive_usage(mut self, value: f64) -> Self { + self.online_archive_usage = Some(value); + self + } + pub fn profiled_container_percentage(mut self, value: f64) -> Self { self.profiled_container_percentage = Some(value); self @@ -1261,6 +1297,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues { let mut fargate_usage: Option = None; let mut functions_percentage: Option = None; let mut functions_usage: Option = None; + let mut incident_management_monthly_active_users_percentage: Option = None; + let mut incident_management_monthly_active_users_usage: Option = None; let mut indexed_spans_percentage: Option = None; let mut indexed_spans_usage: Option = None; let mut infra_host_percentage: Option = None; @@ -1303,6 +1341,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues { let mut obs_pipeline_bytes_usage: Option = None; let mut obs_pipelines_vcpu_percentage: Option = None; let mut obs_pipelines_vcpu_usage: Option = None; + let mut online_archive_percentage: Option = None; + let mut online_archive_usage: Option = None; let mut profiled_container_percentage: Option = None; let mut profiled_container_usage: Option = None; let mut profiled_fargate_percentage: Option = None; @@ -1764,6 +1804,20 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues { functions_usage = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } + "incident_management_monthly_active_users_percentage" => { + if v.is_null() { + continue; + } + incident_management_monthly_active_users_percentage = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } + "incident_management_monthly_active_users_usage" => { + if v.is_null() { + continue; + } + incident_management_monthly_active_users_usage = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "indexed_spans_percentage" => { if v.is_null() { continue; @@ -2058,6 +2112,20 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues { obs_pipelines_vcpu_usage = Some(serde_json::from_value(v).map_err(M::Error::custom)?); } + "online_archive_percentage" => { + if v.is_null() { + continue; + } + online_archive_percentage = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } + "online_archive_usage" => { + if v.is_null() { + continue; + } + online_archive_usage = + Some(serde_json::from_value(v).map_err(M::Error::custom)?); + } "profiled_container_percentage" => { if v.is_null() { continue; @@ -2292,6 +2360,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues { fargate_usage, functions_percentage, functions_usage, + incident_management_monthly_active_users_percentage, + incident_management_monthly_active_users_usage, indexed_spans_percentage, indexed_spans_usage, infra_host_percentage, @@ -2334,6 +2404,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues { obs_pipeline_bytes_usage, obs_pipelines_vcpu_percentage, obs_pipelines_vcpu_usage, + online_archive_percentage, + online_archive_usage, profiled_container_percentage, profiled_container_usage, profiled_fargate_percentage,