metricscommon

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 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 MetricsCommon

type MetricsCommon struct {
	Start           *prometheus.CounterVec
	FinishTotal     *prometheus.CounterVec
	FinishTimeHist  *prometheus.HistogramVec
	FinishTimeTotal *prometheus.CounterVec
	Alarm           map[string]map[string]bool
	AlarmSegment    map[string]bool
}

func NewMetricsCommon

func NewMetricsCommon() *MetricsCommon

func (*MetricsCommon) AutoRegister

func (mc *MetricsCommon) AutoRegister() *MetricsCommon

func (*MetricsCommon) MustRegister

func (mc *MetricsCommon) MustRegister(registerer prometheus.Registerer) *MetricsCommon

func (*MetricsCommon) WriteMetricRequest

func (mc *MetricsCommon) WriteMetricRequest(c *mfctx.Crumps, segment, method string)

func (*MetricsCommon) WriteMetricResponse

func (mc *MetricsCommon) WriteMetricResponse(c *mfctx.Crumps, mRequest time.Time, segment, method string, statusCode string)

Jump to

Keyboard shortcuts

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