mackerel-client-rs

An API client library for Mackerel written in Rust

MIT License

Downloads
11.2K
Stars
7
Committers
2

mackerel-client-rs

An API client library for Mackerel written in Rust

Mackerel is a performance monitoring and management tool of servers. This monitoring SaaS provides you the intuitive user interfaces and useful APIs for automated infrastructure foundation.

API documents: Mackerel API Documents (v0)

The official Go client library: mackerel-client-go

Example

use mackerel_client::*;

#[async_std::main]
async fn main() {
    let client = Client::new("<Mackerel-API-KEY>");

    println!("{:?}", client.get_organization().await);
    println!("{:?}", client.list_users().await);
    println!("{:?}", client.list_invitations().await);

    println!("{:?}", client.list_services().await);
    println!("{:?}", client.list_service_metric_names("<Service-Name>").await);

    println!("{:?}", client.list_monitors().await);
    println!("{:?}", client.delete_monitor("<Monitor-ID>").await);
}

Refer to the documentation.

Author

itchyny [email protected]

License

This software is released under the MIT License, see LICENSE.

Package Rankings
Top 24.8% on Crates.io
Badges
Extracted from project README
CI Status crates.io MIT License