beater

package
v5.0.0-alpha3+incompat... Latest Latest
Warning

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

Go to latest
Published: May 31, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigSettings

type ConfigSettings struct {
	Topbeat TopConfig `config:"topbeat"`
}

type StatsEnableConfig

type StatsEnableConfig struct {
	System     bool `config:"system"`
	Proc       bool `config:"process"`
	Filesystem bool `config:"filesystem"`
	Core       bool `config:"core"`
	CPUTicks   bool `config:"cpu_ticks"`
}

func (*StatsEnableConfig) Validate

func (c *StatsEnableConfig) Validate() error

type TopConfig

type TopConfig struct {
	Period time.Duration     `config:"period"  validate:"min=1ms"`
	Procs  []string          `config:"procs"`
	Stats  StatsEnableConfig `config:"stats"`
}

func (*TopConfig) Validate

func (c *TopConfig) Validate() error

type Topbeat

type Topbeat struct {
	TbConfig ConfigSettings
	// contains filtered or unexported fields
}

func New

func New() *Topbeat

func (*Topbeat) Cleanup

func (tb *Topbeat) Cleanup(b *beat.Beat) error

func (*Topbeat) Config

func (tb *Topbeat) Config(b *beat.Beat) error

func (*Topbeat) Run

func (t *Topbeat) Run(b *beat.Beat) error

func (*Topbeat) Setup

func (t *Topbeat) Setup(b *beat.Beat) error

func (*Topbeat) Stop

func (t *Topbeat) Stop()

Jump to

Keyboard shortcuts

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