Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvgCounter ¶
func NewAvgCounter ¶
func NewAvgCounter() *AvgCounter
func (*AvgCounter) AppendMeter ¶
func (*AvgCounter) Calculate ¶
func (a *AvgCounter) Calculate() float64
func (*AvgCounter) CusHalfOfMetrics ¶
func (a *AvgCounter) CusHalfOfMetrics() Metrics
func (*AvgCounter) Increase ¶
func (a *AvgCounter) Increase(val float64)
func (*AvgCounter) MergeAndClean ¶
func (a *AvgCounter) MergeAndClean(other *AvgCounter)
type Counter ¶
type Counter struct {
Value int
}
func NewCounter ¶
func NewCounter() *Counter
func (*Counter) AppendMeter ¶
func (*Counter) CusHalfOfMetrics ¶
func (*Counter) MergeAndClean ¶
type Histogram ¶
func NewHistogram ¶
func (*Histogram) AppendMeter ¶
func (*Histogram) CusHalfOfMetrics ¶
func (*Histogram) MergeAndClean ¶
type TopN ¶
func (*TopN) AppendData ¶
func (t *TopN) AppendData(process api.ProcessInterface, traffic *base.ProcessTraffic, metricsBuilder *base.MetricsBuilder) int
func (*TopN) MergeAndClean ¶
type TopNData ¶
type TopNData interface {
Flush(duration int64, process api.ProcessInterface, traffic *base.ProcessTraffic, metricsBuilder *base.MetricsBuilder)
}
type TopNRecord ¶
Click to show internal directories.
Click to hide internal directories.