#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct DataReviewMetrics {
    #[builder(custom(type = super::DataReviewCheckMetrics, convert = Box::new))]
    #[serde(rename = "checks")]
    checks: Box<super::DataReviewCheckMetrics>,
    #[builder(custom(type = super::DataReviewAlertMetrics, convert = Box::new))]
    #[serde(rename = "alerts")]
    alerts: Box<super::DataReviewAlertMetrics>,
}
impl DataReviewMetrics {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        checks: super::DataReviewCheckMetrics,
        alerts: super::DataReviewAlertMetrics,
    ) -> Self {
        Self::builder().checks(checks).alerts(alerts).build()
    }
    #[inline]
    pub fn checks(&self) -> &super::DataReviewCheckMetrics {
        &*self.checks
    }
    #[inline]
    pub fn alerts(&self) -> &super::DataReviewAlertMetrics {
        &*self.alerts
    }
}
