#api #mackerel

mackerel_client

An API client library for Mackerel

7 releases (4 breaking)

Uses old Rust 2015

0.4.0 Jul 25, 2020
0.3.0 Mar 30, 2019
0.2.0 Aug 19, 2018
0.1.0 Oct 5, 2017
0.0.1 Mar 26, 2017

#746 in #api

MIT license

64KB
2K SLoC

mackerel-client-rs

CI Status MIT licensed crates.io

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

extern crate mackerel_client;
use mackerel_client::*;

fn main() {
    let client = Client::new("<Mackerel-API-KEY>");

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

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

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

Refer to the documentation.

Author

itchyny itchyny@hatena.ne.jp

License

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

Dependencies

~7–11MB
~242K SLoC

y_