Alerting: Add metadata field with editor_settings to alert rule (#93245)

This commit is contained in:
Alexander Akhmetov
2024-09-19 16:43:41 +02:00
committed by GitHub
parent 4d1adf9db4
commit 9f5b05f936
18 changed files with 309 additions and 22 deletions
@@ -41,7 +41,12 @@
"rule_group": "Group1",
"no_data_state": "NoData",
"exec_err_state": "Alerting",
"is_paused": false
"is_paused": false,
"metadata": {
"editor_settings": {
"simplified_query_and_expressions_section": false
}
}
}
},
{
@@ -83,8 +88,13 @@
"rule_group": "Group1",
"no_data_state": "NoData",
"exec_err_state": "Alerting",
"is_paused": false
"is_paused": false,
"metadata": {
"editor_settings": {
"simplified_query_and_expressions_section": false
}
}
}
}
]
}
}
@@ -41,8 +41,13 @@
"rule_group": "Group2",
"no_data_state": "NoData",
"exec_err_state": "Error",
"is_paused": false
"is_paused": false,
"metadata": {
"editor_settings": {
"simplified_query_and_expressions_section": false
}
}
}
}
]
}
}
@@ -41,7 +41,12 @@
"rule_group": "Group3",
"no_data_state": "NoData",
"exec_err_state": "Alerting",
"is_paused": false
"is_paused": false,
"metadata": {
"editor_settings": {
"simplified_query_and_expressions_section": false
}
}
}
},
{
@@ -83,8 +88,13 @@
"rule_group": "Group3",
"no_data_state": "NoData",
"exec_err_state": "Alerting",
"is_paused": false
"is_paused": false,
"metadata": {
"editor_settings": {
"simplified_query_and_expressions_section": false
}
}
}
}
]
}
}