pub struct SloObjective {
pub sli: String,
pub comparator: String,
pub threshold: f64,
pub scope: Option<String>,
}Expand description
A single service-level objective over the recorded SLI samples. Maps to the
SloObjective schema.
Fields§
§sli: StringThe indicator to evaluate — one of LATENCY_P50, LATENCY_P95,
LATENCY_P99, ERROR_RATE.
comparator: StringHow the observed value is compared to the threshold — one of
LESS_THAN, LESS_THAN_OR_EQUAL, GREATER_THAN,
GREATER_THAN_OR_EQUAL.
threshold: f64The objective threshold (milliseconds for latency SLIs, a 0.0–1.0
fraction for ERROR_RATE).
scope: Option<String>Which recorded traffic to evaluate — "FORWARD" (default) or
"INBOUND".
Implementations§
Trait Implementations§
Source§impl Clone for SloObjective
impl Clone for SloObjective
Source§fn clone(&self) -> SloObjective
fn clone(&self) -> SloObjective
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SloObjective
impl Debug for SloObjective
Source§impl<'de> Deserialize<'de> for SloObjective
impl<'de> Deserialize<'de> for SloObjective
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 PartialEq for SloObjective
impl PartialEq for SloObjective
Source§fn eq(&self, other: &SloObjective) -> bool
fn eq(&self, other: &SloObjective) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SloObjective
impl Serialize for SloObjective
impl StructuralPartialEq for SloObjective
Auto Trait Implementations§
impl Freeze for SloObjective
impl RefUnwindSafe for SloObjective
impl Send for SloObjective
impl Sync for SloObjective
impl Unpin for SloObjective
impl UnsafeUnpin for SloObjective
impl UnwindSafe for SloObjective
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