From 6cca9cbb3a4f12a40760c3f1de03f83b01444bf8 Mon Sep 17 00:00:00 2001 From: rozetko Date: Thu, 13 Sep 2018 13:00:11 +0300 Subject: [PATCH] fix filename --- src/target.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/target.ts b/src/target.ts index 2c3fc53..5eb8852 100644 --- a/src/target.ts +++ b/src/target.ts @@ -103,7 +103,9 @@ export class Target { } private getFilename(extension) { - return `${this.from}-${this.to}.${extension}`; + // TODO: use something unique instead of measurement in filename + // as measurement field exists only in influxDB metric + return `${this.metric.targets[0].measurement}.${this.from}-${this.to}.${extension}`; } private getFilePath(extension) {