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