mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(alerting): update the ux model
This commit is contained in:
parent
1e4761854e
commit
3898f427f5
@ -49,11 +49,9 @@ export class AlertTabCtrl {
|
||||
|
||||
defaultValues = {
|
||||
frequency: 10,
|
||||
warnOperator: '>',
|
||||
critOperator: '>',
|
||||
evalFunc: 'static',
|
||||
critLevel: 20,
|
||||
warnLevel: 10,
|
||||
warning: { op: '>', level: 10 },
|
||||
critical: { op: '>', level: 20 },
|
||||
function: 'static',
|
||||
valueQuery: {
|
||||
queryRefId: 'A',
|
||||
from: '5m',
|
||||
@ -94,7 +92,8 @@ export class AlertTabCtrl {
|
||||
}
|
||||
|
||||
evalFuncChanged() {
|
||||
var evalFuncDef = _.findWhere(this.evalFuncs, {value: this.rule.evalFunc});
|
||||
var evalFuncDef = _.findWhere(this.evalFuncs, { value: this.rule.expression.evalFunc });
|
||||
console.log(evalFuncDef);
|
||||
this.secondParam = evalFuncDef.secondParam;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user