-
Notifications
You must be signed in to change notification settings - Fork 900
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
Add miq_expression setter to MiqAlert #16397
Conversation
Checked commit zakiva@ee1d420 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0 |
@miq-bot add_label enhancement, alerts |
@simon3z @moolitayer @imtayadeway Please review |
cc @elad661 |
iiuc: This will allow us to create alerts via the API by passing a hash for miq_expression |
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 👍
Correct. I meant it is part of adding the hash expression option to the API, I will rewrite that :) |
Adding type coercion for
miq_expression
column.This will allow us to create alerts via API with miq_expression by passing a hash instead of creating the miq expression object on the API side.
This is part of adding hash_hexpression to the alert definitions API in ManageIQ/manageiq-api#76.