type ClientMetrics struct {
// contains filtered or unexported fields
}
func NewClientMetrics() *ClientMetrics
func (cm *ClientMetrics) AddLatency(rk RequestKind, l int64) error
func (cm *ClientMetrics) IncrementReachedReadQueueCapacity()
func (cm *ClientMetrics) IncrementReachedWriteQueueCapacity()
func (cm *ClientMetrics) PercentileMap(rk RequestKind) (*PercentileMapWithCount, error)
func (cm *ClientMetrics) ReachedReadQueueCapacity() int64
func (cm *ClientMetrics) ReachedWriteQueueCapacity() int64
type PercentileMapWithCount struct { PercentileMap *map[float64]float64 Count int64 }
type RequestKind int8
const ( ReadEvent RequestKind = iota ReadFromQueue ReadObjectsAtVt ReadObjectsAtTt ReadObjectsByEvent ReadObjectsByFqn ReadObjectsByIndexes ReadPoint Write WriteFromQueue CountByIndexes // Aggregations MaxByIndexes MeanByIndexes MedianByIndexes MinByIndexes PercentileByIndexes StdevByIndexes SumByIndexes VarByIndexes ListLockedFqns // Lock / Unlock Fqns LockFqns UnlockFqns Entitle // Entitlements )
func RequestKinds() []RequestKind
func (i RequestKind) String() string