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

Method SETFLOAT

src/go/pkg/netdataapi/api.go:92–95  ·  view source on GitHub ↗

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

(id string, value float64)

Source from the content-addressed store, hash-verified

90
91// SETFLOAT sets the value of a dimension for the initialized chart.
92func (a *API) SETFLOAT(id string, value float64) {
93 v := strconv.FormatFloat(value, 'f', -1, 64)
94 _, _ = a.Write([]byte("SET '" + id + "' = " + v + "\n"))
95}
96
97// SETEMPTY sets an empty value for a dimension in the initialized chart.
98func (a *API) SETEMPTY(id string) {

Callers 3

emitUpdatePhaseFunction · 0.80
updateChartMethod · 0.80
TestSETFLOATFunction · 0.80

Calls 1

WriteMethod · 0.65

Tested by 1

TestSETFLOATFunction · 0.64