Base classes for storage engines
Bases: object
Base class for storage system connections.
Create a new action.
Parameters: | values – A dict containing several items used to identify and track the action, and several dicts which are passed into the Drivers when managing this action. For example: {
'uuid': utils.generate_uuid(),
'name': 'example',
'description': 'free text description'
'aggregate': 'nova aggregate name or uuid'
}
|
---|---|
Returns: | A action. |
Raises: | ActionAlreadyExists |
Create a new action plan.
Parameters: | values – A dict containing several items used to identify and track the action plan. |
---|---|
Returns: | An action plan. |
Raises: | ActionPlanAlreadyExists |
Create a new audit.
Parameters: | values – A dict containing several items used to identify and track the audit, and several dicts which are passed into the Drivers when managing this audit. For example: {
'uuid': utils.generate_uuid(),
'type': 'ONESHOT',
'deadline': None
}
|
---|---|
Returns: | An audit. |
Raises: | AuditAlreadyExists |
Create a new audit template.
Parameters: | values – A dict containing several items used to identify and track the audit template. For example: {
'uuid': utils.generate_uuid(),
'name': 'example',
'description': 'free text description'
'host_aggregate': 'nova aggregate name or id'
'goal': 'DUMMY'
'extra': {'automatic': True}
}
|
---|---|
Returns: | An audit template. |
Raises: | AuditTemplateAlreadyExists |
Create a new efficacy indicator.
Parameters: | values – A dict containing items used to identify and track the efficacy indicator. For example: {
'id': 1,
'uuid': utils.generate_uuid(),
'name': 'my_efficacy_indicator',
'display_name': 'My efficacy indicator',
'goal_uuid': utils.generate_uuid(),
}
|
---|---|
Returns: | An efficacy_indicator |
Raises: | EfficacyIndicatorAlreadyExists |
Create a new goal.
Parameters: | values – A dict containing several items used to identify and track the goal. For example: {
'uuid': utils.generate_uuid(),
'name': 'DUMMY',
'display_name': 'Dummy',
}
|
---|---|
Returns: | A goal |
Raises: | GoalAlreadyExists |
Create a new scoring engine.
Parameters: | values – A dict containing several items used to identify and track the scoring engine. |
---|---|
Returns: | A scoring engine. |
Raises: | ScoringEngineAlreadyExists |
Create a new strategy.
Parameters: | values – A dict containing items used to identify and track the strategy. For example: {
'id': 1,
'uuid': utils.generate_uuid(),
'name': 'my_strategy',
'display_name': 'My strategy',
'goal_uuid': utils.generate_uuid(),
}
|
---|---|
Returns: | A strategy |
Raises: | StrategyAlreadyExists |
Destroy a action and all associated interfaces.
Parameters: | action_id – The id or uuid of a action. |
---|---|
Raises: | ActionNotFound |
Raises: | ActionReferenced |
Destroy an action plan and all associated interfaces.
Parameters: | action_plan_id – The id or uuid of a action plan. |
---|---|
Raises: | ActionPlanNotFound |
Raises: | ActionPlanReferenced |
Destroy an audit and all associated action plans.
Parameters: | audit_id – The id or uuid of an audit. |
---|---|
Raises: | AuditNotFound |
Destroy an audit_template.
Parameters: | audit_template_id – The id or uuid of an audit template. |
---|---|
Raises: | AuditTemplateNotFound |
Destroy an efficacy indicator.
Parameters: | efficacy_indicator_uuid – The UUID of an efficacy indicator |
---|---|
Raises: | EfficacyIndicatorNotFound |
Destroy a goal.
Parameters: | goal_uuid – The UUID of a goal |
---|---|
Raises: | GoalNotFound |
Destroy a scoring engine.
Parameters: | scoring_engine_id – The id of a scoring engine. |
---|---|
Raises: | ScoringEngineNotFound |
Destroy a strategy.
Parameters: | strategy_uuid – The UUID of a strategy |
---|---|
Raises: | StrategyNotFound |
Return a action.
Parameters: |
|
---|---|
Returns: | A action. |
Raises: |
Return a action.
Parameters: |
|
---|---|
Returns: | A action. |
Raises: |
Get specific columns for matching actions.
Return a list of the specified columns for all actions that match the specified filters.
Parameters: |
|
---|---|
Returns: | A list of tuples of the specified columns. |
Return an action plan.
Parameters: |
|
---|---|
Returns: | An action plan. |
Raises: |
Return a action plan.
Parameters: |
|
---|---|
Returns: | An action plan. |
Raises: |
Get specific columns for matching action plans.
Return a list of the specified columns for all action plans that match the specified filters.
Parameters: |
|
---|---|
Returns: | A list of tuples of the specified columns. |
Return an audit.
Parameters: |
|
---|---|
Returns: | An audit. |
Raises: |
Return an audit.
Parameters: |
|
---|---|
Returns: | An audit. |
Raises: |
Get specific columns for matching audits.
Return a list of the specified columns for all audits that match the specified filters.
Parameters: |
|
---|---|
Returns: | A list of tuples of the specified columns. |
Return an audit template.
Parameters: |
|
---|---|
Returns: | An audit template. |
Raises: |
Return an audit template.
Parameters: |
|
---|---|
Returns: | An audit template. |
Raises: |
Return an audit template.
Parameters: |
|
---|---|
Returns: | An audit template. |
Raises: |
Get specific columns for matching audit templates.
Return a list of the specified columns for all audit templates that match the specified filters.
Parameters: |
|
---|---|
Returns: | A list of tuples of the specified columns. |
Return an efficacy indicator given its ID.
Parameters: |
|
---|---|
Returns: | An efficacy indicator |
Raises: |
Return an efficacy indicator given its name.
Parameters: |
|
---|---|
Returns: | An efficacy indicator |
Raises: |
Return an efficacy indicator given its UUID.
Parameters: |
|
---|---|
Returns: | An efficacy indicator |
Raises: |
Get specific columns for matching efficacy indicators.
Return a list of the specified columns for all efficacy indicators that match the specified filters.
Parameters: |
|
---|---|
Returns: | A list of tuples of the specified columns. |
Return a goal given its ID.
Parameters: |
|
---|---|
Returns: | A goal |
Raises: |
Return a goal given its name.
Parameters: |
|
---|---|
Returns: | A goal |
Raises: |
Return a goal given its UUID.
Parameters: |
|
---|---|
Returns: | A goal |
Raises: |
Get specific columns for matching goals.
Return a list of the specified columns for all goals that match the specified filters.
Parameters: |
|
---|---|
Returns: | A list of tuples of the specified columns. |
Return a scoring engine by its id.
Parameters: |
|
---|---|
Returns: | A scoring engine. |
Raises: |
Return a scoring engine by its name.
Parameters: |
|
---|---|
Returns: | A scoring engine. |
Raises: |
Return a scoring engine by its uuid.
Parameters: |
|
---|---|
Returns: | A scoring engine. |
Raises: |
Get specific columns for matching scoring engines.
Return a list of the specified columns for all scoring engines that match the specified filters.
Parameters: |
|
---|---|
Returns: | A list of tuples of the specified columns. |
Return a strategy given its ID.
Parameters: |
|
---|---|
Returns: | A strategy |
Raises: |
Return a strategy given its name.
Parameters: |
|
---|---|
Returns: | A strategy |
Raises: |
Return a strategy given its UUID.
Parameters: |
|
---|---|
Returns: | A strategy |
Raises: |
Get specific columns for matching strategies.
Return a list of the specified columns for all strategies that match the specified filters.
Parameters: |
|
---|---|
Returns: | A list of tuples of the specified columns. |
Soft delete an audit and all associated action plans.
Parameters: | audit_id – The id or uuid of an audit. |
---|---|
Returns: | An audit. |
Raises: | AuditNotFound |
Soft delete an audit_template.
Parameters: | audit_template_id – The id or uuid of an audit template. |
---|---|
Raises: | AuditTemplateNotFound |
Update properties of a action.
Parameters: | action_id – The id or uuid of a action. |
---|---|
Returns: | A action. |
Raises: | ActionNotFound |
Raises: | ActionReferenced |
Raises: | Invalid |
Update properties of an action plan.
Parameters: | action_plan_id – The id or uuid of an action plan. |
---|---|
Returns: | An action plan. |
Raises: | ActionPlanNotFound |
Raises: | ActionPlanReferenced |
Raises: | Invalid |
Update properties of an audit.
Parameters: | audit_id – The id or uuid of an audit. |
---|---|
Returns: | An audit. |
Raises: | AuditNotFound |
Raises: | Invalid |
Update properties of an audit template.
Parameters: | audit_template_id – The id or uuid of an audit template. |
---|---|
Returns: | An audit template. |
Raises: | AuditTemplateNotFound |
Raises: | Invalid |
Update properties of an efficacy indicator.
Parameters: | efficacy_indicator_uuid – The UUID of an efficacy indicator |
---|---|
Returns: | An efficacy indicator |
Raises: | EfficacyIndicatorNotFound |
Raises: | Invalid |
Update properties of a goal.
Parameters: |
|
---|---|
Returns: | A goal |
Raises: | |
Raises: |
Update properties of a scoring engine.
Parameters: | scoring_engine_id – The id of a scoring engine. |
---|---|
Returns: | A scoring engine. |
Raises: | ScoringEngineNotFound |
Raises: | Invalid |
Update properties of a strategy.
Parameters: | strategy_uuid – The UUID of a strategy |
---|---|
Returns: | A strategy |
Raises: | StrategyNotFound |
Raises: | Invalid |