#monitoring #api-client #performance-monitoring #service #api #algolia #rust

algolia-monitoring-rs

A library for interacting with the Algolia Monitoring API

2 releases

0.1.5 Mar 10, 2024
0.1.4 May 7, 2023

#998 in Web programming

Download history 4/week @ 2024-02-16 5/week @ 2024-02-23 151/week @ 2024-03-08 11/week @ 2024-03-15 4/week @ 2024-03-29

166 downloads per month

Apache-2.0

16KB
142 lines

Algolia Monitoring API Client

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:

  1. 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.
  2. 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.
  3. 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:

  1. Install the client library in your project.
  2. (Optional) Create an instance of the client using your Algolia API key and application ID.
  3. Call the appropriate methods, such as get_status, get_incidents, or get_latency, to fetch data from the Algolia Monitoring API.
  4. Process the returned data as needed by your application.

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);
    println!("Hello, world!");
}

Dependencies

~4–17MB
~253K SLoC