Alerting: Change default alert state to Error on execution error or timeout (#55345)
This commit is contained in:
@@ -294,7 +294,7 @@ describe('RuleEditor', () => {
|
||||
grafana_alert: {
|
||||
condition: 'B',
|
||||
data: getDefaultQueries(),
|
||||
exec_err_state: 'Alerting',
|
||||
exec_err_state: 'Error',
|
||||
no_data_state: 'NoData',
|
||||
title: 'my great new rule',
|
||||
},
|
||||
@@ -447,7 +447,7 @@ describe('RuleEditor', () => {
|
||||
namespace_id: 1,
|
||||
condition: 'B',
|
||||
data: getDefaultQueries(),
|
||||
exec_err_state: GrafanaAlertStateDecision.Alerting,
|
||||
exec_err_state: GrafanaAlertStateDecision.Error,
|
||||
no_data_state: GrafanaAlertStateDecision.NoData,
|
||||
title: 'my great new rule',
|
||||
},
|
||||
@@ -505,7 +505,7 @@ describe('RuleEditor', () => {
|
||||
uid,
|
||||
condition: 'B',
|
||||
data: getDefaultQueries(),
|
||||
exec_err_state: 'Alerting',
|
||||
exec_err_state: 'Error',
|
||||
no_data_state: 'NoData',
|
||||
title: 'my great new rule',
|
||||
},
|
||||
|
||||
@@ -56,7 +56,7 @@ export const getDefaultFormValues = (): RuleFormValues => {
|
||||
queries: [],
|
||||
condition: '',
|
||||
noDataState: GrafanaAlertStateDecision.NoData,
|
||||
execErrState: GrafanaAlertStateDecision.Alerting,
|
||||
execErrState: GrafanaAlertStateDecision.Error,
|
||||
evaluateEvery: '1m',
|
||||
evaluateFor: '5m',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user