MCPcopy
hub / github.com/netdata/netdata / compileLifecycle

Function compileLifecycle

src/go/plugin/framework/chartengine/compiler.go:329–343  ·  view source on GitHub ↗
(in *charttpl.Lifecycle)

Source from the content-addressed store, hash-verified

327}
328
329func compileLifecycle(in *charttpl.Lifecycle) program.LifecyclePolicy {
330 out := defaultChartLifecyclePolicyCopy()
331 if in == nil {
332 return out
333 }
334 out.MaxInstances = in.MaxInstances
335 if in.ExpireAfterCycles > 0 {
336 out.ExpireAfterCycles = in.ExpireAfterCycles
337 }
338 if in.Dimensions != nil {
339 out.Dimensions.MaxDims = in.Dimensions.MaxDims
340 out.Dimensions.ExpireAfterCycles = in.Dimensions.ExpireAfterCycles
341 }
342 return out
343}
344
345func compileInstanceByLabels(instances *charttpl.Instances) ([]program.InstanceLabelSelector, error) {
346 if instances == nil {

Callers 1

compileChartMethod · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…