Skip to content
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

Remove estimated_{ingested,indexed}_spans from usage attribution api #345

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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-18 21:00:47.999804",
"spec_repo_commit": "37070fd4"
"regenerated": "2024-10-21 16:02:31.296301",
"spec_repo_commit": "85355ab0"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-18 21:00:48.018128",
"spec_repo_commit": "37070fd4"
"regenerated": "2024-10-21 16:02:31.314529",
"spec_repo_commit": "85355ab0"
}
}
}
28 changes: 0 additions & 28 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4195,9 +4195,7 @@ components:
- error_tracking_usage
- error_tracking_percentage
- estimated_indexed_logs_usage
- estimated_indexed_spans_usage
- estimated_ingested_logs_usage
- estimated_ingested_spans_usage
- estimated_rum_sessions_usage
- fargate_usage
- functions_usage
Expand Down Expand Up @@ -4270,9 +4268,7 @@ components:
- ERROR_TRACKING_USAGE
- ERROR_TRACKING_PERCENTAGE
- ESTIMATED_INDEXED_LOGS_USAGE
- ESTIMATED_INDEXED_SPANS_USAGE
- ESTIMATED_INGESTED_LOGS_USAGE
- ESTIMATED_INGESTED_SPANS_USAGE
- ESTIMATED_RUM_SESSIONS_USAGE
- FARGATE_USAGE
- FUNCTIONS_USAGE
Expand Down Expand Up @@ -7961,10 +7957,6 @@ components:
- estimated_indexed_logs_percentage
- estimated_ingested_logs_usage
- estimated_ingested_logs_percentage
- estimated_indexed_spans_usage
- estimated_indexed_spans_percentage
- estimated_ingested_spans_usage
- estimated_ingested_spans_percentage
- fargate_usage
- fargate_percentage
- functions_usage
Expand Down Expand Up @@ -8106,10 +8098,6 @@ components:
- ESTIMATED_INDEXED_LOGS_PERCENTAGE
- ESTIMATED_INGESTED_LOGS_USAGE
- ESTIMATED_INGESTED_LOGS_PERCENTAGE
- ESTIMATED_INDEXED_SPANS_USAGE
- ESTIMATED_INDEXED_SPANS_PERCENTAGE
- ESTIMATED_INGESTED_SPANS_USAGE
- ESTIMATED_INGESTED_SPANS_PERCENTAGE
- FARGATE_USAGE
- FARGATE_PERCENTAGE
- FUNCTIONS_USAGE
Expand Down Expand Up @@ -8423,14 +8411,6 @@ components:
description: The estimated live indexed logs usage by tag(s).
format: double
type: number
estimated_indexed_spans_percentage:
description: The percentage of estimated indexed spans usage by tag(s).
format: double
type: number
estimated_indexed_spans_usage:
description: The estimated indexed spans usage by tag(s).
format: double
type: number
estimated_ingested_logs_percentage:
description: The percentage of estimated live ingested logs usage by tag(s).
format: double
Expand All @@ -8439,14 +8419,6 @@ components:
description: The estimated live ingested logs usage by tag(s).
format: double
type: number
estimated_ingested_spans_percentage:
description: The percentage of estimated ingested spans usage by tag(s).
format: double
type: number
estimated_ingested_spans_usage:
description: The estimated ingested spans usage by tag(s).
format: double
type: number
estimated_rum_sessions_percentage:
description: The percentage of estimated rum sessions usage by tag(s).
format: double
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ pub enum HourlyUsageAttributionUsageType {
ERROR_TRACKING_USAGE,
ERROR_TRACKING_PERCENTAGE,
ESTIMATED_INDEXED_LOGS_USAGE,
ESTIMATED_INDEXED_SPANS_USAGE,
ESTIMATED_INGESTED_LOGS_USAGE,
ESTIMATED_INGESTED_SPANS_USAGE,
ESTIMATED_RUM_SESSIONS_USAGE,
FARGATE_USAGE,
FUNCTIONS_USAGE,
Expand Down Expand Up @@ -123,9 +121,7 @@ impl ToString for HourlyUsageAttributionUsageType {
Self::ERROR_TRACKING_USAGE => String::from("error_tracking_usage"),
Self::ERROR_TRACKING_PERCENTAGE => String::from("error_tracking_percentage"),
Self::ESTIMATED_INDEXED_LOGS_USAGE => String::from("estimated_indexed_logs_usage"),
Self::ESTIMATED_INDEXED_SPANS_USAGE => String::from("estimated_indexed_spans_usage"),
Self::ESTIMATED_INGESTED_LOGS_USAGE => String::from("estimated_ingested_logs_usage"),
Self::ESTIMATED_INGESTED_SPANS_USAGE => String::from("estimated_ingested_spans_usage"),
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"),
Expand Down Expand Up @@ -236,9 +232,7 @@ impl<'de> Deserialize<'de> for HourlyUsageAttributionUsageType {
"error_tracking_usage" => Self::ERROR_TRACKING_USAGE,
"error_tracking_percentage" => Self::ERROR_TRACKING_PERCENTAGE,
"estimated_indexed_logs_usage" => Self::ESTIMATED_INDEXED_LOGS_USAGE,
"estimated_indexed_spans_usage" => Self::ESTIMATED_INDEXED_SPANS_USAGE,
"estimated_ingested_logs_usage" => Self::ESTIMATED_INGESTED_LOGS_USAGE,
"estimated_ingested_spans_usage" => Self::ESTIMATED_INGESTED_SPANS_USAGE,
"estimated_rum_sessions_usage" => Self::ESTIMATED_RUM_SESSIONS_USAGE,
"fargate_usage" => Self::FARGATE_USAGE,
"functions_usage" => Self::FUNCTIONS_USAGE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ pub enum MonthlyUsageAttributionSupportedMetrics {
ESTIMATED_INDEXED_LOGS_PERCENTAGE,
ESTIMATED_INGESTED_LOGS_USAGE,
ESTIMATED_INGESTED_LOGS_PERCENTAGE,
ESTIMATED_INDEXED_SPANS_USAGE,
ESTIMATED_INDEXED_SPANS_PERCENTAGE,
ESTIMATED_INGESTED_SPANS_USAGE,
ESTIMATED_INGESTED_SPANS_PERCENTAGE,
FARGATE_USAGE,
FARGATE_PERCENTAGE,
FUNCTIONS_USAGE,
Expand Down Expand Up @@ -224,14 +220,6 @@ impl ToString for MonthlyUsageAttributionSupportedMetrics {
Self::ESTIMATED_INGESTED_LOGS_PERCENTAGE => {
String::from("estimated_ingested_logs_percentage")
}
Self::ESTIMATED_INDEXED_SPANS_USAGE => String::from("estimated_indexed_spans_usage"),
Self::ESTIMATED_INDEXED_SPANS_PERCENTAGE => {
String::from("estimated_indexed_spans_percentage")
}
Self::ESTIMATED_INGESTED_SPANS_USAGE => String::from("estimated_ingested_spans_usage"),
Self::ESTIMATED_INGESTED_SPANS_PERCENTAGE => {
String::from("estimated_ingested_spans_percentage")
}
Self::FARGATE_USAGE => String::from("fargate_usage"),
Self::FARGATE_PERCENTAGE => String::from("fargate_percentage"),
Self::FUNCTIONS_USAGE => String::from("functions_usage"),
Expand Down Expand Up @@ -435,10 +423,6 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionSupportedMetrics {
"estimated_indexed_logs_percentage" => Self::ESTIMATED_INDEXED_LOGS_PERCENTAGE,
"estimated_ingested_logs_usage" => Self::ESTIMATED_INGESTED_LOGS_USAGE,
"estimated_ingested_logs_percentage" => Self::ESTIMATED_INGESTED_LOGS_PERCENTAGE,
"estimated_indexed_spans_usage" => Self::ESTIMATED_INDEXED_SPANS_USAGE,
"estimated_indexed_spans_percentage" => Self::ESTIMATED_INDEXED_SPANS_PERCENTAGE,
"estimated_ingested_spans_usage" => Self::ESTIMATED_INGESTED_SPANS_USAGE,
"estimated_ingested_spans_percentage" => Self::ESTIMATED_INGESTED_SPANS_PERCENTAGE,
"fargate_usage" => Self::FARGATE_USAGE,
"fargate_percentage" => Self::FARGATE_PERCENTAGE,
"functions_usage" => Self::FUNCTIONS_USAGE,
Expand Down
72 changes: 0 additions & 72 deletions src/datadogV1/model/model_monthly_usage_attribution_values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,24 +167,12 @@ pub struct MonthlyUsageAttributionValues {
/// The estimated live indexed logs usage by tag(s).
#[serde(rename = "estimated_indexed_logs_usage")]
pub estimated_indexed_logs_usage: Option<f64>,
/// The percentage of estimated indexed spans usage by tag(s).
#[serde(rename = "estimated_indexed_spans_percentage")]
pub estimated_indexed_spans_percentage: Option<f64>,
/// The estimated indexed spans usage by tag(s).
#[serde(rename = "estimated_indexed_spans_usage")]
pub estimated_indexed_spans_usage: Option<f64>,
/// The percentage of estimated live ingested logs usage by tag(s).
#[serde(rename = "estimated_ingested_logs_percentage")]
pub estimated_ingested_logs_percentage: Option<f64>,
/// The estimated live ingested logs usage by tag(s).
#[serde(rename = "estimated_ingested_logs_usage")]
pub estimated_ingested_logs_usage: Option<f64>,
/// The percentage of estimated ingested spans usage by tag(s).
#[serde(rename = "estimated_ingested_spans_percentage")]
pub estimated_ingested_spans_percentage: Option<f64>,
/// The estimated ingested spans usage by tag(s).
#[serde(rename = "estimated_ingested_spans_usage")]
pub estimated_ingested_spans_usage: Option<f64>,
/// The percentage of estimated rum sessions usage by tag(s).
#[serde(rename = "estimated_rum_sessions_percentage")]
pub estimated_rum_sessions_percentage: Option<f64>,
Expand Down Expand Up @@ -493,12 +481,8 @@ impl MonthlyUsageAttributionValues {
error_tracking_usage: None,
estimated_indexed_logs_percentage: None,
estimated_indexed_logs_usage: None,
estimated_indexed_spans_percentage: None,
estimated_indexed_spans_usage: None,
estimated_ingested_logs_percentage: None,
estimated_ingested_logs_usage: None,
estimated_ingested_spans_percentage: None,
estimated_ingested_spans_usage: None,
estimated_rum_sessions_percentage: None,
estimated_rum_sessions_usage: None,
fargate_percentage: None,
Expand Down Expand Up @@ -846,16 +830,6 @@ impl MonthlyUsageAttributionValues {
self
}

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

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

pub fn estimated_ingested_logs_percentage(mut self, value: f64) -> Self {
self.estimated_ingested_logs_percentage = Some(value);
self
Expand All @@ -866,16 +840,6 @@ impl MonthlyUsageAttributionValues {
self
}

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

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

pub fn estimated_rum_sessions_percentage(mut self, value: f64) -> Self {
self.estimated_rum_sessions_percentage = Some(value);
self
Expand Down Expand Up @@ -1370,12 +1334,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
let mut error_tracking_usage: Option<f64> = None;
let mut estimated_indexed_logs_percentage: Option<f64> = None;
let mut estimated_indexed_logs_usage: Option<f64> = None;
let mut estimated_indexed_spans_percentage: Option<f64> = None;
let mut estimated_indexed_spans_usage: Option<f64> = None;
let mut estimated_ingested_logs_percentage: Option<f64> = None;
let mut estimated_ingested_logs_usage: Option<f64> = None;
let mut estimated_ingested_spans_percentage: Option<f64> = None;
let mut estimated_ingested_spans_usage: Option<f64> = None;
let mut estimated_rum_sessions_percentage: Option<f64> = None;
let mut estimated_rum_sessions_usage: Option<f64> = None;
let mut fargate_percentage: Option<f64> = None;
Expand Down Expand Up @@ -1829,20 +1789,6 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
estimated_indexed_logs_usage =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"estimated_indexed_spans_percentage" => {
if v.is_null() {
continue;
}
estimated_indexed_spans_percentage =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"estimated_indexed_spans_usage" => {
if v.is_null() {
continue;
}
estimated_indexed_spans_usage =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"estimated_ingested_logs_percentage" => {
if v.is_null() {
continue;
Expand All @@ -1857,20 +1803,6 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
estimated_ingested_logs_usage =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"estimated_ingested_spans_percentage" => {
if v.is_null() {
continue;
}
estimated_ingested_spans_percentage =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"estimated_ingested_spans_usage" => {
if v.is_null() {
continue;
}
estimated_ingested_spans_usage =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"estimated_rum_sessions_percentage" => {
if v.is_null() {
continue;
Expand Down Expand Up @@ -2505,12 +2437,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
error_tracking_usage,
estimated_indexed_logs_percentage,
estimated_indexed_logs_usage,
estimated_indexed_spans_percentage,
estimated_indexed_spans_usage,
estimated_ingested_logs_percentage,
estimated_ingested_logs_usage,
estimated_ingested_spans_percentage,
estimated_ingested_spans_usage,
estimated_rum_sessions_percentage,
estimated_rum_sessions_usage,
fargate_percentage,
Expand Down
Loading