Name: sensulib
Owner: Pantheon
Description: Golang Sensu API Library
Created: 2016-06-30 21:56:14.0
Updated: 2016-06-30 21:56:15.0
Pushed: 2016-06-30 23:37:44.0
Homepage: null
Size: 9
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This library is an implementation of Sensu 0.20's REST API for Golang.
reate a new configration struct
ig := sensu.DefaultConfig()
ig.Address = "<your_sensu_API_server:port>"
reate a new API Client
uAPI, err := sensu.NewAPIClient(config)
rr != nil {
// catch errors in client creation
et All clients that Sensu API server knows about
clients []sensu.Client
:= sensuAPI.getClients(&data)
Printf(First Client: %+v\n", clients[0])
https://gowalker.org/github.com/jefflaplante/sensulib
GPLv3