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

Method BEGIN

src/go/pkg/netdataapi/api.go:78–84  ·  view source on GitHub ↗

BEGIN initializes data collection for a chart.

(typeID string, id string, msSince int)

Source from the content-addressed store, hash-verified

76
77// BEGIN initializes data collection for a chart.
78func (a *API) BEGIN(typeID string, id string, msSince int) {
79 if msSince > 0 {
80 _, _ = a.Write([]byte("BEGIN " + "'" + typeID + "." + id + "' " + strconv.Itoa(msSince) + "\n"))
81 } else {
82 _, _ = a.Write([]byte("BEGIN " + "'" + typeID + "." + id + "'\n"))
83 }
84}
85
86// SET sets the value of a dimension for the initialized chart.
87func (a *API) SET(id string, value int64) {

Callers 3

emitUpdatePhaseFunction · 0.80
updateChartMethod · 0.80
TestBEGINFunction · 0.80

Calls 1

WriteMethod · 0.65

Tested by 1

TestBEGINFunction · 0.64