Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RollingPolicy ¶
type RollingPolicy struct {
// contains filtered or unexported fields
}
RollingPolicy 滑块
func NewRollingPolicy ¶
func NewRollingPolicy(opts ...Option) *RollingPolicy
func (*RollingPolicy) Reduce ¶
func (r *RollingPolicy) Reduce(fn func(*Bucket))
Reduce 统计所有的采集完整的桶, 当前这个桶和跳过的桶不计算
func (*RollingPolicy) Summary ¶
func (r *RollingPolicy) Summary() (uint64, uint64)
Summary 返回有效bucket数量之和
Click to show internal directories.
Click to hide internal directories.