CostAlertSubscriptionMap¶
-
class
oci.budget.models.CostAlertSubscriptionMap(**kwargs)¶ Bases:
objectThe mapping of cost monitor to alert subscription along with thresholds.
Attributes
OPERATOR_ANDA constant which can be used with the operator property of a CostAlertSubscriptionMap. OPERATOR_ORA constant which can be used with the operator property of a CostAlertSubscriptionMap. cost_alert_subscription_idGets the cost_alert_subscription_id of this CostAlertSubscriptionMap. operatorGets the operator of this CostAlertSubscriptionMap. threshold_absolute_valueGets the threshold_absolute_value of this CostAlertSubscriptionMap. threshold_relative_percentGets the threshold_relative_percent of this CostAlertSubscriptionMap. Methods
__init__(**kwargs)Initializes a new CostAlertSubscriptionMap object with values from keyword arguments. -
OPERATOR_AND= 'AND'¶ A constant which can be used with the operator property of a CostAlertSubscriptionMap. This constant has a value of “AND”
-
OPERATOR_OR= 'OR'¶ A constant which can be used with the operator property of a CostAlertSubscriptionMap. This constant has a value of “OR”
-
__init__(**kwargs)¶ Initializes a new CostAlertSubscriptionMap object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - operator (str) – The value to assign to the operator property of this CostAlertSubscriptionMap. Allowed values for this property are: “AND”, “OR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- threshold_absolute_value (int) – The value to assign to the threshold_absolute_value property of this CostAlertSubscriptionMap.
- threshold_relative_percent (int) – The value to assign to the threshold_relative_percent property of this CostAlertSubscriptionMap.
- cost_alert_subscription_id (str) – The value to assign to the cost_alert_subscription_id property of this CostAlertSubscriptionMap.
-
cost_alert_subscription_id¶ Gets the cost_alert_subscription_id of this CostAlertSubscriptionMap. The costAlertSubscription ocid which the cost monitor alert maps to.
Returns: The cost_alert_subscription_id of this CostAlertSubscriptionMap. Return type: str
-
operator¶ Gets the operator of this CostAlertSubscriptionMap. The filter operator. Example: ‘AND’, ‘OR’.
Allowed values for this property are: “AND”, “OR”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The operator of this CostAlertSubscriptionMap. Return type: str
-
threshold_absolute_value¶ Gets the threshold_absolute_value of this CostAlertSubscriptionMap. The absolute threshold value.
Returns: The threshold_absolute_value of this CostAlertSubscriptionMap. Return type: int
-
threshold_relative_percent¶ Gets the threshold_relative_percent of this CostAlertSubscriptionMap. The relative percentage threshold value.
Returns: The threshold_relative_percent of this CostAlertSubscriptionMap. Return type: int
-