This PR add two additional columns, ENTITIES and TAGS, to the alert queries runner. This allow the two columns to be added to the SNOWALERT.RULES.<VIEW NAME> views and the columns will show up in the SNOWALERT.DATA.ALERTS view.
Here are the testing
1) Local testing on new installation using the new code:
a) Run the install script to create a new SnowAlert database in KH account.
b) Create a new alert rule with the new columns.
c) Create another alert rule without the new columns.
d) Trigger both alerts to slack channel.
Result: Successfully triggered both alerts and confirmed the alert data.
2) Local testing using the new code on a SnowAlert database created by the older code:
a) Recreate the DATA.ALERTS view to include the new columns.
b) Create a new alert rule with the new columns.
c) Create another alert rule without the new columns.
d) Trigger both alerts to slack channel.
Result: Successfully triggered both alerts and confirmed the alert data.
The roll out will use #2 and will start with SnowAlert database in OZ first and then to prod.
This PR add two additional columns,
ENTITIES
andTAGS
, to the alert queries runner. This allow the two columns to be added to theSNOWALERT.RULES.<VIEW NAME>
views and the columns will show up in theSNOWALERT.DATA.ALERTS
view.Here are the testing 1) Local testing on new installation using the new code: a) Run the install script to create a new SnowAlert database in KH account. b) Create a new alert rule with the new columns. c) Create another alert rule without the new columns. d) Trigger both alerts to slack channel. Result: Successfully triggered both alerts and confirmed the alert data.
2) Local testing using the new code on a SnowAlert database created by the older code: a) Recreate the
DATA.ALERTS
view to include the new columns. b) Create a new alert rule with the new columns. c) Create another alert rule without the new columns. d) Trigger both alerts to slack channel. Result: Successfully triggered both alerts and confirmed the alert data.The roll out will use #2 and will start with SnowAlert database in OZ first and then to prod.