Compare commits

..

No commits in common. "38fed9604c72744946beb32fa52e077aaaf15757" and "1bffd227351d83b65e2b1b377c2680f71d1a7e5d" have entirely different histories.

View File

@ -4,12 +4,12 @@ const {Point} = require("@influxdata/influxdb-client");
/** Keys to always use as tags */
const TAG_LIST = [
"srcMac",
"dstMac",
"srcmac",
"dstmac",
"bssid",
"frequency",
"flags",
"packetType",
"packettype",
];
/** Measurement-name and corresponding field-key */
@ -66,10 +66,7 @@ function tagObjectRecursively(point, tag, field, suffix = ""){
tagObjectRecursively(point, tag, value, `_${key}${suffix}`);
});
}
else {
const name = (tag+suffix).toLowerCase();
point.tag(name, field);
}
else point.tag(tag+suffix, field);
}
/** Mapping for type -> field-method */