MCPcopy Create free account
hub / github.com/netdata/netdata / composeFamily

Function composeFamily

src/go/plugin/framework/chartengine/compiler.go:416–427  ·  view source on GitHub ↗
(parts []string, leaf string)

Source from the content-addressed store, hash-verified

414}
415
416func composeFamily(parts []string, leaf string) string {
417 out := make([]string, 0, len(parts)+1)
418 for _, p := range parts {
419 if p = strings.TrimSpace(p); p != "" {
420 out = append(out, p)
421 }
422 }
423 if leaf = strings.TrimSpace(leaf); leaf != "" {
424 out = append(out, leaf)
425 }
426 return strings.Join(out, "/")
427}
428
429func buildTemplateID(groupPath []int, chartIndex int) string {
430 return fmt.Sprintf("g%s.c%d", pathIndexes(groupPath), chartIndex)

Callers 1

compileChartMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…