AggregatorRegistry
class AggregatorRegistry extends Registry {}
§Methods
§
clusterMetrics(): Promise<string>
[src]Gets aggregated metrics for all workers.
@return
Promise that resolves with the aggregated metrics.
§Static Methods
§
Creates a new Registry instance from an array of metrics that were
created by registry.getMetricsAsJSON(). Metrics are aggregated using
the method specified by their aggregator property, or by summation if
aggregator is undefined.
@param metricsArr
Array of metrics, each of which created by
registry.getMetricsAsJSON().
@return
aggregated registry.