CostAnomalyMonitor

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

Bases: object

A CostAnomalyMonitor.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a CostAnomalyMonitor.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a CostAnomalyMonitor.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a CostAnomalyMonitor.
TYPE_CUSTOM A constant which can be used with the type property of a CostAnomalyMonitor.
TYPE_DEFAULT A constant which can be used with the type property of a CostAnomalyMonitor.
compartment_id [Required] Gets the compartment_id of this CostAnomalyMonitor.
cost_alert_subscription_map Gets the cost_alert_subscription_map of this CostAnomalyMonitor.
defined_tags Gets the defined_tags of this CostAnomalyMonitor.
description Gets the description of this CostAnomalyMonitor.
freeform_tags Gets the freeform_tags of this CostAnomalyMonitor.
id [Required] Gets the id of this CostAnomalyMonitor.
lifecycle_details Gets the lifecycle_details of this CostAnomalyMonitor.
lifecycle_state [Required] Gets the lifecycle_state of this CostAnomalyMonitor.
name [Required] Gets the name of this CostAnomalyMonitor.
system_tags Gets the system_tags of this CostAnomalyMonitor.
target_resource_filter [Required] Gets the target_resource_filter of this CostAnomalyMonitor.
time_created [Required] Gets the time_created of this CostAnomalyMonitor.
time_updated [Required] Gets the time_updated of this CostAnomalyMonitor.
type Gets the type of this CostAnomalyMonitor.

Methods

__init__(**kwargs) Initializes a new CostAnomalyMonitor object with values from keyword arguments.
LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a CostAnomalyMonitor. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a CostAnomalyMonitor. This constant has a value of “DELETED”

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

A constant which can be used with the lifecycle_state property of a CostAnomalyMonitor. This constant has a value of “INACTIVE”

TYPE_CUSTOM = 'CUSTOM'

A constant which can be used with the type property of a CostAnomalyMonitor. This constant has a value of “CUSTOM”

TYPE_DEFAULT = 'DEFAULT'

A constant which can be used with the type property of a CostAnomalyMonitor. This constant has a value of “DEFAULT”

__init__(**kwargs)

Initializes a new CostAnomalyMonitor 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 CostAnomalyMonitor.
  • compartment_id (str) – The value to assign to the compartment_id property of this CostAnomalyMonitor.
  • name (str) – The value to assign to the name property of this CostAnomalyMonitor.
  • type (str) – The value to assign to the type property of this CostAnomalyMonitor. 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’.
  • description (str) – The value to assign to the description property of this CostAnomalyMonitor.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this CostAnomalyMonitor. Allowed values for this property are: “ACTIVE”, “INACTIVE”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • lifecycle_details (str) – The value to assign to the lifecycle_details property of this CostAnomalyMonitor.
  • target_resource_filter (oci.budget.models.TargetResourceFilter) – The value to assign to the target_resource_filter property of this CostAnomalyMonitor.
  • cost_alert_subscription_map (oci.budget.models.CostAlertSubscriptionMap) – The value to assign to the cost_alert_subscription_map property of this CostAnomalyMonitor.
  • time_created (datetime) – The value to assign to the time_created property of this CostAnomalyMonitor.
  • time_updated (datetime) – The value to assign to the time_updated property of this CostAnomalyMonitor.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CostAnomalyMonitor.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CostAnomalyMonitor.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this CostAnomalyMonitor.
compartment_id

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

Returns:The compartment_id of this CostAnomalyMonitor.
Return type:str
cost_alert_subscription_map

Gets the cost_alert_subscription_map of this CostAnomalyMonitor.

Returns:The cost_alert_subscription_map of this CostAnomalyMonitor.
Return type:oci.budget.models.CostAlertSubscriptionMap
defined_tags

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

Gets the description of this CostAnomalyMonitor. The description of the budget.

Returns:The description of this CostAnomalyMonitor.
Return type:str
freeform_tags

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

[Required] Gets the id of this CostAnomalyMonitor. The OCID of the Cost Anomaly Monitor.

Returns:The id of this CostAnomalyMonitor.
Return type:str
lifecycle_details

Gets the lifecycle_details of this CostAnomalyMonitor. The current state details of the cost monitor.

Returns:The lifecycle_details of this CostAnomalyMonitor.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this CostAnomalyMonitor. The current state of the cost monitor.

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

Returns:The lifecycle_state of this CostAnomalyMonitor.
Return type:str
name

[Required] Gets the name of this CostAnomalyMonitor. The name of the cost anomaly monitor. Avoid entering confidential information.

Returns:The name of this CostAnomalyMonitor.
Return type:str
system_tags

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

[Required] Gets the target_resource_filter of this CostAnomalyMonitor.

Returns:The target_resource_filter of this CostAnomalyMonitor.
Return type:oci.budget.models.TargetResourceFilter
time_created

[Required] Gets the time_created of this CostAnomalyMonitor. The time that the cost monitor was created.

Returns:The time_created of this CostAnomalyMonitor.
Return type:datetime
time_updated

[Required] Gets the time_updated of this CostAnomalyMonitor. The time that the cost monitor was last updated.

Returns:The time_updated of this CostAnomalyMonitor.
Return type:datetime
type

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