15 releases

0.6.6 Oct 6, 2024
0.6.5 Jun 4, 2024
0.6.4 May 29, 2024
0.6.1 Mar 25, 2024
0.0.1 Mar 26, 2017

#325 in Web programming

Download history 1/week @ 2024-09-17 13/week @ 2024-09-24 142/week @ 2024-10-01 35/week @ 2024-10-08 10/week @ 2024-10-15 51/week @ 2024-12-10 22/week @ 2024-12-24

73 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

~6–19MB
~231K SLoC