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

Method VARIABLE

src/go/pkg/netdataapi/api.go:103–106  ·  view source on GitHub ↗

VARIABLE sets the value of a CHART scope variable for the initialized chart.

(ID string, value float64)

Source from the content-addressed store, hash-verified

101
102// VARIABLE sets the value of a CHART scope variable for the initialized chart.
103func (a *API) VARIABLE(ID string, value float64) {
104 v := strconv.FormatFloat(value, 'f', -1, 64)
105 _, _ = a.Write([]byte("VARIABLE CHART '" + ID + "' = " + v + "\n"))
106}
107
108// END completes data collection for the initialized chart.
109// Should be called after all SET operations are complete.

Callers 3

createChartMethod · 0.80
updateChartMethod · 0.80
TestVARIABLEFunction · 0.80

Calls 1

WriteMethod · 0.65

Tested by 1

TestVARIABLEFunction · 0.64