Struct avassa_client::volga::Query [−][src]
pub struct Query { /* fields omitted */ }Log query parameters
Implementations
impl Query[src]
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
Auto Trait Implementations
impl RefUnwindSafe for Query
impl RefUnwindSafe for Queryimpl UnwindSafe for Query
impl UnwindSafe for QueryBlanket Implementations
impl<T> Instrument 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> Same<T> for T
impl<T> Same<T> for Ttype Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,