Documentation ¶
Index ¶
- Constants
- func AddCounter(key string, value int64)
- func AddGauge(key string, value int64)
- func AddMeter(key string, value int64)
- func AddTimer(key string, duration int64)
- func ElapseTimeString(t int64) string
- func GetCounter(key string) int64
- func GetMeterRate(key string) float64
- func GetMetrics(param *QueryParam) (stat string, err error)
- func GetTimerMean(key string) float64
- func LoadDataFromBytes(s []byte) error
- func SaveDataToString() string
- func Start(cfg *config.Config) (err error)
- func Stop()
- type QueryParam
Constants ¶
View Source
const ( ElapseLess10ms = "Less10ms" ElapseLess20ms = "Less20ms" ElapseLess50ms = "Less50ms" ElapseLess100ms = "Less100ms" ElapseLess200ms = "Less200ms" ElapseLess500ms = "Less500ms" ElapseMore500ms = "More500ms" CmdGet = "GET" CmdGetMiss = "GETMiss" CmdGetError = "GetError" CmdSet = "SET" CmdSetError = "SetError" CmdAck = "ACK" CmdAckError = "AckError" Qps = "qps" Ops = "ops" Accum = "Accum" Latency = "Latency" ToConn = "ToConn" ReConn = "ReConn" Elapsed = "elapsed" Rebalance = "Rebalance" RecvError = "RecvError" BytesRead = "BytesRead" BytesWriten = "BytesWriten" Goroutine = "Goroutine" Gc = "Gc" GcPauseAvg = "GcPauseAvg" GcPauseMax = "GcPauseMax" GcPauseMin = "GcPauseMin" MemAlloc = "MemAlloc" AllHost = "*" )
Variables ¶
This section is empty.
Functions ¶
func AddCounter ¶
func ElapseTimeString ¶
func GetCounter ¶
func GetMeterRate ¶
func GetMetrics ¶
func GetMetrics(param *QueryParam) (stat string, err error)
func GetTimerMean ¶
func LoadDataFromBytes ¶
func SaveDataToString ¶
func SaveDataToString() string
Types ¶
Click to show internal directories.
Click to hide internal directories.