Skip to content

New product_analytics product added #674

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

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": "2025-06-04 12:51:39.592781",
"spec_repo_commit": "35a63137"
"regenerated": "2025-06-04 15:24:13.719555",
"spec_repo_commit": "ee61330d"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-06-04 12:51:39.609704",
"spec_repo_commit": "35a63137"
"regenerated": "2025-06-04 15:24:13.739296",
"spec_repo_commit": "ee61330d"
}
}
}
190 changes: 107 additions & 83 deletions .generator/schemas/v1/openapi.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61417,8 +61417,8 @@ paths:
`lambda_traced_invocations`, `logs`, `network_flows`, `network_hosts`, `network_monitoring`,
`observability_pipelines`,

`online_archive`, `profiling`, `rum`, `rum_browser_sessions`, `rum_mobile_sessions`,
`sds`, `snmp`, `software_delivery`,
`online_archive`, `profiling`, `product_analytics`, `rum`, `rum_browser_sessions`,
`rum_mobile_sessions`, `sds`, `snmp`, `software_delivery`,

`synthetics_api`, `synthetics_browser`, `synthetics_mobile`, `synthetics_parallel_testing`,
`timeseries`, `vuln_management`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ pub enum HourlyUsageAttributionUsageType {
PROFILED_CONTAINER_USAGE,
PROFILED_FARGATE_USAGE,
PROFILED_HOST_USAGE,
PRODUCT_ANALYTICS_SESSION_USAGE,
RUM_BROWSER_MOBILE_SESSIONS_USAGE,
RUM_REPLAY_SESSIONS_USAGE,
SCA_FARGATE_USAGE,
Expand Down Expand Up @@ -160,6 +161,9 @@ impl ToString for HourlyUsageAttributionUsageType {
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"),
Self::PRODUCT_ANALYTICS_SESSION_USAGE => {
String::from("product_analytics_session_usage")
}
Self::RUM_BROWSER_MOBILE_SESSIONS_USAGE => {
String::from("rum_browser_mobile_sessions_usage")
}
Expand Down Expand Up @@ -268,6 +272,7 @@ impl<'de> Deserialize<'de> for HourlyUsageAttributionUsageType {
"profiled_container_usage" => Self::PROFILED_CONTAINER_USAGE,
"profiled_fargate_usage" => Self::PROFILED_FARGATE_USAGE,
"profiled_host_usage" => Self::PROFILED_HOST_USAGE,
"product_analytics_session_usage" => Self::PRODUCT_ANALYTICS_SESSION_USAGE,
"rum_browser_mobile_sessions_usage" => Self::RUM_BROWSER_MOBILE_SESSIONS_USAGE,
"rum_replay_sessions_usage" => Self::RUM_REPLAY_SESSIONS_USAGE,
"sca_fargate_usage" => Self::SCA_FARGATE_USAGE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ pub enum MonthlyUsageAttributionSupportedMetrics {
LOGS_INDEXED_3DAY_PERCENTAGE,
LOGS_INDEXED_1DAY_USAGE,
LOGS_INDEXED_1DAY_PERCENTAGE,
PRODUCT_ANALYTICS_SESSION_USAGE,
PRODUCT_ANALYTICS_SESSION_PERCENTAGE,
RUM_REPLAY_SESSIONS_USAGE,
RUM_REPLAY_SESSIONS_PERCENTAGE,
RUM_BROWSER_MOBILE_SESSIONS_USAGE,
Expand Down Expand Up @@ -322,6 +324,12 @@ impl ToString for MonthlyUsageAttributionSupportedMetrics {
Self::LOGS_INDEXED_3DAY_PERCENTAGE => String::from("logs_indexed_3day_percentage"),
Self::LOGS_INDEXED_1DAY_USAGE => String::from("logs_indexed_1day_usage"),
Self::LOGS_INDEXED_1DAY_PERCENTAGE => String::from("logs_indexed_1day_percentage"),
Self::PRODUCT_ANALYTICS_SESSION_USAGE => {
String::from("product_analytics_session_usage")
}
Self::PRODUCT_ANALYTICS_SESSION_PERCENTAGE => {
String::from("product_analytics_session_percentage")
}
Self::RUM_REPLAY_SESSIONS_USAGE => String::from("rum_replay_sessions_usage"),
Self::RUM_REPLAY_SESSIONS_PERCENTAGE => String::from("rum_replay_sessions_percentage"),
Self::RUM_BROWSER_MOBILE_SESSIONS_USAGE => {
Expand Down Expand Up @@ -509,6 +517,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionSupportedMetrics {
"logs_indexed_3day_percentage" => Self::LOGS_INDEXED_3DAY_PERCENTAGE,
"logs_indexed_1day_usage" => Self::LOGS_INDEXED_1DAY_USAGE,
"logs_indexed_1day_percentage" => Self::LOGS_INDEXED_1DAY_PERCENTAGE,
"product_analytics_session_usage" => Self::PRODUCT_ANALYTICS_SESSION_USAGE,
"product_analytics_session_percentage" => Self::PRODUCT_ANALYTICS_SESSION_PERCENTAGE,
"rum_replay_sessions_usage" => Self::RUM_REPLAY_SESSIONS_USAGE,
"rum_replay_sessions_percentage" => Self::RUM_REPLAY_SESSIONS_PERCENTAGE,
"rum_browser_mobile_sessions_usage" => Self::RUM_BROWSER_MOBILE_SESSIONS_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 @@ -341,6 +341,12 @@ pub struct MonthlyUsageAttributionValues {
/// The online archive usage by tag(s).
#[serde(rename = "online_archive_usage")]
pub online_archive_usage: Option<f64>,
/// The percentage of Product Analytics session usage by tag(s).
#[serde(rename = "product_analytics_session_percentage")]
pub product_analytics_session_percentage: Option<f64>,
/// The total Product Analytics session usage by tag(s).
#[serde(rename = "product_analytics_session_usage")]
pub product_analytics_session_usage: Option<f64>,
/// The percentage of profiled container usage by tag(s).
#[serde(rename = "profiled_container_percentage")]
pub profiled_container_percentage: Option<f64>,
Expand Down Expand Up @@ -545,6 +551,8 @@ impl MonthlyUsageAttributionValues {
obs_pipelines_vcpu_usage: None,
online_archive_percentage: None,
online_archive_usage: None,
product_analytics_session_percentage: None,
product_analytics_session_usage: None,
profiled_container_percentage: None,
profiled_container_usage: None,
profiled_fargate_percentage: None,
Expand Down Expand Up @@ -1128,6 +1136,16 @@ impl MonthlyUsageAttributionValues {
self
}

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

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

pub fn profiled_container_percentage(mut self, value: f64) -> Self {
self.profiled_container_percentage = Some(value);
self
Expand Down Expand Up @@ -1410,6 +1428,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
let mut obs_pipelines_vcpu_usage: Option<f64> = None;
let mut online_archive_percentage: Option<f64> = None;
let mut online_archive_usage: Option<f64> = None;
let mut product_analytics_session_percentage: Option<f64> = None;
let mut product_analytics_session_usage: Option<f64> = None;
let mut profiled_container_percentage: Option<f64> = None;
let mut profiled_container_usage: Option<f64> = None;
let mut profiled_fargate_percentage: Option<f64> = None;
Expand Down Expand Up @@ -2215,6 +2235,20 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
online_archive_usage =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"product_analytics_session_percentage" => {
if v.is_null() {
continue;
}
product_analytics_session_percentage =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"product_analytics_session_usage" => {
if v.is_null() {
continue;
}
product_analytics_session_usage =
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
}
"profiled_container_percentage" => {
if v.is_null() {
continue;
Expand Down Expand Up @@ -2529,6 +2563,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
obs_pipelines_vcpu_usage,
online_archive_percentage,
online_archive_usage,
product_analytics_session_percentage,
product_analytics_session_usage,
profiled_container_percentage,
profiled_container_usage,
profiled_fargate_percentage,
Expand Down
Loading
Loading