An open API service indexing awesome lists of open source software.

https://github.com/rubyonworld/mackerel-client-ruby

mackerel-client is a ruby library to access Mackerel (https://mackerel.io/).
https://github.com/rubyonworld/mackerel-client-ruby

access client library mackerel rails ruby

Last synced: 15 days ago
JSON representation

mackerel-client is a ruby library to access Mackerel (https://mackerel.io/).

Awesome Lists containing this project

README

          

# mackerel-client [![CI](https://github.com/mackerelio/mackerel-client-ruby/actions/workflows/ci.yml/badge.svg)](https://github.com/mackerelio/mackerel-client-ruby/actions/workflows/ci.yml) [![Gem Version](https://badge.fury.io/rb/mackerel-client.svg)](https://badge.fury.io/rb/mackerel-client)

mackerel-client is a ruby library to access Mackerel (https://mackerel.io/).

## Usage

```ruby
require 'mackerel/client'

@mackerel = Mackerel::Client.new(:mackerel_api_key => "")
host = @mackerel.get_host("")
```

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'mackerel-client'
```

And then execute:

```sh
bundle
```

Or install it yourself as:

```sh
gem install mackerel-client
```