mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
make default values for alerting configurable
This commit is contained in:
@@ -22,6 +22,8 @@ export class Settings {
|
||||
disableLoginForm: boolean;
|
||||
defaultDatasource: string;
|
||||
alertingEnabled: boolean;
|
||||
alertingErrorOrTimeout: string;
|
||||
alertingNoDataOrNullValues: string;
|
||||
authProxyEnabled: boolean;
|
||||
exploreEnabled: boolean;
|
||||
ldapEnabled: boolean;
|
||||
|
||||
@@ -164,8 +164,8 @@ export class AlertTabCtrl {
|
||||
alert.conditions.push(this.buildDefaultCondition());
|
||||
}
|
||||
|
||||
alert.noDataState = alert.noDataState || 'no_data';
|
||||
alert.executionErrorState = alert.executionErrorState || 'alerting';
|
||||
alert.noDataState = alert.noDataState || config.alertingNoDataOrNullValues;
|
||||
alert.executionErrorState = alert.executionErrorState || config.alertingErrorOrTimeout;
|
||||
alert.frequency = alert.frequency || '60s';
|
||||
alert.handler = alert.handler || 1;
|
||||
alert.notifications = alert.notifications || [];
|
||||
|
||||
Reference in New Issue
Block a user