-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Adding new resource type for alerts meta data #6459
Conversation
SDK Automation [Logs] (Generated from 748917a)Python: Azure/azure-sdk-for-python
Go: Azure/azure-sdk-for-go
|
Can one of the admins verify this patch? |
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 |
Automation for azure-sdk-for-javaNothing to generate for azure-sdk-for-java |
Automation for azure-sdk-for-goThe initial PR has been merged into your service PR: |
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.
Waiting for ARM feedback.
} | ||
} | ||
}, | ||
"alertsMetaDataValue": { |
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.
can we have strongly typed schema for this? from example it looks like when type is monitor service, the properties are name and displayName. You can have different schema when you introduce new type. it will make it more usable.
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.
@ravbhatnagar how to achieve this strongly typed schema? by using discriminator?
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.
Done
@@ -52,6 +52,36 @@ | |||
} | |||
} | |||
}, | |||
"/providers/Microsoft.AlertsManagement/alertsMetaData": { |
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.
alertsMetadata is very generic name for this operation. Can you make it more specific. Like monitorProviders. What other things will you add to this meta data? If its not going to be lot of new things, may be you can have specific APIs to surface that information instead of clubbing it all in this API.
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.
We wanted a generic name only. Since we want to use this resource type for utility APIs. I mean we're going to return some or other meta data info with this resource type API based on identifier passed in API param
@tjprescott Can you please sign off & merge the PR as ARM team has signed off the changes |
* Alerts meta data api * Added example for alerts meta data resource type * Added identifier parameter to examples/AlertsMetaData_MonitorService.json file * Fix value of identifier parameter in examples/AlertsMetaData_MonitorService.json file * Fix value of identifier parameter in examples/AlertsMetaData_MonitorService.json file * Added one more enum value for identifier enum * Added remove added extra enum value for identifier enum * Added enum for identifier in definitions * Rename identifier in definitions to metadataIdentifier * Added enum for metadataIdentifier in definitions * Added enum for metadataIdentifier in definitions * Update test title in AlertsManagement.json * Schematic changes * Added defination for monitor service * Added defination for monitor service * Added defination for monitor service * Use discriminator for data of alerts meta properties * Fix error * Fix error
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.