api/services/LineProtocolWriterService.js
Function writePoint
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
writePoint(point) {
return new Promise((fullfill, reject) => {
// TODO: Add Memory-cache Stat findOrCreate (for priming new Stat rows)
this.getMetricInstance(point)
Function getMetricInstance
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getMetricInstance(point) {
const cache = this.app.services.CacheService.getCaches()
return new Promise((fullfill, reject) => {
cache.get(this.getCacheKey(point), (error, metric) => {
TODO found Open
Open
// TODO: Remove ON CONFLICT and just use and UPDATE statement (if Stat findOrCreate is performed)
- Exclude checks
TODO found Open
Open
* @description TODO document Service
- Exclude checks
TODO found Open
Open
// TODO: Add Memory-cache Stat findOrCreate (for priming new Stat rows)
- Exclude checks