Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAgent ¶ added in v0.16.0
NewAgent creates a new instance of agent.Agent from its configuration conf.
Types ¶
type Context ¶ added in v0.19.0
type Context struct { Agent *agent.Agent Config *config.Config Host *mackerel.Host API *mackerel.API }
Context context object
func Prepare ¶ added in v0.8.0
Prepare sets up API and registers the host data to the Mackerel server. Use returned values to call Run().
func (*Context) UpdateHostSpecs ¶ added in v0.19.0
func (c *Context) UpdateHostSpecs()
UpdateHostSpecs updates the host information that is already registered on Mackerel.
Click to show internal directories.
Click to hide internal directories.