pub struct EvalRunArgs {
pub url: Option<String>,
pub timeout_secs: u64,
pub poll_secs: u64,
pub alert_map: Option<PathBuf>,
pub customer_code: Option<String>,
pub save_dir: Option<PathBuf>,
pub allow_deduplicated: bool,
pub common: EvalCommonArgs,
}Expand description
Arguments of talahon eval run.
Fields§
§url: Option<String>Base URL of the Talahon HTTP API (default:
http://<COPILOT_HTTP_BIND>:<COPILOT_HTTP_PORT> from the project’s
.env). The API key is always HTTP_API_KEY from .env.
timeout_secs: u64Seconds to wait for each investigation’s verdict.
poll_secs: u64Seconds between status polls.
alert_map: Option<PathBuf>JSON file mapping case ids to the alert ids they are seeded under
in the target stack ({"<case id>": 4711, ...}); overrides the
case’s request.alert_id.
customer_code: Option<String>Customer code to submit instead of each case’s
request.customer_code.
save_dir: Option<PathBuf>Write each investigation record to <DIR>/<case id>.json, in the
form talahon eval score --reports <DIR> reads.
allow_deduplicated: boolScore the existing job when Talahon de-duplicates a trigger instead of failing the case (the verdict may predate the change under test).
common: EvalCommonArgsShared options.
Trait Implementations§
Source§impl Args for EvalRunArgs
impl Args for EvalRunArgs
Source§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 Debug for EvalRunArgs
impl Debug for EvalRunArgs
Source§impl FromArgMatches for EvalRunArgs
impl FromArgMatches for EvalRunArgs
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.