generic

package
v0.5.38 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GenericModelInputFetcherName = "generic_model_input_fetcher"
)

Variables

This section is empty.

Functions

func NewGenericModelInputFetcher

func NewGenericModelInputFetcher(fetcherName string, conf *config.Configuration, extraConf interface{},
	emitterPool metricspool.MetricsEmitterPool, metaServer *metaserver.MetaServer,
	metaCache metacache.MetaCache,
) (modelinputfetcher.ModelInputFetcher, error)

func SetGetContainerFeatureValueFunc

func SetGetContainerFeatureValueFunc(f GetContainerFeatureValueFunc)

RegisterGetContainerFeatureValueFunc allows to register pluggable function providing container features

func SetGetNodeFeatureValueFunc

func SetGetNodeFeatureValueFunc(f GetNodeFeatureValueFunc)

RegisterGetNodeFeatureValueFunc allows to register pluggable function providing node features

func SetGetNumaFeatureValueFunc

func SetGetNumaFeatureValueFunc(f GetNumaFeatureValueFunc)

RegisterGetNumaFeatureValueFunc allows to register pluggable function providing numa features

Types

type GenericModelInputFetcher

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

func (*GenericModelInputFetcher) FetchModelInput

func (bmif *GenericModelInputFetcher) FetchModelInput(ctx context.Context, metaReader metacache.MetaReader,
	metaWriter metacache.MetaWriter, metaServer *metaserver.MetaServer,
) error

type GetContainerFeatureValueFunc

type GetContainerFeatureValueFunc func(timestamp int64, podUID string, containerName string, metaServer *metaserver.MetaServer, metaReader metacache.MetaReader, conf *config.Configuration, extraConf interface{}) (map[string]interface{}, error)

type GetNodeFeatureValueFunc

type GetNodeFeatureValueFunc func(timestamp int64, metaServer *metaserver.MetaServer, metaReader metacache.MetaReader, conf *config.Configuration, extraConf interface{}) (map[string]interface{}, error)

type GetNumaFeatureValueFunc

type GetNumaFeatureValueFunc func(timestamp int64, numaID int, metaServer *metaserver.MetaServer, metaReader metacache.MetaReader, conf *config.Configuration, extraConf interface{}) (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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