-
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_sentinel_alert_rule_scheduled - support for
group_by_{alert|custom}_details,
alert_details_override,
entity_mapping,
custom_details`
#15901
Conversation
…|custom}_details`, `alert_details_override`, `entity_mapping`, `custom_details` Add a couple of new features for the sentinel scheduled alert rule, to make it 100% property covered.
There are also some 3.0 TODO(s) for this resource, I'm wondering whether we can resolve them in this PR as well. |
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.
A few minor comments but this otherwise LGTM 👍
false), | ||
}, | ||
}, | ||
"group_by_custom_details": { |
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.
given this is a GroupBy, this'd be implicitly ordered - so should this be a List?
@@ -184,30 +210,31 @@ func resourceSentinelAlertRuleScheduled() *pluginsdk.Resource { | |||
}, | |||
}, | |||
"group_by": { | |||
Type: pluginsdk.TypeSet, |
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.
(as below) a GroupBy would be an order-statement in other cases, so is order relevant here/should this be a List?
ValidateFunc: validation.StringInSlice(entityMappingTypes, false), | ||
}, | ||
}, | ||
"group_by_alert_details": { | ||
Type: pluginsdk.TypeSet, |
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.
(as below) a GroupBy would be an order-statement in other cases, so is order relevant here/should this be a List?
Thanks @tombuildsstuff! Besides these, do you mind I also:
|
@magodo I hope you don't mind but I've pushed a commit for 2 since I'm working through the rest of the codebase in a separate branch and wanted to ensure this PR contains it 👍 For 1 it seems reasonable - I'll leave that for you 👍 |
We'll also need to add these to the 3.0 upgrade guide fwiw - presumably something along the lines of
|
Thanks @tombuildsstuff! I've made the change for 1 and update the upgrade document for this resource, please take another look! |
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.0.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. |
This PR adds a couple of new features for the sentinel scheduled alert rule, to make it 100% property covered.
Fixes #11667, fixes #14244
Test