| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sat, 17 Jan 2026 14:45:15 GMT
X-Served-By: cache-dfw-kdal2120048-DFW, cache-bom-vanm7210053-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768661115.835711,VS0,VE297
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
mackerel-client: An API client library for Mackerel
[Skip to Readme]
mackerel-client-hs
mackerel-client: An API client library for Mackerel
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]
Modules
[Index] [Quick Jump]
- Web
- Web.Mackerel
- Web.Mackerel.Api
- Web.Mackerel.Client
- Web.Mackerel.Config
- Web.Mackerel.Types
- Web.Mackerel.Types.Alert
- Web.Mackerel.Types.Authority
- Web.Mackerel.Types.Channel
- Web.Mackerel.Types.Dashboard
- Web.Mackerel.Types.GraphAnnotation
- Web.Mackerel.Types.Host
- Web.Mackerel.Types.Invitation
- Web.Mackerel.Types.Metadata
- Web.Mackerel.Types.Monitor
- Web.Mackerel.Types.Organization
- Web.Mackerel.Types.Role
- Web.Mackerel.Types.Service
- Web.Mackerel.Types.User
- Web.Mackerel
Downloads
- mackerel-client-0.3.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.0.0, 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.1.0, 0.2.0, 0.3.0 |
|---|---|
| Dependencies | aeson, base (>=4.9 && <5.0), bytestring, data-default, directory, filepath, htoml, http-client, http-client-tls, http-types, parsec, split, text, unordered-containers [details] |
| License | MIT |
| Author | itchyny |
| Maintainer | itchyny <itchyny@hatena.ne.jp> |
| Uploaded | by itchyny at 2020-07-18T13:52:06Z |
| Category | Web |
| Home page | https://github.com/itchyny/mackerel-client-hs |
| Source repo | head: git clone git@github.com:itchyny/mackerel-client-hs.git |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 5917 total (27 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] Last success reported on 2020-07-18 [all 1 reports] |
Readme for mackerel-client-0.3.0
[back to package description]mackerel-client-hs 
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.