liboci_cli/events.rs
1use clap::Args;
2
3/// Show resource statistics for the container
4#[derive(Args, Debug)]
5pub struct Events {
6 /// Sets the stats collection interval in seconds (default: 5s)
7 #[arg(long, default_value = "5")]
8 pub interval: u32,
9 /// Display the container stats only once
10 #[arg(long)]
11 pub stats: bool,
12 /// Name of the container instance
13 #[arg(value_parser = clap::builder::NonEmptyStringValueParser::new(), required = true)]
14 pub container_id: String,
15}