Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itchyny/mackerel-client-hs
Mackerel API client in Haskell
https://github.com/itchyny/mackerel-client-hs
api-client haskell haskell-library mackerel mackerel-client
Last synced: 28 days ago
JSON representation
Mackerel API client in Haskell
- Host: GitHub
- URL: https://github.com/itchyny/mackerel-client-hs
- Owner: itchyny
- License: mit
- Created: 2016-11-20T13:25:43.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-02-06T04:21:39.000Z (almost 4 years ago)
- Last Synced: 2024-09-28T16:34:06.969Z (about 1 month ago)
- Topics: api-client, haskell, haskell-library, mackerel, mackerel-client
- Language: Haskell
- Homepage: https://hackage.haskell.org/package/mackerel-client
- Size: 85.9 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mackerel-client-hs
An API client library for [Mackerel](https://mackerel.io).API documents: [Mackerel API Documents (v0)](https://mackerel.io/api-docs/)
The official Go client library: [mackerel-client-go](https://github.com/mackerelio/mackerel-client-go)
## Example
```haskell
import Data.Default
import Web.Mackerelmain :: IO ()
main = do
let client = def { apiKey = "" }print =<< getOrganization client
print =<< listUsers clientprint =<< listHosts client def { listHostsParamsService = Just "servicename", listHostsParamsRoles = ["role1", "role2"] }
print =<< listMonitors client
print =<< updateMonitor client monitor { monitorName = "Monitor name renamed" }
print =<< deleteMonitor client (MonitorId "")print =<< listAlerts client
print =<< closeAlert client (AlertId "") "this is not an important alert"
```## Author
itchyny## License
This software is released under the MIT License, see LICENSE.