MCPcopy
hub / github.com/netdata/netdata / LoadYAML

Method LoadYAML

src/go/plugin/framework/chartengine/engine.go:88–94  ·  view source on GitHub ↗

LoadYAML decodes chart-template YAML, compiles it, and publishes the program.

(data []byte, revision uint64)

Source from the content-addressed store, hash-verified

86
87// LoadYAML decodes chart-template YAML, compiles it, and publishes the program.
88func (e *Engine) LoadYAML(data []byte, revision uint64) error {
89 spec, err := charttpl.DecodeYAML(data)
90 if err != nil {
91 return err
92 }
93 return e.Load(spec, revision)
94}
95
96// ResetMaterialized clears only materialized chart/dimension lifecycle state.
97//

Calls 1

LoadMethod · 0.95