From 41677d8ffcc30ce17a6fac1d02d53f323e2952f6 Mon Sep 17 00:00:00 2001 From: Matthew Macdonald-Wallace Date: Wed, 3 Aug 2022 08:33:27 +0100 Subject: [PATCH] Fix eslint warnings --- server/prometheus.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/prometheus.js b/server/prometheus.js index 9db07f8d..627b7c55 100644 --- a/server/prometheus.js +++ b/server/prometheus.js @@ -45,10 +45,10 @@ const monitorStatus = new PrometheusClient.Gauge({ class Prometheus { monitorLabelValues = {}; - async get_tags(monitor) { + async getMonitorTags(monitor) { console.log("Getting Tags for Prometheus"); - const tags = await R.getAll("SELECT mt.*, tag.name, tag.color FROM monitor_tag mt JOIN tag ON mt.tag_id = tag.id WHERE mt.monitor_id = ?", [monitor.id]); + const tags = await R.getAll("SELECT mt.*, tag.name, tag.color FROM monitor_tag mt JOIN tag ON mt.tag_id = tag.id WHERE mt.monitor_id = ?", [ monitor.id ]); return tags; } @@ -65,11 +65,11 @@ class Prometheus { monitor_port: monitor.port }; - this.get_tags(monitor).then(tags => { + this.getMonitorTags(monitor).then(tags => { for (let tag in tags) { - let tag_detail = tags[tag]; - let name = tag_detail.name; - let value = tag_detail.value; + let tagDetail = tags[tag]; + let name = tagDetail.name; + let value = tagDetail.value; console.log("New tag created: {" + name + ": " + value + "}"); this.monitorLabelValues[name] = value; }