watcher.api.controllers.v1.strategy
Modulewatcher.api.controllers.v1.strategy
Module¶A Strategy is an algorithm implementation which is able to find a Solution for a given Goal.
There may be several potential strategies which are able to achieve the same Goal. This is why it is possible to configure which specific Strategy should be used for each goal.
Some strategies may provide better optimization results but may take more time to find an optimal Solution.
watcher.api.controllers.v1.strategy.
StrategiesController
[source]¶Bases: pecan.rest.RestController
REST controller for Strategies.
detail
(*args, **kwargs)[source]¶Retrieve a list of strategies with detail.
Parameters: |
|
---|
get_all
(*args, **kwargs)[source]¶Retrieve a list of strategies.
Parameters: |
|
---|
watcher.api.controllers.v1.strategy.
Strategy
(**kwargs)[source]¶Bases: watcher.api.controllers.base.APIBase
API representation of a strategy.
This class enforces type checking and value constraints, and converts between the internal object model and the API representation of a strategy.
watcher.api.controllers.v1.strategy.
StrategyCollection
(**kwargs)[source]¶Bases: watcher.api.controllers.v1.collection.Collection
API representation of a collection of strategies.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.