mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
Alerting: Change default alert state to Error on execution error or timeout (#55345)
This commit is contained in:
parent
96b032e103
commit
4a1ca7e32f
@ -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',
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user