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

Method SET

src/go/pkg/netdataapi/api.go:87–89  ·  view source on GitHub ↗

SET sets the value of a dimension for the initialized chart.

(id string, value int64)

Source from the content-addressed store, hash-verified

85
86// SET sets the value of a dimension for the initialized chart.
87func (a *API) SET(id string, value int64) {
88 _, _ = a.Write([]byte("SET '" + id + "' = " + strconv.FormatInt(value, 10) + "\n"))
89}
90
91// SETFLOAT sets the value of a dimension for the initialized chart.
92func (a *API) SETFLOAT(id string, value float64) {

Callers 3

emitUpdatePhaseFunction · 0.80
updateChartMethod · 0.80
TestSETFunction · 0.80

Calls 1

WriteMethod · 0.65

Tested by 1

TestSETFunction · 0.64