inputs

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Inputs = map[string]Creator{}

Functions

func Add

func Add(name string, creator Creator)

Types

type Creator

type Creator func() telegraf.Input

type MockPlugin

type MockPlugin struct {
	mock.Mock
}

MockPlugin struct should be named the same as the Plugin

func (*MockPlugin) Description added in v1.2.0

func (m *MockPlugin) Description() string

Description will appear directly above the plugin definition in the config file

func (*MockPlugin) Gather

func (m *MockPlugin) Gather(_a0 telegraf.Accumulator) error

Gather defines what data the plugin will gather.

func (*MockPlugin) SampleConfig added in v1.2.0

func (m *MockPlugin) SampleConfig() string

SampleConfig will populate the sample configuration portion of the plugin's configuration

Jump to

Keyboard shortcuts

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