mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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: {
|
grafana_alert: {
|
||||||
condition: 'B',
|
condition: 'B',
|
||||||
data: getDefaultQueries(),
|
data: getDefaultQueries(),
|
||||||
exec_err_state: 'Alerting',
|
exec_err_state: 'Error',
|
||||||
no_data_state: 'NoData',
|
no_data_state: 'NoData',
|
||||||
title: 'my great new rule',
|
title: 'my great new rule',
|
||||||
},
|
},
|
||||||
@ -447,7 +447,7 @@ describe('RuleEditor', () => {
|
|||||||
namespace_id: 1,
|
namespace_id: 1,
|
||||||
condition: 'B',
|
condition: 'B',
|
||||||
data: getDefaultQueries(),
|
data: getDefaultQueries(),
|
||||||
exec_err_state: GrafanaAlertStateDecision.Alerting,
|
exec_err_state: GrafanaAlertStateDecision.Error,
|
||||||
no_data_state: GrafanaAlertStateDecision.NoData,
|
no_data_state: GrafanaAlertStateDecision.NoData,
|
||||||
title: 'my great new rule',
|
title: 'my great new rule',
|
||||||
},
|
},
|
||||||
@ -505,7 +505,7 @@ describe('RuleEditor', () => {
|
|||||||
uid,
|
uid,
|
||||||
condition: 'B',
|
condition: 'B',
|
||||||
data: getDefaultQueries(),
|
data: getDefaultQueries(),
|
||||||
exec_err_state: 'Alerting',
|
exec_err_state: 'Error',
|
||||||
no_data_state: 'NoData',
|
no_data_state: 'NoData',
|
||||||
title: 'my great new rule',
|
title: 'my great new rule',
|
||||||
},
|
},
|
||||||
|
@ -56,7 +56,7 @@ export const getDefaultFormValues = (): RuleFormValues => {
|
|||||||
queries: [],
|
queries: [],
|
||||||
condition: '',
|
condition: '',
|
||||||
noDataState: GrafanaAlertStateDecision.NoData,
|
noDataState: GrafanaAlertStateDecision.NoData,
|
||||||
execErrState: GrafanaAlertStateDecision.Alerting,
|
execErrState: GrafanaAlertStateDecision.Error,
|
||||||
evaluateEvery: '1m',
|
evaluateEvery: '1m',
|
||||||
evaluateFor: '5m',
|
evaluateFor: '5m',
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user