Struct check_graphite::assertions::Assertion[][src]

pub(crate) struct Assertion {
    pub operator: String,
    pub op_is_negated: NegOp,
    pub threshold: f64,
    pub point_assertion: PointAssertion,
    pub series_ratio: f64,
    pub failure_status: Status,
}

The primary property of

Fields

operator: Stringop_is_negated: NegOpthreshold: f64point_assertion: PointAssertionseries_ratio: f64failure_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.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.