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) DynCfgEnable(pluginName string) error
- func (a *API) DynCfgRegisterJob(moduleName, jobName, jobType string) error
- func (a *API) DynCfgReportJobStatus(moduleName, jobName, status, reason string) error
- func (a *API) DynCfgReset() error
- func (a *API) DyncCfgRegisterModule(moduleName string) error
- func (a *API) EMPTYLINE() error
- func (a *API) END() error
- func (a *API) FunctionResultReject(uid, contentType, payload string) error
- func (a *API) FunctionResultSuccess(uid, contentType, payload string) error
- func (a *API) HOST(guid string) error
- func (a *API) HOSTDEFINE(guid, hostname string) error
- func (a *API) HOSTDEFINEEND() error
- func (a *API) HOSTINFO(guid, hostname string, labels map[string]string) error
- func (a *API) HOSTLABEL(name, value string) 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.
func (*API) DynCfgEnable ¶ added in v0.56.4
func (*API) DynCfgRegisterJob ¶ added in v0.56.4
func (*API) DynCfgReportJobStatus ¶ added in v0.56.4
func (*API) DynCfgReset ¶ added in v0.56.4
func (*API) DyncCfgRegisterModule ¶ added in v0.56.4
func (*API) FunctionResultReject ¶ added in v0.56.4
func (*API) FunctionResultSuccess ¶ added in v0.56.4
func (*API) HOSTDEFINE ¶ added in v0.51.0
func (*API) HOSTDEFINEEND ¶ added in v0.51.0
Click to show internal directories.
Click to hide internal directories.