Struct check_graphite::assertions::Assertion [−][src]
The primary property of
Fields
operator: String
op_is_negated: NegOp
threshold: f64
point_assertion: PointAssertion
series_ratio: f64
failure_status: Status
Implementations
impl Assertion
[src]
pub fn check(&self, series_with_data: &[GraphiteData]) -> Status
[src]
Check if any series violates the assertion
Returns the maximum violation status
series_with_data
must contain only series that contain at least some
data (main::bail_if_no_data
must have been called first.)
Trait Implementations
impl Debug for Assertion
[src]
impl FromStr for Assertion
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(raw: &str) -> Result<Assertion, ParseError>
[src]
impl PartialEq<Assertion> for Assertion
[src]
impl StructuralPartialEq for Assertion
[src]
Auto Trait Implementations
impl RefUnwindSafe for Assertion
impl Send for Assertion
impl Sync for Assertion
impl Unpin for Assertion
impl UnwindSafe for Assertion
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,