You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Use setInterval to send queries to metrics server and then pipe responses to database
830
-
// setInterval(() => {
831
-
metricsQuery(config)
832
-
// This updates the Metrics Model with all chosen metrics. If there are no chosen metrics it sets all available metrics as chosen metrics within the metrics model.
console.log('parsedArray.length is: ',parsedArray.length);
836
-
// This conditional would be used if new metrics are available to be tracked.
837
-
if(length!==parsedArray.length){
838
-
// for (let metric of parsedArray) {
839
-
// if (!(metric.metric in currentMetricNames)) {
840
-
// await model.create(metric);
841
-
// //currentMetricNames[metric] = true;
842
-
// }
830
+
setInterval(()=>{
831
+
metricsQuery(config)
832
+
// This updates the Metrics Model with all chosen metrics. If there are no chosen metrics it sets all available metrics as chosen metrics within the metrics model.
0 commit comments