Recommendation¶
-
class
oci.optimizer.models.Recommendation(**kwargs)¶ Bases:
objectThe metadata associated with the recommendation.
Attributes
IMPORTANCE_CRITICALA constant which can be used with the importance property of a Recommendation. IMPORTANCE_HIGHA constant which can be used with the importance property of a Recommendation. IMPORTANCE_LOWA constant which can be used with the importance property of a Recommendation. IMPORTANCE_MINORA constant which can be used with the importance property of a Recommendation. IMPORTANCE_MODERATEA constant which can be used with the importance property of a Recommendation. LIFECYCLE_STATE_ACTIVEA constant which can be used with the lifecycle_state property of a Recommendation. LIFECYCLE_STATE_ATTACHINGA constant which can be used with the lifecycle_state property of a Recommendation. LIFECYCLE_STATE_CREATINGA constant which can be used with the lifecycle_state property of a Recommendation. LIFECYCLE_STATE_DELETEDA constant which can be used with the lifecycle_state property of a Recommendation. LIFECYCLE_STATE_DELETINGA constant which can be used with the lifecycle_state property of a Recommendation. LIFECYCLE_STATE_DETACHINGA constant which can be used with the lifecycle_state property of a Recommendation. LIFECYCLE_STATE_FAILEDA constant which can be used with the lifecycle_state property of a Recommendation. LIFECYCLE_STATE_INACTIVEA constant which can be used with the lifecycle_state property of a Recommendation. LIFECYCLE_STATE_UPDATINGA constant which can be used with the lifecycle_state property of a Recommendation. STATUS_DISMISSEDA constant which can be used with the status property of a Recommendation. STATUS_IMPLEMENTEDA constant which can be used with the status property of a Recommendation. STATUS_PENDINGA constant which can be used with the status property of a Recommendation. STATUS_POSTPONEDA constant which can be used with the status property of a Recommendation. category_id[Required] Gets the category_id of this Recommendation. compartment_id[Required] Gets the compartment_id of this Recommendation. description[Required] Gets the description of this Recommendation. estimated_cost_saving[Required] Gets the estimated_cost_saving of this Recommendation. extended_metadataGets the extended_metadata of this Recommendation. id[Required] Gets the id of this Recommendation. importance[Required] Gets the importance of this Recommendation. lifecycle_state[Required] Gets the lifecycle_state of this Recommendation. name[Required] Gets the name of this Recommendation. resource_counts[Required] Gets the resource_counts of this Recommendation. status[Required] Gets the status of this Recommendation. supported_levelsGets the supported_levels of this Recommendation. time_createdGets the time_created of this Recommendation. time_status_begin[Required] Gets the time_status_begin of this Recommendation. time_status_endGets the time_status_end of this Recommendation. time_updatedGets the time_updated of this Recommendation. Methods
__init__(**kwargs)Initializes a new Recommendation object with values from keyword arguments. -
IMPORTANCE_CRITICAL= 'CRITICAL'¶ A constant which can be used with the importance property of a Recommendation. This constant has a value of “CRITICAL”
-
IMPORTANCE_HIGH= 'HIGH'¶ A constant which can be used with the importance property of a Recommendation. This constant has a value of “HIGH”
-
IMPORTANCE_LOW= 'LOW'¶ A constant which can be used with the importance property of a Recommendation. This constant has a value of “LOW”
-
IMPORTANCE_MINOR= 'MINOR'¶ A constant which can be used with the importance property of a Recommendation. This constant has a value of “MINOR”
-
IMPORTANCE_MODERATE= 'MODERATE'¶ A constant which can be used with the importance property of a Recommendation. This constant has a value of “MODERATE”
-
LIFECYCLE_STATE_ACTIVE= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a Recommendation. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_ATTACHING= 'ATTACHING'¶ A constant which can be used with the lifecycle_state property of a Recommendation. This constant has a value of “ATTACHING”
-
LIFECYCLE_STATE_CREATING= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a Recommendation. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETED= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a Recommendation. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a Recommendation. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_DETACHING= 'DETACHING'¶ A constant which can be used with the lifecycle_state property of a Recommendation. This constant has a value of “DETACHING”
-
LIFECYCLE_STATE_FAILED= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a Recommendation. This constant has a value of “FAILED”
-
LIFECYCLE_STATE_INACTIVE= 'INACTIVE'¶ A constant which can be used with the lifecycle_state property of a Recommendation. This constant has a value of “INACTIVE”
-
LIFECYCLE_STATE_UPDATING= 'UPDATING'¶ A constant which can be used with the lifecycle_state property of a Recommendation. This constant has a value of “UPDATING”
-
STATUS_DISMISSED= 'DISMISSED'¶ A constant which can be used with the status property of a Recommendation. This constant has a value of “DISMISSED”
-
STATUS_IMPLEMENTED= 'IMPLEMENTED'¶ A constant which can be used with the status property of a Recommendation. This constant has a value of “IMPLEMENTED”
-
STATUS_PENDING= 'PENDING'¶ A constant which can be used with the status property of a Recommendation. This constant has a value of “PENDING”
-
STATUS_POSTPONED= 'POSTPONED'¶ A constant which can be used with the status property of a Recommendation. This constant has a value of “POSTPONED”
-
__init__(**kwargs)¶ Initializes a new Recommendation object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - id (str) – The value to assign to the id property of this Recommendation.
- compartment_id (str) – The value to assign to the compartment_id property of this Recommendation.
- category_id (str) – The value to assign to the category_id property of this Recommendation.
- name (str) – The value to assign to the name property of this Recommendation.
- description (str) – The value to assign to the description property of this Recommendation.
- importance (str) – The value to assign to the importance property of this Recommendation. Allowed values for this property are: “CRITICAL”, “HIGH”, “MODERATE”, “LOW”, “MINOR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- resource_counts (list[oci.optimizer.models.ResourceCount]) – The value to assign to the resource_counts property of this Recommendation.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this Recommendation. Allowed values for this property are: “ACTIVE”, “FAILED”, “INACTIVE”, “ATTACHING”, “DETACHING”, “DELETING”, “DELETED”, “UPDATING”, “CREATING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- estimated_cost_saving (float) – The value to assign to the estimated_cost_saving property of this Recommendation.
- status (str) – The value to assign to the status property of this Recommendation. Allowed values for this property are: “PENDING”, “DISMISSED”, “POSTPONED”, “IMPLEMENTED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- time_status_begin (datetime) – The value to assign to the time_status_begin property of this Recommendation.
- time_status_end (datetime) – The value to assign to the time_status_end property of this Recommendation.
- time_created (datetime) – The value to assign to the time_created property of this Recommendation.
- time_updated (datetime) – The value to assign to the time_updated property of this Recommendation.
- supported_levels (oci.optimizer.models.SupportedLevels) – The value to assign to the supported_levels property of this Recommendation.
- extended_metadata (dict(str, str)) – The value to assign to the extended_metadata property of this Recommendation.
-
category_id¶ [Required] Gets the category_id of this Recommendation. The unique OCID associated with the category.
Returns: The category_id of this Recommendation. Return type: str
-
compartment_id¶ [Required] Gets the compartment_id of this Recommendation. The OCID of the tenancy. The tenancy is the root compartment.
Returns: The compartment_id of this Recommendation. Return type: str
-
description¶ [Required] Gets the description of this Recommendation. Text describing the recommendation.
Returns: The description of this Recommendation. Return type: str
-
estimated_cost_saving¶ [Required] Gets the estimated_cost_saving of this Recommendation. The estimated cost savings, in dollars, for the recommendation.
Returns: The estimated_cost_saving of this Recommendation. Return type: float
-
extended_metadata¶ Gets the extended_metadata of this Recommendation. Additional metadata key/value pairs for the recommendation.
For example:
{“EstimatedSaving”: “200”}
Returns: The extended_metadata of this Recommendation. Return type: dict(str, str)
-
id¶ [Required] Gets the id of this Recommendation. The unique OCID associated with the recommendation.
Returns: The id of this Recommendation. Return type: str
-
importance¶ [Required] Gets the importance of this Recommendation. The level of importance assigned to the recommendation.
Allowed values for this property are: “CRITICAL”, “HIGH”, “MODERATE”, “LOW”, “MINOR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The importance of this Recommendation. Return type: str
-
lifecycle_state¶ [Required] Gets the lifecycle_state of this Recommendation. The recommendation’s current state.
Allowed values for this property are: “ACTIVE”, “FAILED”, “INACTIVE”, “ATTACHING”, “DETACHING”, “DELETING”, “DELETED”, “UPDATING”, “CREATING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_state of this Recommendation. Return type: str
-
name¶ [Required] Gets the name of this Recommendation. The name assigned to the recommendation.
Returns: The name of this Recommendation. Return type: str
-
resource_counts¶ [Required] Gets the resource_counts of this Recommendation. An array of ResourceCount objects grouped by the status of the resource actions.
Returns: The resource_counts of this Recommendation. Return type: list[oci.optimizer.models.ResourceCount]
-
status¶ [Required] Gets the status of this Recommendation. The current status of the recommendation.
Allowed values for this property are: “PENDING”, “DISMISSED”, “POSTPONED”, “IMPLEMENTED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The status of this Recommendation. Return type: str
-
supported_levels¶ Gets the supported_levels of this Recommendation.
Returns: The supported_levels of this Recommendation. Return type: oci.optimizer.models.SupportedLevels
-
time_created¶ Gets the time_created of this Recommendation. The date and time the recommendation details were created, in the format defined by RFC3339.
Returns: The time_created of this Recommendation. Return type: datetime
-
time_status_begin¶ [Required] Gets the time_status_begin of this Recommendation. The date and time that the recommendation entered its current status. The format is defined by RFC3339.
For example, “The status of the recommendation changed from pending to current(ignored) on this date and time.”
Returns: The time_status_begin of this Recommendation. Return type: datetime
-
time_status_end¶ Gets the time_status_end of this Recommendation. The date and time the current status will change. The format is defined by RFC3339.
For example, “The current postponed status of the recommendation will end and change to pending on this date and time.”
Returns: The time_status_end of this Recommendation. Return type: datetime
-
time_updated¶ Gets the time_updated of this Recommendation. The date and time the recommendation details were last updated, in the format defined by RFC3339.
Returns: The time_updated of this Recommendation. Return type: datetime
-