CostAlertSubscription

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

Bases: object

A CostAlertSubscription.

Attributes

LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a CostAlertSubscription.
LIFECYCLE_STATE_INACTIVE A constant which can be used with the lifecycle_state property of a CostAlertSubscription.
channels [Required] Gets the channels of this CostAlertSubscription.
compartment_id [Required] Gets the compartment_id of this CostAlertSubscription.
cost_anomaly_monitors [Required] Gets the cost_anomaly_monitors of this CostAlertSubscription.
defined_tags Gets the defined_tags of this CostAlertSubscription.
description Gets the description of this CostAlertSubscription.
freeform_tags Gets the freeform_tags of this CostAlertSubscription.
id [Required] Gets the id of this CostAlertSubscription.
lifecycle_state [Required] Gets the lifecycle_state of this CostAlertSubscription.
name [Required] Gets the name of this CostAlertSubscription.
system_tags Gets the system_tags of this CostAlertSubscription.
time_created [Required] Gets the time_created of this CostAlertSubscription.
time_updated [Required] Gets the time_updated of this CostAlertSubscription.

Methods

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

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

LIFECYCLE_STATE_INACTIVE = 'INACTIVE'

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

__init__(**kwargs)

Initializes a new CostAlertSubscription 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 CostAlertSubscription.
  • compartment_id (str) – The value to assign to the compartment_id property of this CostAlertSubscription.
  • name (str) – The value to assign to the name property of this CostAlertSubscription.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this CostAlertSubscription. 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’.
  • channels (str) – The value to assign to the channels property of this CostAlertSubscription.
  • description (str) – The value to assign to the description property of this CostAlertSubscription.
  • time_created (datetime) – The value to assign to the time_created property of this CostAlertSubscription.
  • time_updated (datetime) – The value to assign to the time_updated property of this CostAlertSubscription.
  • cost_anomaly_monitors (object) – The value to assign to the cost_anomaly_monitors property of this CostAlertSubscription.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CostAlertSubscription.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CostAlertSubscription.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this CostAlertSubscription.
channels

[Required] Gets the channels of this CostAlertSubscription. The notification channels string.

Returns:The channels of this CostAlertSubscription.
Return type:str
compartment_id

[Required] Gets the compartment_id of this CostAlertSubscription. The OCID of the compartment which hold the cost alert subscription resource.

Returns:The compartment_id of this CostAlertSubscription.
Return type:str
cost_anomaly_monitors

[Required] Gets the cost_anomaly_monitors of this CostAlertSubscription. List of monitor identifiers

Returns:The cost_anomaly_monitors of this CostAlertSubscription.
Return type:object
defined_tags

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

Gets the description of this CostAlertSubscription. The description of the cost alert subscription.

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

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

[Required] Gets the id of this CostAlertSubscription. The OCID of the Cost Alert Subscription.

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

[Required] Gets the lifecycle_state of this CostAlertSubscription. The current state of the cost alert subscription.

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 CostAlertSubscription.
Return type:str
name

[Required] Gets the name of this CostAlertSubscription. The name of the cost alert subscription. Avoid entering confidential information.

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

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

[Required] Gets the time_created of this CostAlertSubscription. The time that the cost alert subscription was created.

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

[Required] Gets the time_updated of this CostAlertSubscription. The time that the cost alert subscription was updated.

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