-
Notifications
You must be signed in to change notification settings - Fork 406
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
[ISSUE] Issue with databricks_alert
resource
#4483
Comments
it looks like it a problem with API - I don't see any option for specifying first row and other params: https://docs.databricks.com/api/workspace/alerts/create |
I chatted with the dev team - the "First Row" is the default operation. The gap in that API is known, but there is no ETA for adding it. |
Since I followed the terraform example: does that mean the resource is broken or did I use it incorrectly? |
Ok, I dug deeper into it - the problem is caused by having
Unfortunately, this could be solved only by porting this resource to the TF plugin framework that allows to distinguish between the 0 value that is set and not specified value. The current workaround would be to use |
Can confirm, that this workaround does the trick. Thank you |
The example code of the databricks_alert resource creates a broken alert. The condition is not evaluated correctly.
I am using aquery which returns a single integer column "number_of_events". I want to trigger the alert if the attribute value of the first row is 0.
The documentation does not show any options to configure the first row into the trigger condition.
Configuration
Expected Behavior
The evaluation criterion should be displayed correctly.
Actual Behavior
The trigger condition is broken.
![Image](https://private-user-images.githubusercontent.com/149576700/412038987-46f8de7f-4bf3-4ed4-8944-fbc3d3ebced5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1ODg0MTUsIm5iZiI6MTczOTU4ODExNSwicGF0aCI6Ii8xNDk1NzY3MDAvNDEyMDM4OTg3LTQ2ZjhkZTdmLTRiZjMtNGVkNC04OTQ0LWZiYzNkM2ViY2VkNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwMjU1MTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNmUxMTE2ZTBiMjNlNzk3Y2IwNGI3MGI2YzNlODJiZGQ2YTZjMGZlMDNmY2U4ZDg0ODhiNWU0ZGRjYzg4OTQ2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.WVvJ1xr8HeMQHJ_1zMNqv2peAXl2As6l7326pwW8N5Q)
The text was updated successfully, but these errors were encountered: