Alerting: Add simplified_notifications_section field to the alert rule metadata (#95988)

This commit is contained in:
Alexander Akhmetov
2024-11-14 12:55:54 +01:00
committed by GitHub
parent c8a5be0bb3
commit 324503ee8b
14 changed files with 132 additions and 17 deletions
@@ -793,7 +793,8 @@ func TestIntegrationDeleteFolderWithRules(t *testing.T) {
"exec_err_state": "Alerting",
"metadata": {
"editor_settings": {
"simplified_query_and_expressions_section": false
"simplified_query_and_expressions_section": false,
"simplified_notifications_section": false
}
}
}
@@ -1276,7 +1277,8 @@ func TestIntegrationAlertRuleCRUD(t *testing.T) {
"exec_err_state":"Alerting",
"metadata": {
"editor_settings": {
"simplified_query_and_expressions_section": false
"simplified_query_and_expressions_section": false,
"simplified_notifications_section": false
}
}
}
@@ -1317,7 +1319,8 @@ func TestIntegrationAlertRuleCRUD(t *testing.T) {
"exec_err_state":"Alerting",
"metadata": {
"editor_settings": {
"simplified_query_and_expressions_section": false
"simplified_query_and_expressions_section": false,
"simplified_notifications_section": false
}
}
}
@@ -1630,7 +1633,8 @@ func TestIntegrationAlertRuleCRUD(t *testing.T) {
"exec_err_state":"Alerting",
"metadata": {
"editor_settings": {
"simplified_query_and_expressions_section": false
"simplified_query_and_expressions_section": false,
"simplified_notifications_section": false
}
}
}
@@ -1744,7 +1748,8 @@ func TestIntegrationAlertRuleCRUD(t *testing.T) {
"exec_err_state":"Alerting",
"metadata": {
"editor_settings": {
"simplified_query_and_expressions_section": false
"simplified_query_and_expressions_section": false,
"simplified_notifications_section": false
}
}
}
@@ -1837,7 +1842,8 @@ func TestIntegrationAlertRuleCRUD(t *testing.T) {
"exec_err_state":"Alerting",
"metadata": {
"editor_settings": {
"simplified_query_and_expressions_section": false
"simplified_query_and_expressions_section": false,
"simplified_notifications_section": false
}
}
}
@@ -2369,7 +2375,8 @@ func TestIntegrationQuota(t *testing.T) {
"exec_err_state":"Alerting",
"metadata": {
"editor_settings": {
"simplified_query_and_expressions_section": false
"simplified_query_and_expressions_section": false,
"simplified_notifications_section": false
}
}
}