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

Method PreparePlan

src/go/plugin/framework/chartengine/attempt.go:122–131  ·  view source on GitHub ↗
(reader metrix.Reader)

Source from the content-addressed store, hash-verified

120}
121
122func (e *Engine) PreparePlan(reader metrix.Reader) (PlanAttempt, error) {
123 plan, materialized, epoch, commitSeq, attemptID, reserved, err := e.preparePlan(reader)
124 if err != nil {
125 return PlanAttempt{}, err
126 }
127 if !reserved {
128 return newNoopAttempt(plan), nil
129 }
130 return newPreparedAttempt(e, plan, materialized, epoch, commitSeq, attemptID), nil
131}
132
133func (e *Engine) nextAttemptIDLocked() uint64 {
134 e.state.nextAttempt++

Callers 7

prepareCommittedPlanFunction · 0.80
prepareAndCommitPlanFunction · 0.80
collectAndEmitMethod · 0.80
TestJobV2ScenariosFunction · 0.80
buildPlanFromTemplateFunction · 0.80
prepareEmissionMethod · 0.80

Calls 3

preparePlanMethod · 0.95
newNoopAttemptFunction · 0.85
newPreparedAttemptFunction · 0.85

Tested by 3

prepareCommittedPlanFunction · 0.64
TestJobV2ScenariosFunction · 0.64