Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInferencePlugin ¶
func NewInferencePlugin(pluginName string, conf *config.Configuration, extraConf interface{}, emitterPool metricspool.MetricsEmitterPool, metaServer *metaserver.MetaServer, metaCache metacache.MetaCache, ) (plugin.SysAdvisorPlugin, error)
Types ¶
type InferencePlugin ¶
type InferencePlugin struct {
// contains filtered or unexported fields
}
func (*InferencePlugin) Init ¶
func (infp *InferencePlugin) Init() error
Init initializes the inference plugin
func (*InferencePlugin) Name ¶
func (infp *InferencePlugin) Name() string
Name returns the name of inference plugin
func (*InferencePlugin) Run ¶
func (infp *InferencePlugin) Run(ctx context.Context)
Run aligns each inference cycle and its timestamp to period boundaries to avoid cumulative drift, and executes cycles serially.
Click to show internal directories.
Click to hide internal directories.