pub struct Cli {Show 22 fields
pub query: Option<String>,
pub file: Option<String>,
pub output: Option<OutputFormat>,
pub store: Option<String>,
pub collect: bool,
pub metrics_interval: u64,
pub snapshot_interval: u64,
pub store_stats: bool,
pub apply_retention: bool,
pub explain: bool,
pub watch: Option<u64>,
pub timeout: Option<u64>,
pub export: Option<PathBuf>,
pub export_format: Option<ExportFormat>,
pub export_influx: Option<String>,
pub export_grafana_loki: Option<String>,
pub export_prometheus: Option<String>,
pub host: Option<String>,
pub completion: Option<Shell>,
pub diff: bool,
pub theme: Option<Theme>,
pub command: Option<CliCommand>,
}Fields§
§query: Option<String>DOL query to execute (positional).
file: Option<String>Read the DOL query from a .dol file.
output: Option<OutputFormat>Output format: table, json, json-compact, csv, jsonl.
store: Option<String>Path to the SQLite telemetry store file.
collect: boolRun in background collection mode. Requires –store.
metrics_interval: u64Metrics collection interval in seconds (used with –collect).
snapshot_interval: u64Snapshot collection interval in seconds (used with –collect).
store_stats: boolShow telemetry store statistics.
apply_retention: boolRun retention cleanup on the store.
explain: boolShow the query execution plan without running it.
watch: Option<u64>Re-run the query every N seconds (batch queries only).
timeout: Option<u64>Timeout in seconds for each query execution (applies to watch, alert, events, and store queries). If the query takes longer than this, it will be aborted and logged.
export: Option<PathBuf>Export results to a file (format inferred from extension: .csv, .json, .jsonl, .table).
export_format: Option<ExportFormat>Export format for external systems: influx, loki, prometheus (use with –export).
export_influx: Option<String>Push results to InfluxDB v1 HTTP write API (e.g. http://localhost:8086/write?db=mydb).
export_grafana_loki: Option<String>Push results to Grafana Loki HTTP push API (e.g. http://localhost:3100).
export_prometheus: Option<String>Push results to Prometheus Pushgateway (e.g. http://localhost:9091).
host: Option<String>Remote Docker host (e.g. tcp://192.168.1.100:2375).
completion: Option<Shell>Generate shell completion script.
diff: boolCompare current state with the last store snapshot (requires –store).
theme: Option<Theme>Color theme for table output: dark (default) or light.
Can also be set in config file with theme: dark|light.
command: Option<CliCommand>Subcommand (config, repl).
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.Source§impl Parser for Cli
impl Parser for Cli
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnsafeUnpin for Cli
impl UnwindSafe for Cli
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more