Documentation ¶
Index ¶
- func AddAlarmCounter(levelID, strategyID, teamID string, n float64)
- func DecAlarmGauge(levelID, strategyID, teamID string)
- func IncAlarmCounter(levelID, strategyID, teamID string)
- func IncAlarmGauge(levelID, strategyID, teamID string)
- func IncCounterRequestErr(component, path string, code int32)
- func IncNotifyCounter(teamID, notifyStatus, notifyID string)
- func IncRequestCounter(component, path string)
- func NewMetricHandler(token string) http.Handler
- func RecordResponseTime(component, path string, duration float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAlarmCounter ¶ added in v1.2.14
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 ¶
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 RecordResponseTime ¶
RecordResponseTime 记录响应时间
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.