MCPcopy
hub / github.com/netdata/netdata / DIMENSION

Method DIMENSION

src/go/pkg/netdataapi/api.go:54–62  ·  view source on GitHub ↗

DIMENSION adds or updates a dimension to the most recently created chart.

(opts DimensionOpts)

Source from the content-addressed store, hash-verified

52
53// DIMENSION adds or updates a dimension to the most recently created chart.
54func (a *API) DIMENSION(opts DimensionOpts) {
55 _, _ = a.Write([]byte("DIMENSION '" +
56 opts.ID + quotes +
57 opts.Name + quotes +
58 opts.Algorithm + quotes +
59 strconv.Itoa(opts.Multiplier) + quotes +
60 strconv.Itoa(opts.Divisor) + quotes +
61 opts.Options + "'\n"))
62}
63
64// CLABEL adds or updates a label to the most recently created chart.
65func (a *API) CLABEL(key, value string, source int) {

Callers 3

emitDimensionFunction · 0.80
createChartMethod · 0.80
TestDimensionFunction · 0.80

Calls 1

WriteMethod · 0.65

Tested by 1

TestDimensionFunction · 0.64