Documentation on goal and efficacy
In this changeset, I wrote a documentation detailing how one can implement a new goal plugin. I also mention to define the efficacy specification for a given goal. Partially Implements: blueprint efficacy-indicator Change-Id: Iba267ae312f248b49d4600504f11678cdc225622
This commit is contained in:
@@ -16,9 +16,11 @@
|
||||
# limitations under the License.
|
||||
|
||||
"""
|
||||
An :ref:`Action Plan <action_plan_definition>` is a flow of
|
||||
An :ref:`Action Plan <action_plan_definition>` specifies a flow of
|
||||
:ref:`Actions <action_definition>` that should be executed in order to satisfy
|
||||
a given :ref:`Goal <goal_definition>`.
|
||||
a given :ref:`Goal <goal_definition>`. It also contains an estimated
|
||||
:ref:`global efficacy <efficacy_definition>` alongside a set of
|
||||
:ref:`efficacy indicators <efficacy_indicator_definition>`.
|
||||
|
||||
An :ref:`Action Plan <action_plan_definition>` is generated by Watcher when an
|
||||
:ref:`Audit <audit_definition>` is successful which implies that the
|
||||
@@ -26,16 +28,13 @@ An :ref:`Action Plan <action_plan_definition>` is generated by Watcher when an
|
||||
which was used has found a :ref:`Solution <solution_definition>` to achieve the
|
||||
:ref:`Goal <goal_definition>` of this :ref:`Audit <audit_definition>`.
|
||||
|
||||
In the default implementation of Watcher, an
|
||||
:ref:`Action Plan <action_plan_definition>`
|
||||
is only composed of successive :ref:`Actions <action_definition>`
|
||||
(i.e., a Workflow of :ref:`Actions <action_definition>` belonging to a unique
|
||||
branch).
|
||||
In the default implementation of Watcher, an action plan is composed of
|
||||
a list of successive :ref:`Actions <action_definition>` (i.e., a Workflow of
|
||||
:ref:`Actions <action_definition>` belonging to a unique branch).
|
||||
|
||||
However, Watcher provides abstract interfaces for many of its components,
|
||||
allowing other implementations to generate and handle more complex
|
||||
:ref:`Action Plan(s) <action_plan_definition>`
|
||||
composed of two types of Action Item(s):
|
||||
allowing other implementations to generate and handle more complex :ref:`Action
|
||||
Plan(s) <action_plan_definition>` composed of two types of Action Item(s):
|
||||
|
||||
- simple :ref:`Actions <action_definition>`: atomic tasks, which means it
|
||||
can not be split into smaller tasks or commands from an OpenStack point of
|
||||
@@ -46,13 +45,14 @@ composed of two types of Action Item(s):
|
||||
|
||||
An :ref:`Action Plan <action_plan_definition>` may be described using
|
||||
standard workflow model description formats such as
|
||||
`Business Process Model and Notation 2.0 (BPMN 2.0) <http://www.omg.org/spec/BPMN/2.0/>`_
|
||||
or `Unified Modeling Language (UML) <http://www.uml.org/>`_.
|
||||
`Business Process Model and Notation 2.0 (BPMN 2.0)
|
||||
<http://www.omg.org/spec/BPMN/2.0/>`_ or `Unified Modeling Language (UML)
|
||||
<http://www.uml.org/>`_.
|
||||
|
||||
To see the life-cycle and description of
|
||||
:ref:`Action Plan <action_plan_definition>` states, visit :ref:`the Action Plan state
|
||||
machine <action_plan_state_machine>`.
|
||||
""" # noqa
|
||||
:ref:`Action Plan <action_plan_definition>` states, visit :ref:`the Action Plan
|
||||
state machine <action_plan_state_machine>`.
|
||||
"""
|
||||
|
||||
import datetime
|
||||
|
||||
|
||||
@@ -15,20 +15,20 @@
|
||||
# limitations under the License.
|
||||
|
||||
"""
|
||||
An efficacy indicator is a single value
|
||||
that gives an indication on how the :ref:`solution <solution_definition>`
|
||||
produced by a given :ref:`strategy <strategy_definition>` performed. These
|
||||
efficacy indicators are specific to a given :ref:`goal <goal_definition>` and
|
||||
are usually used to compute the :ref:`gobal efficacy <efficacy_definition>` of
|
||||
the resulting :ref:`action plan <action_plan_definition>`.
|
||||
An efficacy indicator is a single value that gives an indication on how the
|
||||
:ref:`solution <solution_definition>` produced by a given :ref:`strategy
|
||||
<strategy_definition>` performed. These efficacy indicators are specific to a
|
||||
given :ref:`goal <goal_definition>` and are usually used to compute the
|
||||
:ref:`gobal efficacy <efficacy_definition>` of the resulting :ref:`action plan
|
||||
<action_plan_definition>`.
|
||||
|
||||
In Watcher, these efficacy indicators are specified alongside the goal they
|
||||
relate to. When a strategy (which always relates to a goal) is executed, it
|
||||
produces a solution containing the efficacy indicators specified by the
|
||||
goal. This solution, which has been translated by the :ref:`Watcher Planner
|
||||
<watcher_planner_definition>` into an action plan, will see its
|
||||
indicators and global efficacy stored and would now be accessible through the
|
||||
:ref:`Watcher API <watcher_api_definition>`.
|
||||
produces a solution containing the efficacy indicators specified by the goal.
|
||||
This solution, which has been translated by the :ref:`Watcher Planner
|
||||
<watcher_planner_definition>` into an action plan, will see its indicators and
|
||||
global efficacy stored and would now be accessible through the :ref:`Watcher
|
||||
API <archi_watcher_api_definition>`.
|
||||
"""
|
||||
|
||||
import numbers
|
||||
|
||||
Reference in New Issue
Block a user