The watcher.decision_engine.strategy.strategies.dummy_with_scorer Module

The watcher.decision_engine.strategy.strategies.dummy_with_scorer Module

class watcher.decision_engine.strategy.strategies.dummy_with_scorer.DummyWithScorer(config, osc=None)[source]

Bases: watcher.decision_engine.strategy.strategies.base.DummyBaseStrategy

A dummy strategy using dummy scoring engines.

This is a dummy strategy demonstrating how to work with scoring engines. One scoring engine is predicting the workload type of a machine based on the telemetry data, the other one is simply calculating the average value for given elements in a list. Results are then passed to the NOP action.

The strategy is presenting the whole workflow: - Get a reference to a scoring engine - Prepare input data (features) for score calculation - Perform score calculation - Use scorer’s metadata for results interpretation

do_execute()[source]
classmethod get_display_name()[source]
classmethod get_name()[source]
classmethod get_schema()[source]
classmethod get_translatable_display_name()[source]
post_execute()[source]
pre_execute()[source]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.