CostAnomalyEvent¶
-
class
oci.budget.models.CostAnomalyEvent(**kwargs)¶ Bases:
objectA CostAnomalyEvent.
Attributes
COST_MONITOR_TYPE_CUSTOMA constant which can be used with the cost_monitor_type property of a CostAnomalyEvent. COST_MONITOR_TYPE_DEFAULTA constant which can be used with the cost_monitor_type property of a CostAnomalyEvent. FEEDBACK_RESPONSE_ACCURATE_ANOMALYA constant which can be used with the feedback_response property of a CostAnomalyEvent. FEEDBACK_RESPONSE_EXPECTED_ANOMALYA constant which can be used with the feedback_response property of a CostAnomalyEvent. LIFECYCLE_STATE_ACTIVEA constant which can be used with the lifecycle_state property of a CostAnomalyEvent. LIFECYCLE_STATE_INACTIVEA constant which can be used with the lifecycle_state property of a CostAnomalyEvent. compartment_id[Required] Gets the compartment_id of this CostAnomalyEvent. cost_anomaly_name[Required] Gets the cost_anomaly_name of this CostAnomalyEvent. cost_impactGets the cost_impact of this CostAnomalyEvent. cost_monitor_id[Required] Gets the cost_monitor_id of this CostAnomalyEvent. cost_monitor_name[Required] Gets the cost_monitor_name of this CostAnomalyEvent. cost_monitor_typeGets the cost_monitor_type of this CostAnomalyEvent. cost_variance_percentageGets the cost_variance_percentage of this CostAnomalyEvent. defined_tagsGets the defined_tags of this CostAnomalyEvent. feedback_responseGets the feedback_response of this CostAnomalyEvent. freeform_tagsGets the freeform_tags of this CostAnomalyEvent. id[Required] Gets the id of this CostAnomalyEvent. lifecycle_state[Required] Gets the lifecycle_state of this CostAnomalyEvent. root_cause_detailGets the root_cause_detail of this CostAnomalyEvent. system_tagsGets the system_tags of this CostAnomalyEvent. target_resource_filter[Required] Gets the target_resource_filter of this CostAnomalyEvent. time_anomaly_event_date[Required] Gets the time_anomaly_event_date of this CostAnomalyEvent. time_created[Required] Gets the time_created of this CostAnomalyEvent. time_updated[Required] Gets the time_updated of this CostAnomalyEvent. Methods
__init__(**kwargs)Initializes a new CostAnomalyEvent object with values from keyword arguments. -
COST_MONITOR_TYPE_CUSTOM= 'CUSTOM'¶ A constant which can be used with the cost_monitor_type property of a CostAnomalyEvent. This constant has a value of “CUSTOM”
-
COST_MONITOR_TYPE_DEFAULT= 'DEFAULT'¶ A constant which can be used with the cost_monitor_type property of a CostAnomalyEvent. This constant has a value of “DEFAULT”
-
FEEDBACK_RESPONSE_ACCURATE_ANOMALY= 'ACCURATE_ANOMALY'¶ A constant which can be used with the feedback_response property of a CostAnomalyEvent. This constant has a value of “ACCURATE_ANOMALY”
-
FEEDBACK_RESPONSE_EXPECTED_ANOMALY= 'EXPECTED_ANOMALY'¶ A constant which can be used with the feedback_response property of a CostAnomalyEvent. This constant has a value of “EXPECTED_ANOMALY”
-
LIFECYCLE_STATE_ACTIVE= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a CostAnomalyEvent. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_INACTIVE= 'INACTIVE'¶ A constant which can be used with the lifecycle_state property of a CostAnomalyEvent. This constant has a value of “INACTIVE”
-
__init__(**kwargs)¶ Initializes a new CostAnomalyEvent 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 CostAnomalyEvent.
- cost_anomaly_name (str) – The value to assign to the cost_anomaly_name property of this CostAnomalyEvent.
- compartment_id (str) – The value to assign to the compartment_id property of this CostAnomalyEvent.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this CostAnomalyEvent. Allowed values for this property are: “ACTIVE”, “INACTIVE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- cost_monitor_id (str) – The value to assign to the cost_monitor_id property of this CostAnomalyEvent.
- cost_monitor_name (str) – The value to assign to the cost_monitor_name property of this CostAnomalyEvent.
- cost_monitor_type (str) – The value to assign to the cost_monitor_type property of this CostAnomalyEvent. Allowed values for this property are: “DEFAULT”, “CUSTOM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- target_resource_filter (oci.budget.models.TargetResourceFilter) – The value to assign to the target_resource_filter property of this CostAnomalyEvent.
- time_anomaly_event_date (datetime) – The value to assign to the time_anomaly_event_date property of this CostAnomalyEvent.
- cost_impact (float) – The value to assign to the cost_impact property of this CostAnomalyEvent.
- cost_variance_percentage (float) – The value to assign to the cost_variance_percentage property of this CostAnomalyEvent.
- root_cause_detail (oci.budget.models.RootCauseDetail) – The value to assign to the root_cause_detail property of this CostAnomalyEvent.
- feedback_response (str) – The value to assign to the feedback_response property of this CostAnomalyEvent. Allowed values for this property are: “ACCURATE_ANOMALY”, “EXPECTED_ANOMALY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- time_created (datetime) – The value to assign to the time_created property of this CostAnomalyEvent.
- time_updated (datetime) – The value to assign to the time_updated property of this CostAnomalyEvent.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CostAnomalyEvent.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CostAnomalyEvent.
- system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this CostAnomalyEvent.
-
compartment_id¶ [Required] Gets the compartment_id of this CostAnomalyEvent. The OCID of the compartment.
Returns: The compartment_id of this CostAnomalyEvent. Return type: str
-
cost_anomaly_name¶ [Required] Gets the cost_anomaly_name of this CostAnomalyEvent. The name of the associated cost monitor.
Returns: The cost_anomaly_name of this CostAnomalyEvent. Return type: str
-
cost_impact¶ Gets the cost_impact of this CostAnomalyEvent. The cost impact of the detected anomaly.
Returns: The cost_impact of this CostAnomalyEvent. Return type: float
-
cost_monitor_id¶ [Required] Gets the cost_monitor_id of this CostAnomalyEvent. The OCID of the associated cost monitor.
Returns: The cost_monitor_id of this CostAnomalyEvent. Return type: str
-
cost_monitor_name¶ [Required] Gets the cost_monitor_name of this CostAnomalyEvent. The name of the associated cost monitor.
Returns: The cost_monitor_name of this CostAnomalyEvent. Return type: str
-
cost_monitor_type¶ Gets the cost_monitor_type of this CostAnomalyEvent. Type of cost monitor
Allowed values for this property are: “DEFAULT”, “CUSTOM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The cost_monitor_type of this CostAnomalyEvent. Return type: str
-
cost_variance_percentage¶ Gets the cost_variance_percentage of this CostAnomalyEvent. The cost variance percentage of the detected anomaly.
Returns: The cost_variance_percentage of this CostAnomalyEvent. Return type: float
Gets the defined_tags of this CostAnomalyEvent. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {“Operations”: {“CostCenter”: “42”}}
Returns: The defined_tags of this CostAnomalyEvent. Return type: dict(str, dict(str, object))
-
feedback_response¶ Gets the feedback_response of this CostAnomalyEvent. The feedback response for the cost anomaly event.
Allowed values for this property are: “ACCURATE_ANOMALY”, “EXPECTED_ANOMALY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The feedback_response of this CostAnomalyEvent. Return type: str
Gets the freeform_tags of this CostAnomalyEvent. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {“Department”: “Finance”}
Returns: The freeform_tags of this CostAnomalyEvent. Return type: dict(str, str)
-
id¶ [Required] Gets the id of this CostAnomalyEvent. The OCID of the Cost Anomaly Event.
Returns: The id of this CostAnomalyEvent. Return type: str
-
lifecycle_state¶ [Required] Gets the lifecycle_state of this CostAnomalyEvent. The current state of the cost anomaly event.
Allowed values for this property are: “ACTIVE”, “INACTIVE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_state of this CostAnomalyEvent. Return type: str
-
root_cause_detail¶ Gets the root_cause_detail of this CostAnomalyEvent.
Returns: The root_cause_detail of this CostAnomalyEvent. Return type: oci.budget.models.RootCauseDetail
Gets the system_tags of this CostAnomalyEvent. System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system.
Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
Returns: The system_tags of this CostAnomalyEvent. Return type: dict(str, dict(str, object))
-
target_resource_filter¶ [Required] Gets the target_resource_filter of this CostAnomalyEvent.
Returns: The target_resource_filter of this CostAnomalyEvent. Return type: oci.budget.models.TargetResourceFilter
-
time_anomaly_event_date¶ [Required] Gets the time_anomaly_event_date of this CostAnomalyEvent. The event date of the anomaly event.
Returns: The time_anomaly_event_date of this CostAnomalyEvent. Return type: datetime
-
time_created¶ [Required] Gets the time_created of this CostAnomalyEvent. The created time of the cost anomaly event.
Returns: The time_created of this CostAnomalyEvent. Return type: datetime
-
time_updated¶ [Required] Gets the time_updated of this CostAnomalyEvent. The updated time of the cost anomaly event.
Returns: The time_updated of this CostAnomalyEvent. Return type: datetime
-