CostAnomalyEventSummary

class oci.budget.models.CostAnomalyEventSummary(**kwargs)

Bases: object

A CostAnomalyEvent.

Attributes

COST_MONITOR_TYPE_CUSTOM A constant which can be used with the cost_monitor_type property of a CostAnomalyEventSummary.
COST_MONITOR_TYPE_DEFAULT A constant which can be used with the cost_monitor_type property of a CostAnomalyEventSummary.
compartment_id [Required] Gets the compartment_id of this CostAnomalyEventSummary.
cost_anomaly_name Gets the cost_anomaly_name of this CostAnomalyEventSummary.
cost_impact Gets the cost_impact of this CostAnomalyEventSummary.
cost_monitor_id [Required] Gets the cost_monitor_id of this CostAnomalyEventSummary.
cost_monitor_name [Required] Gets the cost_monitor_name of this CostAnomalyEventSummary.
cost_monitor_type Gets the cost_monitor_type of this CostAnomalyEventSummary.
cost_variance_percentage Gets the cost_variance_percentage of this CostAnomalyEventSummary.
defined_tags Gets the defined_tags of this CostAnomalyEventSummary.
freeform_tags Gets the freeform_tags of this CostAnomalyEventSummary.
id [Required] Gets the id of this CostAnomalyEventSummary.
lifecycle_state Gets the lifecycle_state of this CostAnomalyEventSummary.
root_cause_detail [Required] Gets the root_cause_detail of this CostAnomalyEventSummary.
system_tags Gets the system_tags of this CostAnomalyEventSummary.
target_resource_filter [Required] Gets the target_resource_filter of this CostAnomalyEventSummary.
time_anomaly_event_date [Required] Gets the time_anomaly_event_date of this CostAnomalyEventSummary.

Methods

__init__(**kwargs) Initializes a new CostAnomalyEventSummary 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 CostAnomalyEventSummary. 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 CostAnomalyEventSummary. This constant has a value of “DEFAULT”

__init__(**kwargs)

Initializes a new CostAnomalyEventSummary 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 CostAnomalyEventSummary.
  • cost_anomaly_name (str) – The value to assign to the cost_anomaly_name property of this CostAnomalyEventSummary.
  • compartment_id (str) – The value to assign to the compartment_id property of this CostAnomalyEventSummary.
  • cost_monitor_id (str) – The value to assign to the cost_monitor_id property of this CostAnomalyEventSummary.
  • cost_monitor_name (str) – The value to assign to the cost_monitor_name property of this CostAnomalyEventSummary.
  • cost_monitor_type (str) – The value to assign to the cost_monitor_type property of this CostAnomalyEventSummary. 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’.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this CostAnomalyEventSummary.
  • target_resource_filter (oci.budget.models.TargetResourceFilter) – The value to assign to the target_resource_filter property of this CostAnomalyEventSummary.
  • root_cause_detail (oci.budget.models.RootCauseDetail) – The value to assign to the root_cause_detail property of this CostAnomalyEventSummary.
  • time_anomaly_event_date (datetime) – The value to assign to the time_anomaly_event_date property of this CostAnomalyEventSummary.
  • cost_impact (float) – The value to assign to the cost_impact property of this CostAnomalyEventSummary.
  • cost_variance_percentage (float) – The value to assign to the cost_variance_percentage property of this CostAnomalyEventSummary.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CostAnomalyEventSummary.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CostAnomalyEventSummary.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this CostAnomalyEventSummary.
compartment_id

[Required] Gets the compartment_id of this CostAnomalyEventSummary. The OCID of the compartment.

Returns:The compartment_id of this CostAnomalyEventSummary.
Return type:str
cost_anomaly_name

Gets the cost_anomaly_name of this CostAnomalyEventSummary. The name of the associated cost Anomaly.

Returns:The cost_anomaly_name of this CostAnomalyEventSummary.
Return type:str
cost_impact

Gets the cost_impact of this CostAnomalyEventSummary. The cost impact of the detected anomaly.

Returns:The cost_impact of this CostAnomalyEventSummary.
Return type:float
cost_monitor_id

[Required] Gets the cost_monitor_id of this CostAnomalyEventSummary. The OCID of the associated cost monitor.

Returns:The cost_monitor_id of this CostAnomalyEventSummary.
Return type:str
cost_monitor_name

[Required] Gets the cost_monitor_name of this CostAnomalyEventSummary. The name of the associated cost monitor.

Returns:The cost_monitor_name of this CostAnomalyEventSummary.
Return type:str
cost_monitor_type

Gets the cost_monitor_type of this CostAnomalyEventSummary. 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 CostAnomalyEventSummary.
Return type:str
cost_variance_percentage

Gets the cost_variance_percentage of this CostAnomalyEventSummary. The cost variance percentage of the detected anomaly.

Returns:The cost_variance_percentage of this CostAnomalyEventSummary.
Return type:float
defined_tags

Gets the defined_tags of this CostAnomalyEventSummary. 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 CostAnomalyEventSummary.
Return type:dict(str, dict(str, object))
freeform_tags

Gets the freeform_tags of this CostAnomalyEventSummary. 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 CostAnomalyEventSummary.
Return type:dict(str, str)
id

[Required] Gets the id of this CostAnomalyEventSummary. The OCID of the Cost Anomaly Event.

Returns:The id of this CostAnomalyEventSummary.
Return type:str
lifecycle_state

Gets the lifecycle_state of this CostAnomalyEventSummary. The current state of the cost anomaly event.

Returns:The lifecycle_state of this CostAnomalyEventSummary.
Return type:str
root_cause_detail

[Required] Gets the root_cause_detail of this CostAnomalyEventSummary.

Returns:The root_cause_detail of this CostAnomalyEventSummary.
Return type:oci.budget.models.RootCauseDetail
system_tags

Gets the system_tags of this CostAnomalyEventSummary. 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 CostAnomalyEventSummary.
Return type:dict(str, dict(str, object))
target_resource_filter

[Required] Gets the target_resource_filter of this CostAnomalyEventSummary.

Returns:The target_resource_filter of this CostAnomalyEventSummary.
Return type:oci.budget.models.TargetResourceFilter
time_anomaly_event_date

[Required] Gets the time_anomaly_event_date of this CostAnomalyEventSummary. The event date of the anomaly event.

Returns:The time_anomaly_event_date of this CostAnomalyEventSummary.
Return type:datetime