Crates.io | mackerel_client |
lib.rs | mackerel_client |
version | 0.6.6 |
source | src |
created_at | 2017-03-26 12:07:43.148416 |
updated_at | 2024-10-06 02:37:06.6371 |
description | An API client library for Mackerel |
homepage | |
repository | https://github.com/itchyny/mackerel-client-rs |
max_upload_size | |
id | 9154 |
size | 302,781 |
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
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.
itchyny itchyny@cybozu.co.jp
This software is released under the MIT License, see LICENSE.