Notification Class
The notification associated with a budget.
Constructor
Notification(*args: Any, **kwargs: Any)
Variables
| Name | Description |
|---|---|
|
enabled
|
The notification is enabled or not. Required. |
|
operator
|
str or
OperatorType
The comparison operator. Required. Known values are: "EqualTo", "GreaterThan", and "GreaterThanOrEqualTo". |
|
threshold
|
Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000. Required. |
|
contact_emails
|
Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified. Required. |
|
contact_roles
|
Contact roles to send the budget notification to when the threshold is exceeded. |
|
contact_groups
|
Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes. |
|
threshold_type
|
str or
ThresholdType
The type of threshold. Known values are: "Actual" and "Forecasted". |
|
locale
|
str or
CultureCode
Language in which the recipient will receive the notification. Known values are: "en-us", "ja-jp", "zh-cn", "de-de", "es-es", "fr-fr", "it-it", "ko-kr", "pt-br", "ru-ru", "zh-tw", "cs-cz", "pl-pl", "tr-tr", "da-dk", "en-gb", "hu-hu", "nb-no", "nl-nl", "pt-pt", and "sv-se". |
Attributes
contact_emails
Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified. Required.
contact_emails: list[str]
contact_groups
Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes.
contact_groups: list[str] | None
contact_roles
Contact roles to send the budget notification to when the threshold is exceeded.
contact_roles: list[str] | None
enabled
The notification is enabled or not. Required.
enabled: bool
locale
"en-us", "ja-jp", "zh-cn", "de-de", "es-es", "fr-fr", "it-it", "ko-kr", "pt-br", "ru-ru", "zh-tw", "cs-cz", "pl-pl", "tr-tr", "da-dk", "en-gb", "hu-hu", "nb-no", "nl-nl", "pt-pt", and "sv-se".
locale: str | _models.CultureCode | None
operator
"EqualTo", "GreaterThan", and "GreaterThanOrEqualTo".
operator: str | _models.OperatorType
threshold
Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000. Required.
threshold: Decimal
threshold_type
"Actual" and "Forecasted".
threshold_type: str | _models.ThresholdType | None