use clap::Args;
use super::CanisterTarget;
#[derive(Args, Debug)]
pub(crate) struct MetricsArgs {
#[command(flatten)]
target: CanisterTarget,
#[arg(long, conflicts_with = "reset", value_name = "MILLIS")]
window_start_ms: Option<u64>,
#[arg(long, conflicts_with = "reset")]
extended: bool,
#[arg(long)]
reset: bool,
}
impl MetricsArgs {
pub(crate) const fn target(&self) -> &CanisterTarget {
&self.target
}
pub(crate) const fn window_start_ms(&self) -> Option<u64> {
self.window_start_ms
}
pub(crate) const fn extended(&self) -> bool {
self.extended
}
pub(crate) const fn reset(&self) -> bool {
self.reset
}
}