struct Cli {Show 19 fields
pid: Option<i32>,
interval: Option<u64>,
config: String,
format: OutputFormat,
output: Option<String>,
quiet: bool,
project_name: Option<String>,
job_name: Option<String>,
stage_name: Option<String>,
task_name: Option<String>,
team: Option<String>,
env: Option<String>,
language: Option<String>,
orchestrator: Option<String>,
executor: Option<String>,
external_run_id: Option<String>,
container_image: Option<String>,
tags: Vec<String>,
command: Vec<String>,
}Fields§
§pid: Option<i32>Root PID of the process tree to track CPU usage for. Overridden automatically in shell-wrapper mode.
interval: Option<u64>Polling interval in seconds (must be >= 1).
config: StringPath to TOML config file.
format: OutputFormatOutput format: json (default) or csv.
output: Option<String>Write metric output to FILE instead of stdout. Useful in shell-wrapper mode to keep the tracked app’s stdout clean.
quiet: boolSuppress metric output entirely (no stdout, no file). Useful when streaming to Sentinel and local output is not needed.
project_name: Option<String>Project name for Sentinel run registration.
job_name: Option<String>Job name attached to every sample and to the Sentinel run record.
stage_name: Option<String>Stage name (e.g. “train”, “eval”) for Sentinel run registration.
task_name: Option<String>Task name for Sentinel run registration.
team: Option<String>Team name for Sentinel run registration.
env: Option<String>Environment label (e.g. “prod”, “staging”) for Sentinel run registration.
language: Option<String>Programming language label for Sentinel run registration.
orchestrator: Option<String>Orchestrator label (e.g. “airflow”, “prefect”) for Sentinel run registration.
executor: Option<String>Executor label (e.g. “kubernetes”, “slurm”) for Sentinel run registration.
external_run_id: Option<String>External run ID from the calling system for Sentinel run registration.
container_image: Option<String>Container image name/tag for Sentinel run registration.
Arbitrary key=value tag. May be repeated: –tag key1=val1 –tag key2=val2
command: Vec<String>Command to spawn and monitor. All tokens after – are the command + args. Example: resource-tracker – Rscript model.R –epochs 10
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl FromArgMatches for Cli
impl FromArgMatches for Cli
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.