Struct bulwark_config::Thresholds
source · pub struct Thresholds {
pub observe_only: bool,
pub restrict: f64,
pub suspicious: f64,
pub trust: f64,
}
Expand description
Configuration for the decision thresholds.
No threshold is necessary for the default allowed
outcome because it is defined by the range between the
suspicious
threshold and the trusted
threshold. The thresholds must have values in descending order, with
restrict
> suspicious
> trusted
. None of the threshold values may be equal.
Fields§
§observe_only: bool
True if the primary service should take no action in response to restrict decisions.
restrict: f64
Any decision value above the restrict
threshold will cause the corresponding request to be blocked.
suspicious: f64
Any decision value above the suspicious
threshold will cause the corresponding request to be flagged as
suspicious but it will still be allowed.
trust: f64
Any decision value below the trust
threshold will cause the corresponding request to be flagged as trusted.
This primarily affects plugins which use feedback loops.
Trait Implementations§
source§impl Clone for Thresholds
impl Clone for Thresholds
source§fn clone(&self) -> Thresholds
fn clone(&self) -> Thresholds
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more