pub struct GatewayClient { /* private fields */ }Expand description
Client for interacting with Kairos API Gateway
Implementations§
Source§impl GatewayClient
impl GatewayClient
Sourcepub fn new(gateway_url: &str) -> Result<Self, ClientError>
pub fn new(gateway_url: &str) -> Result<Self, ClientError>
Create a new gateway client
Sourcepub async fn health(&self) -> Result<HealthStatus, ClientError>
pub async fn health(&self) -> Result<HealthStatus, ClientError>
Check gateway health status
Sourcepub async fn metrics(&self) -> Result<String, ClientError>
pub async fn metrics(&self) -> Result<String, ClientError>
Get gateway metrics
Sourcepub async fn metrics_snapshot(&self) -> Result<MetricsSnapshot, ClientError>
pub async fn metrics_snapshot(&self) -> Result<MetricsSnapshot, ClientError>
Get parsed metrics snapshot
Auto Trait Implementations§
impl !RefUnwindSafe for GatewayClient
impl !UnwindSafe for GatewayClient
impl Freeze for GatewayClient
impl Send for GatewayClient
impl Sync for GatewayClient
impl Unpin for GatewayClient
impl UnsafeUnpin for GatewayClient
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