pub struct ApiClient { /* private fields */ }Implementations§
Source§impl ApiClient
impl ApiClient
pub fn new(endpoint: String, timeout: Duration) -> Result<Self>
pub async fn fetch_logs( &self, params: Vec<(&str, String)>, ) -> Result<LogsResponse>
pub async fn fetch_log_by_id(&self, timestamp: i64) -> Result<LogEntry>
pub async fn search_logs( &self, query: &str, params: Vec<(&str, String)>, ) -> Result<LogsResponse>
pub async fn get_logs(&self, query: &LogsQuery) -> Result<LogsResponse>
pub async fn fetch_traces( &self, params: Vec<(&str, String)>, ) -> Result<TracesResponse>
pub async fn fetch_trace_by_id(&self, id: &str) -> Result<Trace>
pub async fn get_traces(&self, query: &TracesQuery) -> Result<TracesResponse>
pub async fn fetch_metrics( &self, params: Vec<(&str, String)>, ) -> Result<Vec<MetricResponse>>
pub async fn fetch_metric_by_name( &self, name: &str, params: Vec<(&str, String)>, ) -> Result<Vec<MetricResponse>>
pub async fn export_logs(&self, params: Vec<(&str, String)>) -> Result<String>
pub async fn export_traces(&self, params: Vec<(&str, String)>) -> Result<String>
pub async fn export_metrics( &self, params: Vec<(&str, String)>, ) -> Result<String>
pub async fn health_check(&self) -> Result<bool>
pub async fn fetch_token_usage( &self, params: Vec<(&str, String)>, ) -> Result<TokenUsageResponse>
pub async fn fetch_latency_stats( &self, params: Vec<(&str, String)>, ) -> Result<Vec<LatencyStats>>
pub async fn fetch_truncation_rate( &self, params: Vec<(&str, String)>, ) -> Result<Vec<TruncationRateByModel>>
pub async fn fetch_cache_hit_rate( &self, params: Vec<(&str, String)>, ) -> Result<Vec<CacheHitRateByModel>>
pub async fn fetch_conversation_depth( &self, params: Vec<(&str, String)>, ) -> Result<ConversationDepthStats>
pub async fn fetch_tool_usage( &self, params: Vec<(&str, String)>, ) -> Result<Vec<ToolUsage>>
pub async fn fetch_error_types( &self, params: Vec<(&str, String)>, ) -> Result<Vec<ErrorTypeBreakdown>>
pub async fn fetch_model_drift( &self, params: Vec<(&str, String)>, ) -> Result<Vec<ModelDriftPair>>
Auto Trait Implementations§
impl Freeze for ApiClient
impl !RefUnwindSafe for ApiClient
impl Send for ApiClient
impl Sync for ApiClient
impl Unpin for ApiClient
impl UnsafeUnpin for ApiClient
impl !UnwindSafe for ApiClient
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