getMetricsView method
Get the metrics objects for the given metrics view. This returns a dictionnary of metric maps for each metrics class configured with the view. The timestamp allows the client to compute averages which are not dependent of the invocation latency for this operation.
@param view The name of the metrics view.
@param timestamp The local time of the process when the metrics object were retrieved.
@return The metrics view data.
@throws UnknownMetricsView Raised if the metrics view cannot be found.
Implementation
MetricsView getMetricsView(String view, [Current? current]) {
final i = views[view];
if (i == null) {
return {};
}
if (disabledViews.contains(view)) {
return {};
}
return i;
}