PercentileResourceAssessmentStrategy¶
-
class
oci.cloud_migrations.models.
PercentileResourceAssessmentStrategy
(**kwargs)¶ Bases:
oci.cloud_migrations.models.resource_assessment_strategy.ResourceAssessmentStrategy
The strategy based on percentile usage.
Attributes
METRIC_TIME_WINDOW_1D
A constant which can be used with the metric_time_window property of a PercentileResourceAssessmentStrategy. METRIC_TIME_WINDOW_30D
A constant which can be used with the metric_time_window property of a PercentileResourceAssessmentStrategy. METRIC_TIME_WINDOW_7D
A constant which can be used with the metric_time_window property of a PercentileResourceAssessmentStrategy. PERCENTILE_P50
A constant which can be used with the percentile property of a PercentileResourceAssessmentStrategy. PERCENTILE_P90
A constant which can be used with the percentile property of a PercentileResourceAssessmentStrategy. PERCENTILE_P95
A constant which can be used with the percentile property of a PercentileResourceAssessmentStrategy. PERCENTILE_P99
A constant which can be used with the percentile property of a PercentileResourceAssessmentStrategy. RESOURCE_TYPE_ALL
str(object=’’) -> str RESOURCE_TYPE_CPU
str(object=’’) -> str RESOURCE_TYPE_MEMORY
str(object=’’) -> str STRATEGY_TYPE_AS_IS
str(object=’’) -> str STRATEGY_TYPE_AVERAGE
str(object=’’) -> str STRATEGY_TYPE_PEAK
str(object=’’) -> str STRATEGY_TYPE_PERCENTILE
str(object=’’) -> str adjustment_multiplier
Gets the adjustment_multiplier of this PercentileResourceAssessmentStrategy. metric_time_window
Gets the metric_time_window of this PercentileResourceAssessmentStrategy. percentile
[Required] Gets the percentile of this PercentileResourceAssessmentStrategy. resource_type
[Required] Gets the resource_type of this ResourceAssessmentStrategy. strategy_type
[Required] Gets the strategy_type of this ResourceAssessmentStrategy. Methods
__init__
(**kwargs)Initializes a new PercentileResourceAssessmentStrategy object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
METRIC_TIME_WINDOW_1D
= '1d'¶ A constant which can be used with the metric_time_window property of a PercentileResourceAssessmentStrategy. This constant has a value of “1d”
-
METRIC_TIME_WINDOW_30D
= '30d'¶ A constant which can be used with the metric_time_window property of a PercentileResourceAssessmentStrategy. This constant has a value of “30d”
-
METRIC_TIME_WINDOW_7D
= '7d'¶ A constant which can be used with the metric_time_window property of a PercentileResourceAssessmentStrategy. This constant has a value of “7d”
-
PERCENTILE_P50
= 'P50'¶ A constant which can be used with the percentile property of a PercentileResourceAssessmentStrategy. This constant has a value of “P50”
-
PERCENTILE_P90
= 'P90'¶ A constant which can be used with the percentile property of a PercentileResourceAssessmentStrategy. This constant has a value of “P90”
-
PERCENTILE_P95
= 'P95'¶ A constant which can be used with the percentile property of a PercentileResourceAssessmentStrategy. This constant has a value of “P95”
-
PERCENTILE_P99
= 'P99'¶ A constant which can be used with the percentile property of a PercentileResourceAssessmentStrategy. This constant has a value of “P99”
-
RESOURCE_TYPE_ALL
= 'ALL'¶
-
RESOURCE_TYPE_CPU
= 'CPU'¶
-
RESOURCE_TYPE_MEMORY
= 'MEMORY'¶
-
STRATEGY_TYPE_AS_IS
= 'AS_IS'¶
-
STRATEGY_TYPE_AVERAGE
= 'AVERAGE'¶
-
STRATEGY_TYPE_PEAK
= 'PEAK'¶
-
STRATEGY_TYPE_PERCENTILE
= 'PERCENTILE'¶
-
__init__
(**kwargs)¶ Initializes a new PercentileResourceAssessmentStrategy object with values from keyword arguments. The default value of the
strategy_type
attribute of this class isPERCENTILE
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - resource_type (str) – The value to assign to the resource_type property of this PercentileResourceAssessmentStrategy. Allowed values for this property are: “CPU”, “MEMORY”, “ALL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- strategy_type (str) – The value to assign to the strategy_type property of this PercentileResourceAssessmentStrategy. Allowed values for this property are: “AS_IS”, “AVERAGE”, “PEAK”, “PERCENTILE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- percentile (str) – The value to assign to the percentile property of this PercentileResourceAssessmentStrategy. Allowed values for this property are: “P50”, “P90”, “P95”, “P99”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- adjustment_multiplier (float) – The value to assign to the adjustment_multiplier property of this PercentileResourceAssessmentStrategy.
- metric_time_window (str) – The value to assign to the metric_time_window property of this PercentileResourceAssessmentStrategy. Allowed values for this property are: “1d”, “7d”, “30d”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
adjustment_multiplier
¶ Gets the adjustment_multiplier of this PercentileResourceAssessmentStrategy. The real resource usage is multiplied to this number before making any recommendation.
Returns: The adjustment_multiplier of this PercentileResourceAssessmentStrategy. Return type: float
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
metric_time_window
¶ Gets the metric_time_window of this PercentileResourceAssessmentStrategy. The current state of the migration plan.
Allowed values for this property are: “1d”, “7d”, “30d”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The metric_time_window of this PercentileResourceAssessmentStrategy. Return type: str
-
percentile
¶ [Required] Gets the percentile of this PercentileResourceAssessmentStrategy. Percentile value
Allowed values for this property are: “P50”, “P90”, “P95”, “P99”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The percentile of this PercentileResourceAssessmentStrategy. Return type: str
-
resource_type
¶ [Required] Gets the resource_type of this ResourceAssessmentStrategy. The type of resource.
Allowed values for this property are: “CPU”, “MEMORY”, “ALL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The resource_type of this ResourceAssessmentStrategy. Return type: str
-
strategy_type
¶ [Required] Gets the strategy_type of this ResourceAssessmentStrategy. The type of strategy used for migration.
Allowed values for this property are: “AS_IS”, “AVERAGE”, “PEAK”, “PERCENTILE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The strategy_type of this ResourceAssessmentStrategy. Return type: str
-