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