metric

package
v0.0.0-...-9ac85d6 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusRecorder

type PrometheusRecorder struct {
}

PrometheusRecorder struct used to record metrics to be consumed by Prometheus

func (PrometheusRecorder) Initialize

func (pr PrometheusRecorder) Initialize()

Initialize all metrics

func (PrometheusRecorder) RecordReqByTypeTotal

func (pr PrometheusRecorder) RecordReqByTypeTotal(requestType string)

RecordReqByTypeTotal records a request type

type Recorder

type Recorder interface {
	Initialize()
	RecordReqByTypeTotal(requestType string)
}

Recorder interface that encapsulates all logic of metrics

Jump to

Keyboard shortcuts

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