demo

package
v4.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DemoCollector

type DemoCollector struct {
	*collector.BaseCollector
}

func NewDemoCollector

func NewDemoCollector() *DemoCollector

type DemoRule

type DemoRule struct {
	Period int `label:"Period" json:"period,required" description:"The period of the function, in seconds" default:"3600"`
	Count  int `label:"Count" json:"count,required" enum:"[1, 2, 4, 8, 16]" description:"The Count of the series" default:"8"`
}

func (*DemoRule) TelegrafInput

func (p *DemoRule) TelegrafInput() (telegraf.Input, error)

func (*DemoRule) Validate

func (p *DemoRule) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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