Documentation ¶
Index ¶
- type API
- func (a *API) BEGIN(typeID string, ID string, msSince int) (err error)
- func (a *API) CHART(typeID string, ID string, name string, title string, units string, ...) error
- func (a *API) CLABEL(key, value string, source int) error
- func (a *API) CLABELCOMMIT() error
- func (a *API) DIMENSION(ID string, name string, algorithm string, multiplier int, divisor int, ...) error
- func (a *API) DISABLE() error
- func (a *API) EMPTYLINE() error
- func (a *API) END() error
- func (a *API) FLUSH() error
- func (a *API) SET(ID string, value int64) error
- func (a *API) SETEMPTY(ID string) error
- func (a *API) VARIABLE(ID string, value int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API implements Netdata external plugins API. https://learn.netdata.cloud/docs/agent/collectors/plugins.d#the-output-of-the-plugin
func (*API) CHART ¶
func (a *API) CHART( typeID string, ID string, name string, title string, units string, family string, context string, chartType string, priority int, updateEvery int, options string, plugin string, module string) error
CHART creates or update a chart.
func (*API) CLABELCOMMIT ¶ added in v0.33.0
CLABELCOMMIT adds labels to the chart. Should be called after one or more CLABEL.
func (*API) DIMENSION ¶
func (a *API) DIMENSION( ID string, name string, algorithm string, multiplier int, divisor int, options string) error
DIMENSION adds or update a dimension to the chart just created.
func (*API) DISABLE ¶
DISABLE disables this plugin. This will prevent Netdata from restarting the plugin.
Click to show internal directories.
Click to hide internal directories.