Added text metrics migrations.

This commit is contained in:
Alexander Zobnin
2016-03-30 10:02:43 +03:00
parent 38f4870e28
commit 7c198ae712

View File

@@ -4,7 +4,7 @@
*/ */
export function isGrafana2target(target) { export function isGrafana2target(target) {
if (!target.mode || target.mode === 0) { if (!target.mode || target.mode === 0 || target.mode === 2) {
if ((target.hostFilter || target.itemFilter || target.downsampleFunction || target.host.host) && if ((target.hostFilter || target.itemFilter || target.downsampleFunction || target.host.host) &&
(target.item.filter === undefined && target.host.filter === undefined)) { (target.item.filter === undefined && target.host.filter === undefined)) {
return true; return true;