command

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2014 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdFilePath added in v0.6.1

func IdFilePath(root string) string

func LoadHostId added in v0.6.1

func LoadHostId(root string) (string, error)

func Prepare added in v0.8.0

func Prepare(conf *config.Config) (*mackerel.API, *mackerel.Host, error)

Prepare sets up API and registers the host data to the Mackerel server. Use returned values to call Run().

func Run

func Run(conf *config.Config, api *mackerel.API, host *mackerel.Host)

Run starts the main metric collecting logic and this function will never return.

func SaveHostId added in v0.6.1

func SaveHostId(root string, id string) error

func UpdateHostSpecs added in v0.8.0

func UpdateHostSpecs(conf *config.Config, api *mackerel.API, host *mackerel.Host)

UpdateHostSpecs updates the host information that is already registered on Mackerel.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL