Strategy¶
-
class
oci.optimizer.models.
Strategy
(**kwargs)¶ Bases:
object
The metadata associated with the strategy. The strategy is the method used to apply the recommendation.
Methods
__init__
(**kwargs)Initializes a new Strategy object with values from keyword arguments. Attributes
is_default
[Required] Gets the is_default of this Strategy. parameters_definition
Gets the parameters_definition of this Strategy. strategy_name
[Required] Gets the strategy_name of this Strategy. -
__init__
(**kwargs)¶ Initializes a new Strategy object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - strategy_name (str) – The value to assign to the strategy_name property of this Strategy.
- is_default (bool) – The value to assign to the is_default property of this Strategy.
- parameters_definition (list[oci.optimizer.models.StrategyParameter]) – The value to assign to the parameters_definition property of this Strategy.
-
is_default
¶ [Required] Gets the is_default of this Strategy. Whether this is the default recommendation strategy.
Returns: The is_default of this Strategy. Return type: bool
-
parameters_definition
¶ Gets the parameters_definition of this Strategy. The list of strategies for the parameters.
Returns: The parameters_definition of this Strategy. Return type: list[oci.optimizer.models.StrategyParameter]
-
strategy_name
¶ [Required] Gets the strategy_name of this Strategy. The name of the strategy.
Returns: The strategy_name of this Strategy. Return type: str
-