mackerel_client 0.0.0

An API client library for Mackerel
Documentation

mackerel-client-rs

Travis Build 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.