mackerel-client: An API client library for Mackerel

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

Warnings:

This library provides bindings to Mackerel APIs.

The official site of Mackerel: https://mackerel.io/. The reference of Mackerel API: https://mackerel.io/api-docs/.


[Skip to ReadMe]

Properties

Versions0.0.0, 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.1.0, 0.1.0, 0.2.0
Change logNone available
Dependenciesaeson, base (>=4.9 && <5.0), bytestring, data-default, directory, filepath, htoml, http-client, http-client-tls, http-types, parsec, split, text, unordered-containers [details]
LicenseMIT
Authoritchyny
Maintaineritchyny <itchyny@hatena.ne.jp>
CategoryWeb
Home pagehttps://github.com/itchyny/mackerel-client-hs
Source repositoryhead: git clone git@github.com:itchyny/mackerel-client-hs.git
UploadedThu Oct 5 07:34:28 UTC 2017 by itchyny

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees


Readme for mackerel-client-0.1.0

[back to package description]

mackerel-client-hs Build Status

An API client library for Mackerel.

API documents: Mackerel API Documents (v0)

The official Go client library: mackerel-client-go

Example

import Data.Default
import Web.Mackerel

main :: IO ()
main = do
  let client = def { apiKey = "<Mackerel-API-KEY>" }

  print =<< getOrganization client
  print =<< listUsers client

  print =<< listHosts client def { listHostsParamsService = Just "servicename", listHostsParamsRoles = ["role1", "role2"] }

  print =<< listMonitors client
  print =<< updateMonitor client monitor { monitorName = "Monitor name renamed" }
  print =<< deleteMonitor client (MonitorId "<Monitor-ID>")

  print =<< listAlerts client
  print =<< closeAlert client (AlertId "<Alert-ID>") "this is not an important alert"

Author

itchyny itchyny@hatena.ne.jp

License

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