| 131 | |
| 132 | |
| 133 | Future<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 | |
| 145 | Future<map<string, double>> MetricsProcess::snapshot( |