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

@@ -48,7 +48,12 @@ function migrateQueryType(target) {
delete target.mode;
}
}
}
function migrateSLA(target) {
if (target.queryType === c.MODE_ITSERVICE && !target.slaInterval) {
target.slaInterval = 'none';
}
}
export function migrate(target) {
@@ -59,6 +64,7 @@ export function migrate(target) {
}
migratePercentileAgg(target);
migrateQueryType(target);
migrateSLA(target);
return target;
}