MCPcopy
hub / github.com/prometheus/client_js / MetricObject

Interface MetricObject

index.d.ts:197–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195type CollectFunction<T> = (this: T) => void | Promise<void>;
196
197interface MetricObject {
198 name: string;
199 help: string;
200 type: MetricType;
201 aggregator: Aggregator;
202 collect: CollectFunction<any>;
203}
204
205interface MetricObjectWithValues<T extends MetricValue<string>>
206 extends MetricObject {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected