SLA: add interval option, closes #885
This commit is contained in:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user