MCPcopy
hub / github.com/netdata/netdata / actionKindCounts

Function actionKindCounts

src/go/plugin/framework/chartengine/runtime_metrics.go:397–414  ·  view source on GitHub ↗
(actions []EngineAction)

Source from the content-addressed store, hash-verified

395}
396
397func actionKindCounts(actions []EngineAction) planRuntimeSample {
398 out := planRuntimeSample{}
399 for _, action := range actions {
400 switch action.Kind() {
401 case ActionCreateChart:
402 out.actionCreateChart++
403 case ActionCreateDimension:
404 out.actionCreateDimension++
405 case ActionUpdateChart:
406 out.actionUpdateChart++
407 case ActionRemoveDimension:
408 out.actionRemoveDimension++
409 case ActionRemoveChart:
410 out.actionRemoveChart++
411 }
412 }
413 return out
414}

Callers 1

preparePlanMethod · 0.85

Calls 1

KindMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…