PeakResourceAssessmentStrategy

class oci.cloud_migrations.models.PeakResourceAssessmentStrategy(**kwargs)

Bases: ResourceAssessmentStrategy

Peak usage based strategy.

Attributes:

METRIC_TIME_WINDOW_1D

A constant which can be used with the metric_time_window property of a PeakResourceAssessmentStrategy.

METRIC_TIME_WINDOW_30D

A constant which can be used with the metric_time_window property of a PeakResourceAssessmentStrategy.

METRIC_TIME_WINDOW_7D

A constant which can be used with the metric_time_window property of a PeakResourceAssessmentStrategy.

METRIC_TYPE_AUTO

A constant which can be used with the metric_type property of a PeakResourceAssessmentStrategy.

METRIC_TYPE_HISTORICAL

A constant which can be used with the metric_type property of a PeakResourceAssessmentStrategy.

METRIC_TYPE_RUNTIME

A constant which can be used with the metric_type property of a PeakResourceAssessmentStrategy.

RESOURCE_TYPE_ALL

A constant which can be used with the resource_type property of a ResourceAssessmentStrategy.

RESOURCE_TYPE_CPU

A constant which can be used with the resource_type property of a ResourceAssessmentStrategy.

RESOURCE_TYPE_MEMORY

A constant which can be used with the resource_type property of a ResourceAssessmentStrategy.

STRATEGY_TYPE_AS_IS

A constant which can be used with the strategy_type property of a ResourceAssessmentStrategy.

STRATEGY_TYPE_AVERAGE

A constant which can be used with the strategy_type property of a ResourceAssessmentStrategy.

STRATEGY_TYPE_PEAK

A constant which can be used with the strategy_type property of a ResourceAssessmentStrategy.

STRATEGY_TYPE_PERCENTILE

A constant which can be used with the strategy_type property of a ResourceAssessmentStrategy.

adjustment_multiplier

Gets the adjustment_multiplier of this PeakResourceAssessmentStrategy.

metric_time_window

Gets the metric_time_window of this PeakResourceAssessmentStrategy.

metric_type

Gets the metric_type of this PeakResourceAssessmentStrategy.

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 PeakResourceAssessmentStrategy 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 PeakResourceAssessmentStrategy. 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 PeakResourceAssessmentStrategy. 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 PeakResourceAssessmentStrategy. This constant has a value of “7d”

METRIC_TYPE_AUTO = 'AUTO'

A constant which can be used with the metric_type property of a PeakResourceAssessmentStrategy. This constant has a value of “AUTO”

METRIC_TYPE_HISTORICAL = 'HISTORICAL'

A constant which can be used with the metric_type property of a PeakResourceAssessmentStrategy. This constant has a value of “HISTORICAL”

METRIC_TYPE_RUNTIME = 'RUNTIME'

A constant which can be used with the metric_type property of a PeakResourceAssessmentStrategy. This constant has a value of “RUNTIME”

RESOURCE_TYPE_ALL = 'ALL'

A constant which can be used with the resource_type property of a ResourceAssessmentStrategy. This constant has a value of “ALL”

RESOURCE_TYPE_CPU = 'CPU'

A constant which can be used with the resource_type property of a ResourceAssessmentStrategy. This constant has a value of “CPU”

RESOURCE_TYPE_MEMORY = 'MEMORY'

A constant which can be used with the resource_type property of a ResourceAssessmentStrategy. This constant has a value of “MEMORY”

STRATEGY_TYPE_AS_IS = 'AS_IS'

A constant which can be used with the strategy_type property of a ResourceAssessmentStrategy. This constant has a value of “AS_IS”

STRATEGY_TYPE_AVERAGE = 'AVERAGE'

A constant which can be used with the strategy_type property of a ResourceAssessmentStrategy. This constant has a value of “AVERAGE”

STRATEGY_TYPE_PEAK = 'PEAK'

A constant which can be used with the strategy_type property of a ResourceAssessmentStrategy. This constant has a value of “PEAK”

STRATEGY_TYPE_PERCENTILE = 'PERCENTILE'

A constant which can be used with the strategy_type property of a ResourceAssessmentStrategy. This constant has a value of “PERCENTILE”

__init__(**kwargs)

Initializes a new PeakResourceAssessmentStrategy object with values from keyword arguments. The default value of the strategy_type attribute of this class is PEAK 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 PeakResourceAssessmentStrategy. 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 PeakResourceAssessmentStrategy. 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’.

  • adjustment_multiplier (float) – The value to assign to the adjustment_multiplier property of this PeakResourceAssessmentStrategy.

  • metric_type (str) – The value to assign to the metric_type property of this PeakResourceAssessmentStrategy. Allowed values for this property are: “AUTO”, “HISTORICAL”, “RUNTIME”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • metric_time_window (str) – The value to assign to the metric_time_window property of this PeakResourceAssessmentStrategy. 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’.

property adjustment_multiplier

Gets the adjustment_multiplier of this PeakResourceAssessmentStrategy. The real resource usage is multiplied to this number before making any recommendation.

Returns

The adjustment_multiplier of this PeakResourceAssessmentStrategy.

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.

property metric_time_window

Gets the metric_time_window of this PeakResourceAssessmentStrategy. 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 PeakResourceAssessmentStrategy.

Return type

str

property metric_type

Gets the metric_type of this PeakResourceAssessmentStrategy. The current state of the migration plan.

Allowed values for this property are: “AUTO”, “HISTORICAL”, “RUNTIME”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The metric_type of this PeakResourceAssessmentStrategy.

Return type

str

property 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

property 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