// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Returned when the latest run's config or document set has drifted
/// from the current draft, so its metrics no longer reflect the
/// experiment's definition.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ExperimentMetricsStaleError {
    /// Defaults to `stale_metrics`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub kind: Option<String>,
    /// Defaults to `stale_metrics`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub error: Option<String>,
    pub experiment_id: String,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub stale_reasons: Option<Vec<String>>,
    pub last_run: MetricsStaleErrorLastRun,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub current_config_fingerprint: Option<String>,
    pub message: String,
}
