Documentation
¶
Index ¶
- Constants
- type MetricReporter
- func (mr *MetricReporter) IncrementCounter(name string, count int64)
- func (mr *MetricReporter) Start() error
- func (mr *MetricReporter) Stop() error
- func (mr *MetricReporter) UpdateHistogram(name string, value int64)
- func (mr *MetricReporter) UpdateMeter(name string, count int64)
- func (mr *MetricReporter) WithTimer(name string, body func())
Constants ¶
View Source
const ( STDOUT = "stdout" STDERR = "stderr" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricReporter ¶
type MetricReporter struct {
// contains filtered or unexported fields
}
func DefaultReporterInstance ¶
func DefaultReporterInstance() (reporter *MetricReporter, err error)
func ReporterInstance ¶
func ReporterInstance(writeTo string, reportPeriodically bool, reportIntervalSeconds int, reportOnShutdown bool) *MetricReporter
func ReporterInstanceFromConfig ¶
func ReporterInstanceFromConfig(config *config.V3ioConfig) *MetricReporter
func (*MetricReporter) IncrementCounter ¶ added in v0.0.13
func (mr *MetricReporter) IncrementCounter(name string, count int64)
func (*MetricReporter) Start ¶
func (mr *MetricReporter) Start() error
func (*MetricReporter) Stop ¶
func (mr *MetricReporter) Stop() error
func (*MetricReporter) UpdateHistogram ¶ added in v0.0.13
func (mr *MetricReporter) UpdateHistogram(name string, value int64)
func (*MetricReporter) UpdateMeter ¶ added in v0.0.13
func (mr *MetricReporter) UpdateMeter(name string, count int64)
func (*MetricReporter) WithTimer ¶ added in v0.0.13
func (mr *MetricReporter) WithTimer(name string, body func())
Click to show internal directories.
Click to hide internal directories.