qan

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 License: AGPL-3.0 Imports: 13 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotRunning     = errors.New("not running")
	ErrAlreadyRunning = errors.New("already running")
)

Functions

This section is empty.

Types

type AnalyzerInstance

type AnalyzerInstance struct {
	// contains filtered or unexported fields
}

An AnalyzerInstance is an Analyzer ran by a Manager, one per MySQL instance as configured.

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

A Manager runs AnalyzerInstances, one per MySQL instance as configured.

func NewManager

func NewManager(
	logger *pct.Logger,
	instanceRepo *instance.Repo,
	analyzerFactory analyzer.AnalyzerFactory,
) *Manager

func (*Manager) GetConfig

func (m *Manager) GetConfig() ([]proto.AgentConfig, []error)

func (*Manager) GetDefaults

func (m *Manager) GetDefaults(uuid string) map[string]interface{}

func (*Manager) Handle

func (m *Manager) Handle(cmd *proto.Cmd) *proto.Reply

func (*Manager) Start

func (m *Manager) Start() error

func (*Manager) Status

func (m *Manager) Status() map[string]string

func (*Manager) Stop

func (m *Manager) Stop() error

Jump to

Keyboard shortcuts

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