pub struct ScenarioConfigFile {
pub name: String,
pub weight: f64,
pub bench: String,
pub description: Option<String>,
pub compare: Option<String>,
pub probe_compare: Option<String>,
pub probe_baseline: Option<String>,
pub probe_current: Option<String>,
}Expand description
Weighted scenario definition for workload-level evaluation.
A scenario references an existing [[bench]] entry and, by default,
perfgate scenario evaluate reads that benchmark’s compare.json from the
configured artifact directory.
Fields§
§name: String§weight: f64Relative importance in the workload model.
bench: StringConfigured benchmark that produces this scenario’s compare receipt.
description: Option<String>Optional human-readable description.
compare: Option<String>Optional explicit compare receipt path. When omitted, the CLI reads the
standard out_dir/<bench>/compare.json artifact.
probe_compare: Option<String>Optional probe comparison receipt path. When present, scenario evaluation attaches probe names and a receipt reference without making probes part of the scenario verdict.
probe_baseline: Option<String>Optional baseline probe receipt path. When paired with probe_current
and probe_compare, perfgate decision evaluate creates the probe
comparison receipt before scenario evaluation.
probe_current: Option<String>Optional current probe receipt path. When paired with probe_baseline
and probe_compare, perfgate decision evaluate creates the probe
comparison receipt before scenario evaluation.
Trait Implementations§
Source§impl Clone for ScenarioConfigFile
impl Clone for ScenarioConfigFile
Source§fn clone(&self) -> ScenarioConfigFile
fn clone(&self) -> ScenarioConfigFile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ScenarioConfigFile
impl Debug for ScenarioConfigFile
Source§impl<'de> Deserialize<'de> for ScenarioConfigFile
impl<'de> Deserialize<'de> for ScenarioConfigFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for ScenarioConfigFile
impl JsonSchema for ScenarioConfigFile
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ScenarioConfigFile
impl PartialEq for ScenarioConfigFile
Source§fn eq(&self, other: &ScenarioConfigFile) -> bool
fn eq(&self, other: &ScenarioConfigFile) -> bool
self and other values to be equal, and is used by ==.