Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getHealedItemsMap (0.27 sec)

  1. cmd/admin-heal-ops.go

    	retMap := make(map[madmin.HealItemType]int64, len(h.scannedItemsMap))
    	for k, v := range h.scannedItemsMap {
    		retMap[k] = v
    	}
    
    	return retMap
    }
    
    // getHealedItemsMap - returns the map of all healed items against type
    func (h *healSequence) getHealedItemsMap() map[madmin.HealItemType]int64 {
    	h.mutex.RLock()
    	defer h.mutex.RUnlock()
    
    	// Make a copy before returning the value
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  2. cmd/metrics.go

    				"Objects scanned since uptime",
    				[]string{"type"}, nil),
    			prometheus.CounterValue,
    			float64(v), string(k),
    		)
    	}
    	for k, v := range bgSeq.getHealedItemsMap() {
    		ch <- prometheus.MustNewConstMetric(
    			prometheus.NewDesc(
    				prometheus.BuildFQName(healMetricsNamespace, "objects", "healed"),
    				"Objects healed since uptime",
    				[]string{"type"}, nil),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. cmd/metrics-v2.go

    			VariableLabels: map[string]string{"type": string(k)},
    			Value:          float64(v),
    		})
    	}
    	return
    }
    
    func getHealedItems(seq *healSequence) (m []MetricV2) {
    	items := seq.getHealedItemsMap()
    	m = make([]MetricV2, 0, len(items))
    	for k, v := range items {
    		m = append(m, MetricV2{
    			Description:    getHealObjectsHealTotalMD(),
    			VariableLabels: map[string]string{"type": string(k)},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 131.9K bytes
    - Viewed (0)
Back to top