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>
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