Struct avassa_client::volga::Query[][src]

pub struct Query { /* fields omitted */ }

Log query parameters

Implementations

impl Query[src]

pub fn new() -> Self[src]

Create a query instance

pub fn image_name(self, image_name: &str) -> Self[src]

The name of the docker image

pub fn replica_index(self, ix: u32) -> Self[src]

When we have multiple replicas, by deafult all replicated logs are read and merged, if we wish to read only one replica log, we can indicate which replica index to follow

pub fn application(self, application: &str) -> Query[src]

Filter on application name

pub fn since(self, since: &Since) -> Self[src]

Get logs since

pub fn service(self, service: &str) -> Query[src]

Filter on service name

pub fn dc(self, dc: &str) -> Query[src]

Filter on datacenter name

pub fn re(self, re: &str) -> Query[src]

Merge all logs and search the merged result for the provided perl regular expression. Drop all data until a regular expression matches

pub fn deep_re(self, deep_re: &str) -> Query[src]

Evaluate the regular expression on all nodes where the containers run, for each node, drop all data until regular expression matches.

pub fn count(self, count: &str) -> Query[src]

Count the number of matching regular expressions

pub fn search_error(self) -> Self[src]

This is a shorthand to search for the first error in all logs. Can be combined with Self::since and Self::re_hits

pub fn re_hits(self, re_hits: u64) -> Self[src]

With either of the regular expression searches, continue to drop data until re_hits log entries have matched

Trait Implementations

impl Serialize for Query[src]

Auto Trait Implementations

impl RefUnwindSafe for Query

impl Send for Query

impl Sync for Query

impl Unpin for Query

impl UnwindSafe for Query

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,