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

Method CHART

src/go/pkg/netdataapi/api.go:37–51  ·  view source on GitHub ↗

CHART creates or updates a chart.

(opts ChartOpts)

Source from the content-addressed store, hash-verified

35
36// CHART creates or updates a chart.
37func (a *API) CHART(opts ChartOpts) {
38 _, _ = a.Write([]byte("CHART " + "'" +
39 opts.TypeID + "." + opts.ID + quotes +
40 opts.Name + quotes +
41 opts.Title + quotes +
42 opts.Units + quotes +
43 opts.Family + quotes +
44 opts.Context + quotes +
45 opts.ChartType + quotes +
46 strconv.Itoa(opts.Priority) + quotes +
47 strconv.Itoa(opts.UpdateEvery) + quotes +
48 opts.Options + quotes +
49 opts.Plugin + quotes +
50 opts.Module + "'\n"))
51}
52
53// DIMENSION adds or updates a dimension to the most recently created chart.
54func (a *API) DIMENSION(opts DimensionOpts) {

Callers 3

emitChartFunction · 0.80
createChartMethod · 0.80
TestChartFunction · 0.80

Calls 1

WriteMethod · 0.65

Tested by 1

TestChartFunction · 0.64