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 ¶
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) Stop ¶
func (ms *MetricsSevrice) Stop(remove bool)
Stop - kill the watch time and stop watching
Click to show internal directories.
Click to hide internal directories.