HostStorageRecommendations

class oci.opsi.models.HostStorageRecommendations(**kwargs)

Bases: HostInsightHostRecommendations

Contains storage recommendation.

Attributes:

METRIC_RECOMMENDATION_NAME_HOST_CPU_RECOMMENDATIONS

A constant which can be used with the metric_recommendation_name property of a HostInsightHostRecommendations.

METRIC_RECOMMENDATION_NAME_HOST_MEMORY_RECOMMENDATIONS

A constant which can be used with the metric_recommendation_name property of a HostInsightHostRecommendations.

METRIC_RECOMMENDATION_NAME_HOST_NETWORK_RECOMMENDATIONS

A constant which can be used with the metric_recommendation_name property of a HostInsightHostRecommendations.

METRIC_RECOMMENDATION_NAME_HOST_STORAGE_RECOMMENDATIONS

A constant which can be used with the metric_recommendation_name property of a HostInsightHostRecommendations.

UNUSED_INSTANCE_IN_USE

A constant which can be used with the unused_instance property of a HostStorageRecommendations.

UNUSED_INSTANCE_IS_NOT_DETERMINED

A constant which can be used with the unused_instance property of a HostStorageRecommendations.

UNUSED_INSTANCE_NOT_IN_USE

A constant which can be used with the unused_instance property of a HostStorageRecommendations.

is_abandoned_instance

Gets the is_abandoned_instance of this HostStorageRecommendations.

metric_recommendation_name

[Required] Gets the metric_recommendation_name of this HostInsightHostRecommendations.

unused_instance

Gets the unused_instance of this HostStorageRecommendations.

Methods:

__init__(**kwargs)

Initializes a new HostStorageRecommendations 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_RECOMMENDATION_NAME_HOST_CPU_RECOMMENDATIONS = 'HOST_CPU_RECOMMENDATIONS'

A constant which can be used with the metric_recommendation_name property of a HostInsightHostRecommendations. This constant has a value of “HOST_CPU_RECOMMENDATIONS”

METRIC_RECOMMENDATION_NAME_HOST_MEMORY_RECOMMENDATIONS = 'HOST_MEMORY_RECOMMENDATIONS'

A constant which can be used with the metric_recommendation_name property of a HostInsightHostRecommendations. This constant has a value of “HOST_MEMORY_RECOMMENDATIONS”

METRIC_RECOMMENDATION_NAME_HOST_NETWORK_RECOMMENDATIONS = 'HOST_NETWORK_RECOMMENDATIONS'

A constant which can be used with the metric_recommendation_name property of a HostInsightHostRecommendations. This constant has a value of “HOST_NETWORK_RECOMMENDATIONS”

METRIC_RECOMMENDATION_NAME_HOST_STORAGE_RECOMMENDATIONS = 'HOST_STORAGE_RECOMMENDATIONS'

A constant which can be used with the metric_recommendation_name property of a HostInsightHostRecommendations. This constant has a value of “HOST_STORAGE_RECOMMENDATIONS”

UNUSED_INSTANCE_IN_USE = 'IN_USE'

A constant which can be used with the unused_instance property of a HostStorageRecommendations. This constant has a value of “IN_USE”

UNUSED_INSTANCE_IS_NOT_DETERMINED = 'IS_NOT_DETERMINED'

A constant which can be used with the unused_instance property of a HostStorageRecommendations. This constant has a value of “IS_NOT_DETERMINED”

UNUSED_INSTANCE_NOT_IN_USE = 'NOT_IN_USE'

A constant which can be used with the unused_instance property of a HostStorageRecommendations. This constant has a value of “NOT_IN_USE”

__init__(**kwargs)

Initializes a new HostStorageRecommendations object with values from keyword arguments. The default value of the metric_recommendation_name attribute of this class is HOST_STORAGE_RECOMMENDATIONS and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • metric_recommendation_name (str) – The value to assign to the metric_recommendation_name property of this HostStorageRecommendations. Allowed values for this property are: “HOST_CPU_RECOMMENDATIONS”, “HOST_MEMORY_RECOMMENDATIONS”, “HOST_NETWORK_RECOMMENDATIONS”, “HOST_STORAGE_RECOMMENDATIONS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • unused_instance (str) – The value to assign to the unused_instance property of this HostStorageRecommendations. Allowed values for this property are: “IN_USE”, “NOT_IN_USE”, “IS_NOT_DETERMINED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • is_abandoned_instance (bool) – The value to assign to the is_abandoned_instance property of this HostStorageRecommendations.

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 is_abandoned_instance

Gets the is_abandoned_instance of this HostStorageRecommendations. Identify if an instance is abandoned.

Returns

The is_abandoned_instance of this HostStorageRecommendations.

Return type

bool

property metric_recommendation_name

[Required] Gets the metric_recommendation_name of this HostInsightHostRecommendations. Name of recommendations depending of resource metric received.

Allowed values for this property are: “HOST_CPU_RECOMMENDATIONS”, “HOST_MEMORY_RECOMMENDATIONS”, “HOST_NETWORK_RECOMMENDATIONS”, “HOST_STORAGE_RECOMMENDATIONS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The metric_recommendation_name of this HostInsightHostRecommendations.

Return type

str

property unused_instance

Gets the unused_instance of this HostStorageRecommendations. Identify unused instances based on cpu, memory and network metrics.

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

Returns

The unused_instance of this HostStorageRecommendations.

Return type

str