-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Scheduled-Query] update api version #3399
[Scheduled-Query] update api version #3399
Conversation
Scheduled-Query |
@kairu-ms Please pass this PR with us for sign-off before you merge. |
Please make sure you do not diverge from metric alerts as they also have 'auto-mitigate' option. |
Thanks for your feedback, I have two question:
|
Yes, it is controlled by the 'autoMitigate' flag in the API. Would like to have that controllable in the CLI.
No, when 'autoMitigate' is false you can still set mute-actions-duration. |
What was the default for muting before? |
The default value is 30 minutes |
I see. I will add that control in CLI. |
@@ -36,3 +37,6 @@ def load_arguments(self, _): | |||
options_list=['--mute-actions-duration', '--mad'], | |||
help='Mute actions for the chosen period of time (in ISO 8601 duration format) after the alert is fired.') | |||
c.argument('actions', options_list=['--action', '-a'], action=ScheduleQueryAddAction, nargs='+', validator=get_action_group_validator('actions')) | |||
c.argument('auto_mitigate', arg_type=get_three_state_flag(), help='The flag that indicates whether the alert should be automatically resolved or not. The default is true.') | |||
c.argument('skip_query_validation', arg_type=get_three_state_flag(), help='The flag which indicates whether the provided query should be validated or not.') | |||
c.argument('check_workspace_alerts_storage', options_list=['--check-ws-alerts-storage', '--cwas'], arg_type=get_three_state_flag(), help="The flag which indicates whether this scheduled query rule should be stored in the customer's storage.") |
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.
Add default value in help message
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.
Hi, @yanivlavi does this PR ready to release? |
587deac
to
6e034b7
Compare
6e034b7
to
eb2ac0d
Compare
This reverts commit 5ed250a.
closed Azure/azure-cli#17891
--skip-query-validation
parameter--check-ws-alerts-storage
parameter--mute-actions-duration
is removed because alert auto mitigate is supportedThis checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
azdev style <YOUR_EXT>
locally? (pip install azdev
required)python scripts/ci/test_index.py -q
locally?For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update
src/index.json
automatically.The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify
src/index.json
.