- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isDescendantOf (0.04 sec)
-
cmd/metrics-v3-handler.go
// First collect all matching MetricsGroup's matchingMG := make(map[collectorPath]*MetricsGroup) for _, collPath := range h.metricsData.collectorPaths { if collPath.isDescendantOf(path) { if v, ok := h.metricsData.mgMap[collPath]; ok { matchingMG[collPath] = v } else if v, ok := h.metricsData.bucketMGMap[collPath]; ok { matchingMG[collPath] = v } } }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 7.7K bytes - Viewed (0) -
cmd/metrics-v3-types.go
s = strings.ReplaceAll(s, "-", "_") return "minio_" + s } // isDescendantOf returns true if it is a descendant of (or the same as) // `ancestor`. // // For example: // // /a, /a/b, /a/b/c are all descendants of /a. // /abc or /abd/a are not descendants of /ab. func (cp collectorPath) isDescendantOf(arg string) bool { descendant := string(cp) if descendant == arg { return true }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Feb 28 19:33:08 UTC 2025 - 15.6K bytes - Viewed (0)