actionRules - AlertsManagement#4955
Conversation
adding new resource type actionRules in AlertsManagement RP
|
If you're a MSFT employee, click this link |
|
Hello!! The Rest API Specs team wishes everyone a happy holiday and would like to kindly inform you that responses and review to Pull request will be delayed during the holiday period (now -> 2nds of January) to allow for Awesome reviewers to have an awesome time with their families during the holidays! Thanks and Have a WONDERFUL HOLIDAY |
Automation for azure-sdk-for-jsNothing to generate for azure-sdk-for-js |
Automation for azure-sdk-for-rubyNothing to generate for azure-sdk-for-ruby |
Automation for azure-sdk-for-pythonNothing to generate for azure-sdk-for-python |
|
Can one of the admins verify this patch? |
Automation for azure-sdk-for-goNothing to generate for azure-sdk-for-go |
...icrosoft.AlertsManagement/preview/2018-11-02-privatepreview/examples/ActionRules_Delete.json
Outdated
Show resolved
Hide resolved
| "Monthly" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "SupressionType", |
There was a problem hiding this comment.
SupressionType -> SuppressionType
There was a problem hiding this comment.
resolved in latest commit
| }, | ||
| "recurrenceValues": { | ||
| "type": "array", | ||
| "description": "Specifies the values for reccurrence pattern", |
There was a problem hiding this comment.
reccurrence -> recurrence
Automation for azure-sdk-for-nodeNothing to generate for azure-sdk-for-node |
Automation for azure-sdk-for-javaNothing to generate for azure-sdk-for-java |
Spelling correction and JSON update for delete example
fixed semantic error - added recurrenceType in suppression config
|
@roramc The name contains "privatepreview".. if this is indeed a private preview that why not use the private repo to drive this? |
As per last discussion, we were asked to push everything into public repo unless it is something where customers should not know about this feature. And also, that way it would be easy to move it to stable version post preview. |
...e-manager/Microsoft.AlertsManagement/preview/2018-11-02-privatepreview/AlertsManagement.json
Outdated
Show resolved
Hide resolved
...e-manager/Microsoft.AlertsManagement/preview/2018-11-02-privatepreview/AlertsManagement.json
Outdated
Show resolved
Hide resolved
code review comments
|
@roramc waiting on ARM review before I can approve the PR. |
ravbhatnagar
left a comment
There was a problem hiding this comment.
Only reviewed actionRule APIs since that seemed the new type that was added. Next time, please remember to make the first commit which is a copy of existing version. The new changes should come in the next commit onwards. It will make reviewing easier.
| "type": "string", | ||
| "description": "Description of action rule" | ||
| }, | ||
| "resourceGroup": { |
There was a problem hiding this comment.
why is this needed? its already part of the URL?
There was a problem hiding this comment.
The same object gets returned even when we make a GET call to list all action rules for a given subscription. At that point user would want to know what resource group this action rule is stored in. So we added this in the properties explicitly. If conveying it through Id is enough, we could remove this property as well. Not sure what is the convention.
...e-manager/Microsoft.AlertsManagement/preview/2018-11-02-privatepreview/AlertsManagement.json
Outdated
Show resolved
Hide resolved
| "description": "Last updated time of action rule. Date-Time in ISO-8601 format.", | ||
| "readOnly": true | ||
| }, | ||
| "createdUserName": { |
There was a problem hiding this comment.
Not sure if this kind of PII is ok to have on the resource response. I will double check on my side.
There was a problem hiding this comment.
Ideally we would want to show who created/updated the given resource. Aren't other RPs doing the same? Do let us know if there is any concern with this.
Changed enabled flag to status enum
added location as mandatory parameter
|
@ravbhatnagar do the latest changess from @roramc address all the issues you raised? |
|
awaiting confirmation from service team. We recommended service team check with privacy since it contains potentially PII information. |
changed "createdDateTime"/"createdUserName" to "createdAt"/"createdBy" changed "lastModifiedDateTime"/"lastModifiedUserName" to "lastModifiedAt"/"lastModifiedBy" Updated conditions to take in operator
KrisBash
left a comment
There was a problem hiding this comment.
Thanks for the changes. Signing off
new line at end of file
new line at end of file
* Swagger Specs for SAP Virtual Instance Workload. * Updates. * Updates. * updates. * Updates. * Updates. * Updates. * Fixes. Co-authored-by: Ajay Gupta <ajgupt@microsoft.com>
adding new resource type actionRules in AlertsManagement RP
Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.
Contribution checklist:
ARM API Review Checklist
Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.
Please follow the link to find more details on API review process.