MCPcopy
hub / github.com/netdata/netdata / CLABEL

Method CLABEL

src/go/pkg/netdataapi/api.go:65–70  ·  view source on GitHub ↗

CLABEL adds or updates a label to the most recently created chart.

(key, value string, source int)

Source from the content-addressed store, hash-verified

63
64// CLABEL adds or updates a label to the most recently created chart.
65func (a *API) CLABEL(key, value string, source int) {
66 _, _ = a.Write([]byte("CLABEL '" +
67 key + quotes +
68 value + quotes +
69 strconv.Itoa(source) + "'\n"))
70}
71
72// CLABELCOMMIT adds labels to the chart. Should be called after one or more CLABEL.
73func (a *API) CLABELCOMMIT() {

Callers 3

emitChartLabelsFunction · 0.80
createChartMethod · 0.80
TestCLABELFunction · 0.80

Calls 1

WriteMethod · 0.65

Tested by 1

TestCLABELFunction · 0.64