Problems: add min severity filter

This commit is contained in:
Alexander Zobnin
2020-05-15 19:05:07 +03:00
parent b94a6c4841
commit 5034c2ca90
5 changed files with 25 additions and 2 deletions

View File

@@ -42,6 +42,7 @@ function getProblemsTargetDefaults() {
return {
showProblems: ShowProblemTypes.Problems,
options: {
minSeverity: 0,
sortProblems: 'default',
acknowledged: 2,
hostsInMaintenance: false,
@@ -51,6 +52,10 @@ function getProblemsTargetDefaults() {
};
}
function getSeverityOptions() {
return c.TRIGGER_SEVERITY;
}
export class ZabbixQueryController extends QueryCtrl {
/** @ngInject */
@@ -120,7 +125,7 @@ export class ZabbixQueryController extends QueryCtrl {
this.resultFormats = [{ text: 'Time series', value: 'time_series' }, { text: 'Table', value: 'table' }];
this.triggerSeverity = c.TRIGGER_SEVERITY;
this.severityOptions = getSeverityOptions();
// Map functions for bs-typeahead
this.getGroupNames = _.bind(this.getMetricNames, this, 'groupList');