Versions in this module Expand all Collapse all v0 v0.6.0 May 16, 2014 Changes in this version + var DefaultConfig = &Config + func IdFilePath(root string) string + func LoadHostId(root string) (string, error) + func SaveHostId(root string, id string) error + type API struct + ApiKey string + BaseUrl *url.URL + Verbose bool + func NewApi(rawurl string, apiKey string, verbose bool) (*API, error) + func (api *API) CreateHost(name string, meta map[string]interface{}, interfaces []map[string]interface{}, ...) (string, error) + func (api *API) Do(req *http.Request) (resp *http.Response, err error) + func (api *API) FindHost(id string) (*Host, error) + func (api *API) PostMetricsValues(metricsValues [](*CreatingMetricsValue)) error + func (api *API) UpdateHost(hostId string, name string, meta map[string]interface{}, ...) error + type Config struct + Apibase string + Apikey string + DeprecatedSensu map[string]PluginConfigs + Pidfile string + Plugin map[string]PluginConfigs + Roles []string + Root string + Verbose bool + func LoadConfig(conffile string) (Config, error) + func LoadConfigFile(file string) (Config, error) + type CreatingMetricsValue struct + HostId string + Name string + Time float64 + Value interface{} + type Host struct + Id string + Name string + Status string + Type string + type Metrics struct + HostId string + Id string + Name string + type PluginConfig struct + Command string + type PluginConfigs map[string]PluginConfig