The watcher.decision_engine.strategy.context.base Module

class watcher.decision_engine.strategy.context.base.StrategyContext[source]

Bases: object

do_execute_strategy(audit, request_context)[source]

Execute the strategy for the given an audit

Parameters:
  • audit (Audit instance) – Audit object
  • request_context (RequestContext instance) – Current request context
Returns:

The computed solution

Return type:

BaseSolution instance

execute_strategy(audit, request_context)[source]

Execute the strategy for the given an audit

Parameters:
  • audit (Audit instance) – Audit object
  • request_context (RequestContext instance) – Current request context
Returns:

The computed solution

Return type:

BaseSolution instance

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.