//
pkg.gl
Category
github.com/erda-project/erda
modules
openapi
monitor
package
1.5.0
Repository:
https://github.com/erda-project/erda.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
11
Dependents
3
Files
268 SLOC
#
Functions
Metrics
Metrics 返回单调递增的 openapi metrics.
New
New 创建 Monitor.
Notify
Notify 使用默认 Monitor 调用 Notify.
Stat
Stat 返回所收集的 openapi 状态.
#
Constants
API40xCount
API40xCount api 4xx 次数.
API50xCount
API50xCount api 5xx 次数.
APIInvokeCount
APIInvokeCount api 调用次数.
APIInvokeDuration
APIInvokeDuration api 调用时长.
AuthFail
AuthFail auth 失败.
AuthSucc
AuthSucc auth 成功.
LastType
LastType InfoType 个数.
#
Structs
Info
Info monitor 使用处需要提供的信息.
Monitor
Monitor monitor struct.
#
Type aliases
InfoType
InfoType metric 分类go:generate stringer -type=InfoType.