API client library for UptimeRobot
Go

README.md

Jimdo / uptimerobot-api

Build Status API-Documentation GoDoc Reference License Apache 2.0

UptimeRobot is an easy-to-use monitoring service. This library enables developers to use Go to access the API of UptimeRobot to manage their resources.

Testing

To execute the tests you need to export your UptimeRobot API-Key to your env before running the tests:

# export UR_API_KEY=u232958-fc43e2ab62ed66a08b0e578b
# go test -cover -v ./...
=== RUN TestGetAccountDetail
--- PASS: TestGetAccountDetail (0.63s)
=== RUN TestGetAccountDetailWithoutAccount
--- PASS: TestGetAccountDetailWithoutAccount (0.54s)
=== RUN TestGetAlertContacts
--- PASS: TestGetAlertContacts (0.54s)
=== RUN TestNewGetDeleteAlertContact
--- PASS: TestNewGetDeleteAlertContact (2.35s)
=== RUN TestNewAlertContactMissingParameters
--- PASS: TestNewAlertContactMissingParameters (0.00s)
=== RUN TestNewAlertContactWrongParameters
--- PASS: TestNewAlertContactWrongParameters (0.54s)
=== RUN TestNewAlertContactLongFriendlyName
--- PASS: TestNewAlertContactLongFriendlyName (0.00s)
=== RUN TestMonitorFlow
--- PASS: TestMonitorFlow (4.22s)
PASS
coverage: 72.8% of statements
ok      github.com/Jimdo/uptimerobot-api    8.828s