/// Filters series by their metadata time extent relative to the executing query's window:
/// series active since lookback before the window start (extent ending at or after
/// windowStart - lookback) pass, all others are filtered out. There is no future-side bound,
/// so historical windows still see later-installed series. The bound is relative rather than
/// absolute so a resolved graph stays valid when reused across poll-based re-execution.
/// Evaluated against series metadata (max time), not individual points. Consumers without
/// time metadata (in-memory and streaming tag matchers) or without query-window context
/// treat this filter as always passing.
#[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 TimeRangeTagFilter {
    #[builder(
        custom(type = super::super::super::super::run::api::Duration, convert = Box::new)
    )]
    #[serde(rename = "lookback")]
    lookback: Box<super::super::super::super::run::api::Duration>,
}
impl TimeRangeTagFilter {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(lookback: super::super::super::super::run::api::Duration) -> Self {
        Self::builder().lookback(lookback).build()
    }
    #[inline]
    pub fn lookback(&self) -> &super::super::super::super::run::api::Duration {
        &*self.lookback
    }
}
