storage

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OutOfSpaceThreshold = 512 * bytesize.MB

Functions

This section is empty.

Types

type DeleteInput added in v0.0.33

type DeleteInput struct {
	Key *segment.Key
}

type GetInput added in v0.0.30

type GetInput struct {
	StartTime time.Time
	EndTime   time.Time
	Key       *segment.Key
	Query     *flameql.Query
}

type GetOutput added in v0.0.30

type GetOutput struct {
	Tree       *tree.Tree
	Timeline   *segment.Timeline
	SpyName    string
	SampleRate uint32
	Units      string
}

type Ingester added in v0.0.37

type Ingester interface {
	Put(*PutInput) error
}

type IngestionObserver added in v0.0.37

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

func NewIngestionObserver added in v0.0.37

func NewIngestionObserver(storage *Storage, exporter *exporter.MetricsExporter) IngestionObserver

func (IngestionObserver) Put added in v0.0.37

func (o IngestionObserver) Put(i *PutInput) error

type PutInput added in v0.0.30

type PutInput struct {
	StartTime       time.Time
	EndTime         time.Time
	Key             *segment.Key
	Val             *tree.Tree
	SpyName         string
	SampleRate      uint32
	Units           string
	AggregationType string
}

type Storage

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

func New

func New(c *config.Server) (*Storage, error)

func (*Storage) CacheStats added in v0.0.33

func (s *Storage) CacheStats() map[string]interface{}

func (*Storage) Close

func (s *Storage) Close() error

func (*Storage) CollectLocalProfiles added in v0.0.33

func (s *Storage) CollectLocalProfiles() error

func (*Storage) Delete added in v0.0.33

func (s *Storage) Delete(di *DeleteInput) error

func (*Storage) DeleteDataBefore added in v0.0.33

func (s *Storage) DeleteDataBefore(threshold time.Time) error

func (*Storage) DiskUsage

func (s *Storage) DiskUsage() map[string]bytesize.ByteSize

func (*Storage) Get

func (s *Storage) Get(gi *GetInput) (*GetOutput, error)

func (*Storage) GetKeys

func (s *Storage) GetKeys(cb func(_k string) bool)

func (*Storage) GetValues

func (s *Storage) GetValues(key string, cb func(v string) bool)

func (*Storage) InstallID

func (s *Storage) InstallID() string

func (*Storage) Put

func (s *Storage) Put(po *PutInput) error

func (*Storage) PutLocal added in v0.0.33

func (s *Storage) PutLocal(po *PutInput) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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