UNPKG

@lodestar/api

Version:

A Typescript REST client for the Ethereum Consensus API

10 lines (8 loc) 366 B
import {Gauge, GaugeExtra, Histogram} from "@lodestar/utils"; export type Metrics = { requestTime: Histogram<{routeId: string}>; streamTime: Histogram<{routeId: string}>; requestErrors: Gauge<{routeId: string; baseUrl: string}>; requestToFallbacks: Gauge<{routeId: string; baseUrl: string}>; urlsScore: GaugeExtra<{urlIndex: number; baseUrl: string}>; };