Documentation ¶
Index ¶
- func PercentileBucketsBucket(v int64) int64
- func PercentileBucketsIndex(v int64) int
- func PercentileBucketsLength() int
- func PercentileBucketsPercentile(counts []int64, pct float64) float64
- func PercentileBucketsPercentiles(counts []int64, pcts []float64) []float64
- func PercentileTimerBuilder() *percTimerBuilder
- type PercentileDistributionSummary
- type PercentileTimer
- func NewPercentileTimer(registry *spectator.Registry, name string, tags map[string]string) *PercentileTimer
- func NewPercentileTimerWithId(registry *spectator.Registry, id *spectator.Id) *PercentileTimer
- func NewPercentileTimerWithIdRange(registry *spectator.Registry, id *spectator.Id, minDuration time.Duration, ...) *PercentileTimer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PercentileBucketsBucket ¶
func PercentileBucketsIndex ¶
func PercentileBucketsLength ¶
func PercentileBucketsLength() int
func PercentileTimerBuilder ¶
func PercentileTimerBuilder() *percTimerBuilder
Types ¶
type PercentileDistributionSummary ¶
type PercentileDistributionSummary struct {
// contains filtered or unexported fields
}
func NewPercentileDistributionSummary ¶
func NewPercentileDistributionSummary(registry *spectator.Registry, name string, tags map[string]string) *PercentileDistributionSummary
func NewPercentileDistributionSummaryWithId ¶
func NewPercentileDistributionSummaryWithId(registry *spectator.Registry, id *spectator.Id) *PercentileDistributionSummary
func (*PercentileDistributionSummary) Count ¶
func (t *PercentileDistributionSummary) Count() int64
func (*PercentileDistributionSummary) Percentile ¶
func (t *PercentileDistributionSummary) Percentile(p float64) float64
func (*PercentileDistributionSummary) Record ¶
func (t *PercentileDistributionSummary) Record(amount int64)
func (*PercentileDistributionSummary) TotalAmount ¶
func (t *PercentileDistributionSummary) TotalAmount() int64
type PercentileTimer ¶
type PercentileTimer struct {
// contains filtered or unexported fields
}
func NewPercentileTimer ¶
func NewPercentileTimer(registry *spectator.Registry, name string, tags map[string]string) *PercentileTimer
func NewPercentileTimerWithId ¶
func NewPercentileTimerWithId(registry *spectator.Registry, id *spectator.Id) *PercentileTimer
func NewPercentileTimerWithIdRange ¶
func NewPercentileTimerWithIdRange(registry *spectator.Registry, id *spectator.Id, minDuration time.Duration, maxDuration time.Duration) *PercentileTimer
func (*PercentileTimer) Count ¶
func (t *PercentileTimer) Count() int64
func (*PercentileTimer) Percentile ¶
func (t *PercentileTimer) Percentile(p float64) float64
func (*PercentileTimer) Record ¶
func (t *PercentileTimer) Record(amount time.Duration)
func (*PercentileTimer) TotalTime ¶
func (t *PercentileTimer) TotalTime() time.Duration
Click to show internal directories.
Click to hide internal directories.