metricsservice

package
v0.0.0-...-c4bdc48 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsSevrice

type MetricsSevrice struct {
	StartAt time.Time
	EndAt   time.Time

	MetricName string

	Config *cfg.Config
	// contains filtered or unexported fields
}

dMetricsSevrice - Holds data about the MetricsSevrice watcher

func NewMetricsSevrice

func NewMetricsSevrice(startat time.Time, endat time.Time, metricname string) *MetricsSevrice

NewMetricsSevrice - create new MetricsSevrice struct

func (*MetricsSevrice) SetCheckMetricsFunc

func (ms *MetricsSevrice) SetCheckMetricsFunc(cmf metrics.CheckMetricsFunc)

SetDoneHandler - set the callback handler when watcher is done

func (*MetricsSevrice) SetDoneHandler

func (ms *MetricsSevrice) SetDoneHandler(dh metrics.DoneHandler)

SetDoneHandler - set the callback handler when watcher is done

func (*MetricsSevrice) SetMetricsHandler

func (ms *MetricsSevrice) SetMetricsHandler(erh metrics.ErrorRateHandler)

SetMetricsHandler - set call back after reading the metrics

func (*MetricsSevrice) Start

func (ms *MetricsSevrice) Start()

Start - start watching

func (*MetricsSevrice) Stop

func (ms *MetricsSevrice) Stop(remove bool)

Stop - kill the watch time and stop watching

Jump to

Keyboard shortcuts

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