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.
// * This will check if the current metric in the parsed array
850
-
// * evaluates to true within the currentMetricNames object
851
-
// * which is updated by the user when they select/deselect metrics on the electron app
852
-
// * helping to avoid overloading the db with unnecessary data.
853
-
// */
854
-
855
-
// if (currentMetricNames[metric.metric]) documents.push(model(metric));
856
-
// }
857
-
// await model.insertMany(parsedArray, err => {
858
-
// if (err) {
859
-
// console.error(err)
860
-
// } else {
861
-
// console.log(`${config.mode} metrics recorded in MongoDB`)
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