14 unstable releases (6 breaking)

0.6.5 Jun 4, 2024
0.6.3 Apr 7, 2024
0.6.1 Mar 25, 2024
0.6.0 Dec 15, 2023
0.0.1 Mar 26, 2017

#297 in Web programming

Download history 55/week @ 2024-03-29 207/week @ 2024-04-05 7/week @ 2024-04-12 6/week @ 2024-05-17 133/week @ 2024-05-24 171/week @ 2024-05-31 27/week @ 2024-06-07 6/week @ 2024-06-14 2/week @ 2024-06-21 5/week @ 2024-06-28 46/week @ 2024-07-05

54 downloads per month
Used in mkr

MIT license

300KB
8K SLoC

mackerel-client-rs

CI Status crates.io MIT License

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 itchyny@cybozu.co.jp

License

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

Dependencies

~5–20MB
~259K SLoC