uptrakit-openapi-client 0.0.4

Typed HTTP client for the Uptrakit web API
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::Result;
use crate::UptrakitClient;
use crate::types_impl::system_alerts::SystemAlertsResponse;

impl UptrakitClient {
    /// Get active system alerts.
    pub async fn get_system_alerts(&self) -> Result<SystemAlertsResponse> {
        self.get(crate::paths::system_alerts::ALERTS).await
    }
}