pub struct Query { /* private fields */ }Expand description
Log query parameters
Implementations
sourceimpl Query
impl Query
sourcepub fn image_name(self, image_name: &str) -> Self
pub fn image_name(self, image_name: &str) -> Self
The name of the docker image
sourcepub fn replica_index(self, ix: u32) -> Self
pub fn replica_index(self, ix: u32) -> Self
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
sourcepub fn application(self, application: &str) -> Query
pub fn application(self, application: &str) -> Query
Filter on application name
sourcepub fn re(self, re: &str) -> Query
pub fn re(self, re: &str) -> Query
Merge all logs and search the merged result for the provided perl regular expression. Drop all data until a regular expression matches
sourcepub fn deep_re(self, deep_re: &str) -> Query
pub fn deep_re(self, deep_re: &str) -> Query
Evaluate the regular expression on all nodes where the containers run, for each node, drop all data until regular expression matches.
sourcepub fn search_error(self) -> Self
pub fn search_error(self) -> Self
This is a shorthand to search for the first error in all
logs. Can be combined with Self::since and Self::re_hits
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more