MCPcopy Index your code
hub / github.com/netdata/netdata / emitUpdatePhase

Function emitUpdatePhase

src/go/plugin/framework/chartemit/apply.go:206–222  ·  view source on GitHub ↗
(api *netdataapi.API, env EmitEnv, updates []UpdateChartAction)

Source from the content-addressed store, hash-verified

204}
205
206func emitUpdatePhase(api *netdataapi.API, env EmitEnv, updates []UpdateChartAction) {
207 for _, update := range updates {
208 api.BEGIN(sanitizeWireID(env.TypeID), sanitizeWireID(update.ChartID), env.MSSinceLast)
209 for _, dim := range update.Values {
210 if dim.IsEmpty {
211 api.SETEMPTY(sanitizeWireID(dim.Name))
212 continue
213 }
214 if dim.IsFloat {
215 api.SETFLOAT(sanitizeWireID(dim.Name), dim.Float64)
216 continue
217 }
218 api.SET(sanitizeWireID(dim.Name), dim.Int64)
219 }
220 api.END()
221 }
222}
223
224func emitRemovePhase(api *netdataapi.API, env EmitEnv, actions normalizedActions) {
225 for _, removeDim := range actions.removeDimensions {

Callers 1

ApplyPlanFunction · 0.85

Calls 6

sanitizeWireIDFunction · 0.85
BEGINMethod · 0.80
SETEMPTYMethod · 0.80
SETFLOATMethod · 0.80
SETMethod · 0.80
ENDMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…