Crates.io | algolia-monitoring-rs |
lib.rs | algolia-monitoring-rs |
version | 0.1.6 |
source | src |
created_at | 2023-05-04 19:45:38.944112 |
updated_at | 2024-07-28 17:53:35.075492 |
description | A library for interacting with the Algolia Monitoring API |
homepage | https://github.com/oneslash/algolia-monitoring-rs |
repository | https://github.com/oneslash/algolia-monitoring-rs |
max_upload_size | |
id | 857044 |
size | 57,240 |
The Algolia Monitoring API Client is a library that enables developers to interact with the Algolia Monitoring REST API programmatically. This client makes it easy to fetch data and monitor the status, incidents, inventory, latency, and reachability of Algolia's services. By providing a simple interface to interact with the API, the Algolia Monitoring API Client abstracts away the complexity of making HTTP requests, handling authentication, and parsing JSON responses.
The repository is not affiliated with Algolia company and all the trademarks to Algolia name is theirs.
Key features of the Algolia Monitoring API Client:
Simple Interface: The client offers an easy-to-use interface to interact with the API, with intuitive methods to access various endpoints such as get_status
, get_incidents
, get_inventory
, get_latency
, and get_reachability
.
Asynchronous Support: The API client supports asynchronous requests, allowing developers to make non-blocking calls to the Algolia Monitoring API, improving the performance and responsiveness of applications.
Error Handling: The client provides clear error messages and handles common HTTP errors, allowing developers to focus on building their applications rather than debugging API requests.
Usage of the Algolia Monitoring API Client typically involves the following steps:
get_status
, get_incidents
, or get_latency
, to fetch data from the Algolia Monitoring API.By using the Algolia Monitoring API Client, developers can easily monitor their Algolia services, ensuring optimal performance, and quickly addressing any incidents or issues that arise.
Simple example
use algolia_monitoring_rs::AlgoliaMonitoring;
#[tokio::main]
async fn main() {
let monitoring = AlgoliaMonitoring::new("api_key".to_owned(), "app_id".to_owned());
let result = monitoring.get_status(None).await;
println!("{:?}", result);
}