pub struct TraceQuery {
pub tenant_id: TenantId,
pub start_time: Option<DateTime<Utc>>,
pub end_time: Option<DateTime<Utc>>,
pub provider: Option<LLMProvider>,
pub model_name: Option<String>,
pub operation_name: Option<String>,
pub min_security_score: Option<u8>,
pub max_security_score: Option<u8>,
pub trace_id: Option<Uuid>,
pub tags: HashMap<String, String>,
pub limit: Option<u32>,
pub offset: Option<u32>,
}Expand description
Query parameters for filtering traces.
Fields§
§tenant_id: TenantIdTenant to query traces for.
start_time: Option<DateTime<Utc>>Start time for the query range.
end_time: Option<DateTime<Utc>>End time for the query range.
provider: Option<LLMProvider>Filter by provider.
model_name: Option<String>Filter by model name.
operation_name: Option<String>Filter by operation name.
min_security_score: Option<u8>Minimum security score to include.
max_security_score: Option<u8>Maximum security score to include.
trace_id: Option<Uuid>Filter by trace ID.
Filter by tags.
limit: Option<u32>Maximum number of results to return.
offset: Option<u32>Number of results to skip (for pagination).
Implementations§
Source§impl TraceQuery
impl TraceQuery
Sourcepub fn with_time_range(self, start: DateTime<Utc>, end: DateTime<Utc>) -> Self
pub fn with_time_range(self, start: DateTime<Utc>, end: DateTime<Utc>) -> Self
Add a time range filter.
Sourcepub fn with_provider(self, provider: LLMProvider) -> Self
pub fn with_provider(self, provider: LLMProvider) -> Self
Add a provider filter.
Sourcepub fn with_security_score_range(self, min: u8, max: u8) -> Self
pub fn with_security_score_range(self, min: u8, max: u8) -> Self
Add a security score range filter.
Sourcepub fn with_limit(self, limit: u32) -> Self
pub fn with_limit(self, limit: u32) -> Self
Set the limit.
Trait Implementations§
Source§impl Clone for TraceQuery
impl Clone for TraceQuery
Source§fn clone(&self) -> TraceQuery
fn clone(&self) -> TraceQuery
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 TraceQuery
impl Debug for TraceQuery
Source§impl<'de> Deserialize<'de> for TraceQuery
impl<'de> Deserialize<'de> for TraceQuery
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 TraceQuery
impl RefUnwindSafe for TraceQuery
impl Send for TraceQuery
impl Sync for TraceQuery
impl Unpin for TraceQuery
impl UnsafeUnpin for TraceQuery
impl UnwindSafe for TraceQuery
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