Documentation
¶
Index ¶
- Constants
- func NewGenericModelInputFetcher(fetcherName string, conf *config.Configuration, extraConf interface{}, ...) (modelinputfetcher.ModelInputFetcher, error)
- func SetGetContainerFeatureValueFunc(f GetContainerFeatureValueFunc)
- func SetGetNodeFeatureValueFunc(f GetNodeFeatureValueFunc)
- func SetGetNumaFeatureValueFunc(f GetNumaFeatureValueFunc)
- type GenericModelInputFetcher
- type GetContainerFeatureValueFunc
- type GetNodeFeatureValueFunc
- type GetNumaFeatureValueFunc
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)
Click to show internal directories.
Click to hide internal directories.