pub struct MetricsFilter {
pub pipe_name: Option<String>,
pub session_id: Option<String>,
pub tool_name: Option<String>,
pub after: Option<DateTime<Utc>>,
pub before: Option<DateTime<Utc>>,
pub success_only: Option<bool>,
pub limit: Option<u32>,
}Expand description
Filter options for metrics queries.
Allows filtering invocations by various criteria for targeted analysis.
Fields§
§pipe_name: Option<String>Filter by pipe name (exact match).
session_id: Option<String>Filter by session ID.
tool_name: Option<String>Filter by tool name.
after: Option<DateTime<Utc>>Filter calls after this time.
before: Option<DateTime<Utc>>Filter calls before this time.
success_only: Option<bool>Only include successful (true) or failed (false) calls.
limit: Option<u32>Limit number of results.
Implementations§
Source§impl MetricsFilter
impl MetricsFilter
Sourcepub fn with_session(self, session_id: impl Into<String>) -> Self
pub fn with_session(self, session_id: impl Into<String>) -> Self
Filter by session ID.
Sourcepub fn successful_only(self) -> Self
pub fn successful_only(self) -> Self
Only include successful calls.
Sourcepub fn failed_only(self) -> Self
pub fn failed_only(self) -> Self
Only include failed calls.
Sourcepub fn with_limit(self, limit: u32) -> Self
pub fn with_limit(self, limit: u32) -> Self
Limit number of results.
Trait Implementations§
Source§impl Clone for MetricsFilter
impl Clone for MetricsFilter
Source§fn clone(&self) -> MetricsFilter
fn clone(&self) -> MetricsFilter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetricsFilter
impl Debug for MetricsFilter
Source§impl Default for MetricsFilter
impl Default for MetricsFilter
Source§fn default() -> MetricsFilter
fn default() -> MetricsFilter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetricsFilter
impl<'de> Deserialize<'de> for MetricsFilter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MetricsFilter
impl RefUnwindSafe for MetricsFilter
impl Send for MetricsFilter
impl Sync for MetricsFilter
impl Unpin for MetricsFilter
impl UnwindSafe for MetricsFilter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more