rdtstore

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RDTStore

type RDTStore interface {
	RDTStoreInterface
	Name() string
	Run(stop <-chan struct{})
}

RDTStore describe common interface for rdt resource state inherit from state store

func NewRdtStoreManager

func NewRdtStoreManager(cacheTTL time.Duration, config *types.MetricsRdtConfig,
	cgStore cgstore.CgroupStoreInterface, cpuLock sync.Locker) RDTStore

NewRdtStoreManager new rdt store manager

type RDTStoreInterface

type RDTStoreInterface interface {
	GetRDTResourceRangeStats(key string, start, end time.Time, count int) ([]*RdtMetrics, error)
	GetRDTResourceRecentState(key string) (*RdtMetrics, error)
	ListRDTResourceRangeStats(start, end time.Time, count int) (map[string][]*RdtMetrics, error)
	ListRDTResourceRecentStats() ([]*RdtMetrics, error)
}

RDTStoreInterface describe special interface for rdt resource state

type RdtMetrics

type RdtMetrics struct {
	Spec  cgstore.CgroupRef
	Value rdt.RdtData
}

RdtMetrics show rdt metrics

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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