diff --git a/CountItems/CountManager.js b/CountItems/CountManager.js index 553bddc1..4c401406 100644 --- a/CountItems/CountManager.js +++ b/CountItems/CountManager.js @@ -99,15 +99,19 @@ class CountManager { if (metricLevel === 'account' && !this.uniqueAccounts.has(resourceName)) { this.uniqueAccounts.add(resourceName); monitoring.metricsCount.inc({ metricLevel : metricLevel}); + console.log(`uniqueAccount : ${this.uniqueAccounts}`); } if (metricLevel === 'location' && !this.uniqueLocations.has(resourceName)) { this.uniqueLocations.add(resourceName); monitoring.metricsCount.inc({ metricLevel : metricLevel}); + console.log(`uniqueLocation : ${this.uniqueLocations}`); } if (metricLevel === 'bucket' && !this.uniqueBuckets.has(resourceName)) { this.uniqueBuckets.add(resourceName); monitoring.metricsCount.inc({ metricLevel : metricLevel}); + console.log(`uniqueBucket : ${this.uniqueBuckets}`); } + console.log(`resourceName : ${resourceName}`); console.log(monitoring.metricsCount); // resourceName can be the name of bucket, location or account this.dataMetrics[metricLevel][resourceName] = consolidateDataMetrics(