method IMetricsService.get
IMetricsService.get(name: string): IMetric | undefined

Gets a metric by name.

Parameters

name: string

Metric name

Return Type

IMetric | undefined

The metric, or undefined if not found

Usage

import { type IMetricsService } from "common/src/index.ts";