Returns the current metrics.
Map<String, APIMetric> get metrics => _metrics ??= <String, APIMetric>{};