pub struct Policy {
pub regression: BTreeMap<String, Threshold>,
pub minimum_absolute_us: f64,
pub targets: BTreeMap<String, BTreeMap<String, Threshold>>,
pub budgets: Vec<Budget>,
}Expand description
The regression policy.
Fields§
§regression: BTreeMap<String, Threshold>Thresholds by metric (p50, p95, p99).
minimum_absolute_us: f64Increases under this many microseconds are noise, whatever the ratio.
targets: BTreeMap<String, BTreeMap<String, Threshold>>Per-target allowances, keyed by the target key as bench coverage prints it, then
by metric (in the file, a targets: list of target: <key> items); a metric not
named here keeps the general threshold. The process-cold
target spawns a process and builds the index, so the machine’s load decides most of
its wall clock, and it gets more room than a request does.
budgets: Vec<Budget>Absolute bounds, held with or without a baseline and on every host. The default policy has none: a bound is the repository’s to declare, never this crate’s.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Policy
impl<'de> Deserialize<'de> for Policy
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Policy
impl JsonSchema for Policy
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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
Mutably borrows from an owned value. Read more