Golang SDK and CLI tool for https://monibot.io.
PLEASE NOTE: Monibot is still under development, visit https://monibot.io for details.
$ go get github.com/cvilsmeier/monibot-go
import "github.com/cvilsmeier/monibot-go"
func main() {
// api access requires an apiKey
apiKey := os.Getenv("MONIBOT_API_KEY")
// create new api
api := monibot.NewApi(apiKey)
// send a watchdog heartbeat
err := api.PostWatchdogHeartbeat("5f6d343f517715a471d8768730c3f2f4")
if err != nil {
log.Fatal(err)
}
}
Build from source, needs Go. See also https://go.dev.
$ go install github.com/cvilsmeier/monibot-go/cmd/moni@latest
Show help page with the following command:
$ moni help
See CHANGELOG.md
MIT License, see LICENSE