samplingstore

package
v1.57.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 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 SamplingStore

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

func NewSamplingStore

func NewSamplingStore(p SamplingStoreParams) *SamplingStore

func (*SamplingStore) GetLatestProbabilities

func (s *SamplingStore) GetLatestProbabilities() (model.ServiceOperationProbabilities, error)

func (*SamplingStore) GetThroughput

func (s *SamplingStore) GetThroughput(start, end time.Time) ([]*model.Throughput, error)

func (*SamplingStore) InsertProbabilitiesAndQPS

func (s *SamplingStore) InsertProbabilitiesAndQPS(hostname string,
	probabilities model.ServiceOperationProbabilities,
	qps model.ServiceOperationQPS,
) error

func (*SamplingStore) InsertThroughput

func (s *SamplingStore) InsertThroughput(throughput []*model.Throughput) error

type SamplingStoreParams

type SamplingStoreParams struct {
	Client                 func() es.Client
	Logger                 *zap.Logger
	IndexPrefix            string
	IndexDateLayout        string
	IndexRolloverFrequency time.Duration
	Lookback               time.Duration
	MaxDocCount            int
}

func (*SamplingStoreParams) PrefixedIndexName added in v1.57.0

func (p *SamplingStoreParams) PrefixedIndexName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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