MCPcopy
hub / github.com/netdata/netdata / pathIndexes

Function pathIndexes

src/go/plugin/framework/chartengine/compiler.go:433–445  ·  view source on GitHub ↗
(path []int)

Source from the content-addressed store, hash-verified

431}
432
433func pathIndexes(path []int) string {
434 if len(path) == 0 {
435 return "root"
436 }
437 var b strings.Builder
438 for i, idx := range path {
439 if i > 0 {
440 b.WriteByte('.')
441 }
442 b.WriteString(strconv.Itoa(idx))
443 }
444 return b.String()
445}
446
447func (c *compiler) metricNames() []string {
448 return mapKeysSorted(c.metricsSet)

Callers 2

compileGroupMethod · 0.85
buildTemplateIDFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…