Documentation
¶
Index ¶
Constants ¶
View Source
const ACTIVE_SERVICE = "GoActiveService"
View Source
const ACTIVE_SPEED = "ActiveSpeed"
View Source
const ELAPSED_TIME = "GoElapsedTime"
View Source
const ERROR_RATE = "GoErrorRate"
View Source
const GO_CGO_CALL = "GoCgoCall"
View Source
const GO_GC_COUNT = "GoGcCount"
View Source
const GO_GC_PAUSE = "GoGcPause"
View Source
const GO_GOROUTINE = "Goroutine"
View Source
const GO_HEAP_USED = "GoHeapUsed"
View Source
const TPS = "GoTPS"
Variables ¶
This section is empty.
Functions ¶
func SendGoCounter ¶
func SendGoCounter()
func SendServiceCounter ¶
func SendServiceCounter()
Types ¶
type Metering ¶
func NewMetering ¶
func NewMetering(create func() interface{}, clear func(interface{})) *Metering
func (*Metering) GetCurrentBucket ¶
func (m *Metering) GetCurrentBucket() interface{}
func (*Metering) SearchOnHandler ¶
type ServiceBucket ¶
type ServiceBucket struct {
// contains filtered or unexported fields
}
type ServiceCounter ¶
type ServiceMetering ¶
func GetServiceMeter ¶
func GetServiceMeter() *ServiceMetering
func (*ServiceMetering) Add ¶
func (g *ServiceMetering) Add(elapsed int, err bool)
func (*ServiceMetering) GetAllCounter ¶
func (g *ServiceMetering) GetAllCounter(period int) *ServiceCounter
type ValueBucket ¶
type ValueBucket struct {
// contains filtered or unexported fields
}
type ValueMetering ¶
func NewValueMeter ¶
func NewValueMeter() *ValueMetering
func (*ValueMetering) Add ¶
func (g *ValueMetering) Add(value float64)
func (*ValueMetering) GetAllCounter ¶
func (g *ValueMetering) GetAllCounter(period int) *ValueMetric
type ValueMetric ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.