(name?: string)
| 387 | } |
| 388 | |
| 389 | reset(name?: string): void { |
| 390 | if (!name) { |
| 391 | this.metrics.clear(); |
| 392 | this.counters.clear(); |
| 393 | this.gauges.clear(); |
| 394 | return; |
| 395 | } |
| 396 | |
| 397 | const metricName = this.getMetricName(name); |
| 398 | this.metrics.delete(metricName); |
| 399 | this.counters.delete(metricName); |
| 400 | this.gauges.delete(metricName); |
| 401 | } |
| 402 | |
| 403 | destroy(): void { |
| 404 | this.reset(); |
no test coverage detected