metricsutil

package
v0.10.3-0...-f06509b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheEvictRecord

type CacheEvictRecord struct {
	// contains filtered or unexported fields
}

func NewCacheEvictRecord

func NewCacheEvictRecord(label SegmentLabel) *CacheEvictRecord

NewCacheEvictRecord creates a new CacheEvictRecord.

func (*CacheEvictRecord) Finish

func (r *CacheEvictRecord) Finish(err error)

Finish finishes the record.

func (*CacheEvictRecord) Label

func (r *CacheEvictRecord) Label() SegmentLabel

Label returns the label of the recorder.

func (*CacheEvictRecord) WithBytes

func (r *CacheEvictRecord) WithBytes(bytes uint64) *CacheEvictRecord

WithBytes sets the bytes of the record.

type CacheLoadRecord

type CacheLoadRecord struct {
	// contains filtered or unexported fields
}

CacheLoadRecord records the metrics of a cache load.

func NewCacheLoadRecord

func NewCacheLoadRecord(label SegmentLabel) *CacheLoadRecord

NewCacheLoadRecord creates a new CacheLoadRecord.

func (*CacheLoadRecord) Finish

func (r *CacheLoadRecord) Finish(err error)

Finish finishes the record.

func (*CacheLoadRecord) Label

func (r *CacheLoadRecord) Label() SegmentLabel

Label returns the label of the recorder.

func (*CacheLoadRecord) WithBytes

func (r *CacheLoadRecord) WithBytes(bytes uint64) *CacheLoadRecord

WithBytes sets the bytes of the record.

type QuerySegmentAccessRecord

type QuerySegmentAccessRecord struct {
	// contains filtered or unexported fields
}

QuerySegmentAccessRecord records the metrics of a query segment.

func NewQuerySegmentAccessRecord

func NewQuerySegmentAccessRecord(label SegmentLabel) QuerySegmentAccessRecord

NewQuerySegmentAccessRecord creates a new QuerySegmentMetricRecorder.

func (QuerySegmentAccessRecord) CacheMissing

func (r QuerySegmentAccessRecord) CacheMissing()

CacheMissing records the cache missing.

func (QuerySegmentAccessRecord) Finish

func (r QuerySegmentAccessRecord) Finish(err error)

type SearchSegmentAccessRecord

type SearchSegmentAccessRecord struct {
	// contains filtered or unexported fields
}

SearchSegmentAccessRecord records the metrics of a search segment.

func NewSearchSegmentAccessRecord

func NewSearchSegmentAccessRecord(label SegmentLabel) SearchSegmentAccessRecord

NewSearchSegmentAccessRecord creates a new SearchSegmentMetricRecorder.

func (SearchSegmentAccessRecord) CacheMissing

func (r SearchSegmentAccessRecord) CacheMissing()

CacheMissing records the cache missing.

func (SearchSegmentAccessRecord) Finish

func (r SearchSegmentAccessRecord) Finish(err error)

type SegmentLabel

type SegmentLabel struct {
	DatabaseName  string `expr:"DatabaseName"`
	ResourceGroup string `expr:"ResourceGroup"`
}

SegmentLabel is the label of a segment.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL