monitor

package
v6.35.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Common    processor.Config
	MergeTags []string
	Monitors  map[Type]interface{}
}

Config specifies the configs for monitors.

func (*Config) String

func (c *Config) String() string

type Monitor

type Monitor interface {

	// Start starts the monitor.
	Start() error

	// Stop Stops the monitor.
	Stop() error
}

A Monitor is an interface implmented to start/stop monitors.

func NewMonitors

func NewMonitors(collector collector.EventCollector, puhandler processor.ProcessingUnitsHandler, c *Config) (Monitor, error)

NewMonitors instantiates all/any combination of monitors supported.

type Type

type Type int

Type specifies the type of monitors supported.

const (
	CNI Type = iota + 1
	Docker
	LinuxProcess
	LinuxHost
	UID
)

Types supported.

Directories

Path Synopsis
cni
mock
Package mockinstance is a generated GoMock package.
Package mockinstance is a generated GoMock package.
uid
Package mockmonitor is a generated GoMock package.
Package mockmonitor is a generated GoMock package.
rpc

Jump to

Keyboard shortcuts

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