influx-report.js
352 Bytes
module.exports.sendMessage = (tick, time, type = 'ufo') => {
if (!global.sender || !global.isProduction) {
return;
}
try {
global.sender.addMessage({
measurement: 'spider_ufo_success_report',
tags: {
type
},
fields: {
tick,
},
time
});
} catch (e) {
console.error(e);
}
};