metrics

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoMetrics = errors.New("no metrics exist")
)

Functions

This section is empty.

Types

type QueryMetricsHandler

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

func NewQueryMetricsHandler

func NewQueryMetricsHandler(dbm db.Manager, stats *stats.Stats) *QueryMetricsHandler

func (*QueryMetricsHandler) Get

func (h *QueryMetricsHandler) Get(instanceId, classId uint, begin, end time.Time) (map[string]metrics.Stats, error)

func (*QueryMetricsHandler) GetMetricsSparklines added in v1.0.4

func (h *QueryMetricsHandler) GetMetricsSparklines(classId uint, instanceId uint, begin, end time.Time) ([]interface{}, error)

func (*QueryMetricsHandler) ServerSummary added in v1.0.4

func (h *QueryMetricsHandler) ServerSummary(instanceId uint, begin, end time.Time) (map[string]metrics.Stats, error)

Jump to

Keyboard shortcuts

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