@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
20 lines • 761 B
TypeScript
import { GaugeConfiguration } from "prom-client";
import { AvgMinMax as IAvgMinMax, LabelKeys, LabelsGeneric } from "@lodestar/utils";
type GetValuesFn = () => number[];
/**
* Special non-standard "Histogram" that captures the avg, min and max of values
*/
export declare class AvgMinMax<Labels extends LabelsGeneric> implements IAvgMinMax<Labels> {
private readonly sum;
private readonly avg;
private readonly min;
private readonly max;
private getValuesFn;
constructor(configuration: GaugeConfiguration<LabelKeys<Labels>>);
addGetValuesFn(getValuesFn: GetValuesFn): void;
set(values: number[]): void;
set(labels: Labels, values: number[]): void;
private onCollect;
}
export {};
//# sourceMappingURL=avgMinMax.d.ts.map