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

Add UA documentation for online_archive and incident_management #62

Merged
Merged
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-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"
}
}
}
29 changes: 29 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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"),
Expand All @@ -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"),
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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"),
Expand All @@ -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"),
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
72 changes: 72 additions & 0 deletions src/datadogV1/model/model_monthly_usage_attribution_values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@ pub struct MonthlyUsageAttributionValues {
/// The Lambda function usage by tag(s).
#[serde(rename = "functions_usage")]
pub functions_usage: Option<f64>,
/// 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<f64>,
/// 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<f64>,
/// The percentage of APM Indexed Spans usage by tag(s).
#[serde(rename = "indexed_spans_percentage")]
pub indexed_spans_percentage: Option<f64>,
Expand Down Expand Up @@ -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<f64>,
/// The percentage of online archive usage by tag(s).
#[serde(rename = "online_archive_percentage")]
pub online_archive_percentage: Option<f64>,
/// The online archive usage by tag(s).
#[serde(rename = "online_archive_usage")]
pub online_archive_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 @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1261,6 +1297,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
let mut fargate_usage: Option<f64> = None;
let mut functions_percentage: Option<f64> = None;
let mut functions_usage: Option<f64> = None;
let mut incident_management_monthly_active_users_percentage: Option<f64> = None;
let mut incident_management_monthly_active_users_usage: Option<f64> = None;
let mut indexed_spans_percentage: Option<f64> = None;
let mut indexed_spans_usage: Option<f64> = None;
let mut infra_host_percentage: Option<f64> = None;
Expand Down Expand Up @@ -1303,6 +1341,8 @@ impl<'de> Deserialize<'de> for MonthlyUsageAttributionValues {
let mut obs_pipeline_bytes_usage: Option<f64> = None;
let mut obs_pipelines_vcpu_percentage: Option<f64> = None;
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 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 @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Loading