Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AggregatorRegistry

class AggregatorRegistry extends Registry {
clusterMetrics(): Promise<string>;
 
static aggregate(metricsArr: Array<Object>): Registry;
static setRegistries(regs: Array<Registry> | Registry): void;
}

§Extends

§
Registry
[src]

§Methods

§
clusterMetrics(): Promise<string>
[src]

Gets aggregated metrics for all workers.

@return

Promise that resolves with the aggregated metrics.

§Static Methods

§
aggregate(metricsArr: Array<Object>): Registry
[src]

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.

§
setRegistries(regs: Array<Registry> | Registry): void
[src]

Sets the registry or registries to be aggregated. Call from workers to use a registry/registries other than the default global registry.

@param regs

Registry or registries to be aggregated.

@return