-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_monitor_activity_log_alert
- support for levels
, resource_providers
, resource_types
, resource_groups
, resource_ids
, statuses
,and sub_statuses
properties
#21367
Conversation
azurerm_monitor_activity_log_alert
- support for levels and statusesazurerm_monitor_activity_log_alert
- support for levels
and statuses
properties
azurerm_monitor_activity_log_alert
- support for levels
and statuses
propertiesazurerm_monitor_activity_log_alert
- support for levels
, resource_providers
, resource_types
, resource_groups
, resource_ids
, statuses
,and sub_statuses
properties
"Verbose", | ||
"Informational", | ||
"Warning", | ||
"Error", | ||
"Critical", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are there not constants for these in the SDK? if not could we open an issue on the rest specs to have them added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API only specifies the condition should be key-value pairs, and there is no enum for values.
And more details on property mappings:
level
corresponds to:
{
"field": "level",
"equals": "Verbose"
},
levels
corresponds to:
{
"anyOf": [
{
"field": "level",
"equals": "Verbose"
},
{
"field": "level",
"equals": "Informational"
}
]
},
or
{
"field": "level",
"containsAny": ["Verbose", "Informational"]
},
since levels
may map to 2 REST API schemas, here I am using the anyOf
one in create/update, but accept either one in read.
Signed-off-by: Tao <[email protected]>
…roups sub_statuses Signed-off-by: Tao <[email protected]>
Signed-off-by: Tao <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🦀
This functionality has been released in v3.58.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
resolves #21186
resolves #20759
resolves #21496