MCPcopy Create free account
hub / github.com/3rdparty/libprocess / remove

Method remove

src/metrics/metrics.cpp:133–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131
132
133Future<Nothing> MetricsProcess::remove(const string& name)
134{
135 size_t erased = metrics.erase(name);
136
137 if (erased == 0) {
138 return Failure("Metric '" + name + "' not found");
139 }
140
141 return Nothing();
142}
143
144
145Future<map<string, double>> MetricsProcess::snapshot(

Callers

nothing calls this directly

Calls 1

FailureClass · 0.85

Tested by

no test coverage detected