method MetricsService.prototype.get
MetricsService.prototype.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 { MetricsService } from "metrics-plugin/src/index.ts";