HostCpuRecommendations¶
-
class
oci.opsi.models.
HostCpuRecommendations
(**kwargs)¶ Bases:
oci.opsi.models.host_insight_host_recommendations.HostInsightHostRecommendations
Contains CPU recommendation.
Attributes
BURSTABLE_BASELINE_1_2
A constant which can be used with the burstable property of a HostCpuRecommendations. BURSTABLE_BASELINE_1_8
A constant which can be used with the burstable property of a HostCpuRecommendations. BURSTABLE_DISABLE_BURSTABLE
A constant which can be used with the burstable property of a HostCpuRecommendations. BURSTABLE_NO_RECOMMENDATION
A constant which can be used with the burstable property of a HostCpuRecommendations. METRIC_RECOMMENDATION_NAME_HOST_CPU_RECOMMENDATIONS
str(object=’’) -> str burstable
Gets the burstable of this HostCpuRecommendations. metric_recommendation_name
[Required] Gets the metric_recommendation_name of this HostInsightHostRecommendations. Methods
__init__
(**kwargs)Initializes a new HostCpuRecommendations 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. -
BURSTABLE_BASELINE_1_2
= 'BASELINE_1_2'¶ A constant which can be used with the burstable property of a HostCpuRecommendations. This constant has a value of “BASELINE_1_2”
-
BURSTABLE_BASELINE_1_8
= 'BASELINE_1_8'¶ A constant which can be used with the burstable property of a HostCpuRecommendations. This constant has a value of “BASELINE_1_8”
-
BURSTABLE_DISABLE_BURSTABLE
= 'DISABLE_BURSTABLE'¶ A constant which can be used with the burstable property of a HostCpuRecommendations. This constant has a value of “DISABLE_BURSTABLE”
-
BURSTABLE_NO_RECOMMENDATION
= 'NO_RECOMMENDATION'¶ A constant which can be used with the burstable property of a HostCpuRecommendations. This constant has a value of “NO_RECOMMENDATION”
-
METRIC_RECOMMENDATION_NAME_HOST_CPU_RECOMMENDATIONS
= 'HOST_CPU_RECOMMENDATIONS'¶
-
__init__
(**kwargs)¶ Initializes a new HostCpuRecommendations object with values from keyword arguments. The default value of the
metric_recommendation_name
attribute of this class isHOST_CPU_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 HostCpuRecommendations. Allowed values for this property are: “HOST_CPU_RECOMMENDATIONS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- burstable (str) – The value to assign to the burstable property of this HostCpuRecommendations. Allowed values for this property are: “BASELINE_1_8”, “BASELINE_1_2”, “NO_RECOMMENDATION”, “DISABLE_BURSTABLE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
-
burstable
¶ Gets the burstable of this HostCpuRecommendations. Show if OPSI recommend to convert an instance to a burstable instance and show recommended cpu baseline if positive recommendation.
Allowed values for this property are: “BASELINE_1_8”, “BASELINE_1_2”, “NO_RECOMMENDATION”, “DISABLE_BURSTABLE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The burstable of this HostCpuRecommendations. Return type: str
-
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_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”, ‘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
-