checkmgr/metrics.go
func (cm *CheckManager) inventoryMetrics() {
	availableMetrics := make(map[string]bool)
	for _, metric := range cm.checkBundle.Metrics {
		availableMetrics[metric.Name] = metric.Status == "active"
	}
	cm.availableMetricsmu.Lock()
	cm.availableMetrics = availableMetrics
	cm.availableMetricsmu.Unlock()
}
func (cm *CheckManager) inventoryMetrics() {
	availableMetrics := make(map[string]bool)
	for _, metric := range cm.checkBundle.Metrics {
		availableMetrics[metric.Name] = metric.Status == "active"
	}
	cm.availableMetricsmu.Lock()
	cm.availableMetrics = availableMetrics
	cm.availableMetricsmu.Unlock()
}
func ( cm * CheckManager ) inventoryMetrics ( ) { availableMetrics := make ( map [ string ] bool ) for _ , metric := range cm . checkBundle . Metrics { availableMetrics [ metric . Name ] = metric . Status == " " } cm . availableMetricsmu . Lock ( ) cm . availableMetrics = availableMetrics cm . availableMetricsmu . Unlock ( ) }
// inventoryMetrics creates list of active metrics in check bundle
inventoryMetrics creates list of active metrics in check bundle