The watcher.decision_engine.planner.default Module

class watcher.decision_engine.planner.default.DefaultPlanner(config)[source]

Bases: watcher.decision_engine.planner.base.BasePlanner

Default planner implementation

This implementation comes with basic rules with a set of action types that are weighted. An action having a lower weight will be scheduled before the other ones. The set of action types can be specified by ‘weights’ in the watcher.conf. You need to associate a different weight to all available actions into the configuration file, otherwise you will get an error when the new action will be referenced in the solution produced by a strategy.

create_action(action_plan_id, action_type, input_parameters=None)[source]
classmethod get_config_opts()[source]
schedule(context, audit_id, solution)[source]

Previous topic

The watcher.decision_engine.planner.base Module

Next topic

The watcher.decision_engine.planner.manager Module

Project Source

This Page