Documentation
¶
Index ¶
Constants ¶
View Source
const NumBuckets = 168 // 7 days × 24 hours
Variables ¶
This section is empty.
Functions ¶
func Save ¶
func Save(ctx context.Context, client copyClient, containerName string, store *BucketStore) error
func SaveSummary ¶
func SaveSummary(ctx context.Context, client copyClient, containerName string, store *BucketStore) error
Types ¶
type BucketStore ¶
type BucketStore struct {
LastTimestamp time.Time
Services map[string]*ServiceData
}
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) Fetch ¶
func (r *Reader) Fetch(service string) *ServiceSummary
type ServiceData ¶
type ServiceData struct {
Buckets [NumBuckets][]byte // serialized HLL sketches
BucketHours [NumBuckets]int64
}
type ServiceSummary ¶
Click to show internal directories.
Click to hide internal directories.