metric

package
v1.2.16 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAlarmCounter added in v1.2.14

func AddAlarmCounter(levelID, strategyID, teamID string, n float64)

AddAlarmCounter 告警计数器+n

func DecAlarmGauge added in v1.2.14

func DecAlarmGauge(levelID, strategyID, teamID string)

DecAlarmGauge 告警计数器-1

func IncAlarmCounter added in v1.2.14

func IncAlarmCounter(levelID, strategyID, teamID string)

IncAlarmCounter 告警计数器+1

func IncAlarmGauge added in v1.2.14

func IncAlarmGauge(levelID, strategyID, teamID string)

IncAlarmGauge 告警计数器+1

func IncCounterRequestErr

func IncCounterRequestErr(component, path string, code int32)

IncCounterRequestErr increments the counter of request error.

func IncNotifyCounter added in v1.2.14

func IncNotifyCounter(teamID, notifyStatus, notifyID string)

IncNotifyCounter 通知计数器+1

func IncRequestCounter

func IncRequestCounter(component, path string)

IncRequestCounter increments the QPS counter for the given method and path.

func NewMetricHandler

func NewMetricHandler(token string) http.Handler

NewMetricHandler 创建指标处理对象

func RecordResponseTime

func RecordResponseTime(component, path string, duration float64)

RecordResponseTime 记录响应时间

Types

This section is empty.

Jump to

Keyboard shortcuts

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