SLA: add interval option, closes #885

This commit is contained in:
Alexander Zobnin
2020-05-20 13:36:00 +03:00
parent 552b709740
commit 4c462e72dc
5 changed files with 47 additions and 9 deletions

View File

@@ -35,6 +35,7 @@ function getTargetDefaults() {
function getSLATargetDefaults() {
return {
slaProperty: { name: "SLA", property: "sla" },
slaInterval: 'none',
};
}
@@ -93,6 +94,16 @@ export class ZabbixQueryController extends QueryCtrl {
{name: "Down time", property: "downtimeTime"}
];
this.slaIntervals = [
{ text: 'No interval', value: 'none' },
{ text: 'Auto', value: 'auto' },
{ text: '1 hour', value: '1h' },
{ text: '12 hours', value: '12h' },
{ text: '24 hours', value: '1d' },
{ text: '1 week', value: '1w' },
{ text: '1 month', value: '1M' },
];
this.ackFilters = [
{text: 'all triggers', value: 2},
{text: 'unacknowledged', value: 0},