MCPcopy
hub / github.com/netdata/netdata / MarkRemove

Method MarkRemove

src/go/plugin/framework/collectorapi/charts.go:273–276  ·  view source on GitHub ↗

MarkRemove sets 'remove' flag and Obsolete option to true. Use it to remove chart in runtime.

()

Source from the content-addressed store, hash-verified

271// MarkRemove sets 'remove' flag and Obsolete option to true.
272// Use it to remove chart in runtime.
273func (c *Chart) MarkRemove() {
274 c.Obsolete = true
275 c.remove = true
276}
277
278// MarkDimRemove sets 'remove' flag, Obsolete and optionally Hidden options to true.
279// Use it to remove dimension in runtime.

Callers 15

TestCharts_Add_SameIDFunction · 0.80
TestChart_MarkRemoveFunction · 0.80
CleanupMethod · 0.80
removeChartsMethod · 0.80
removeChartsMethod · 0.80
removeDatabaseChartsMethod · 0.80
removeShardChartsMethod · 0.80
removeDeviceChartsMethod · 0.80
removeStaleChartsMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestCharts_Add_SameIDFunction · 0.64
TestChart_MarkRemoveFunction · 0.64