Skip to main content

Base interface for all metrics.

Properties (2)

Property Type Default Required Description
settings⚓︎ MetricSettings x

Settings used to create the metric.

started⚓︎ boolean x

Whether the metric is started.

2 Methods

start()⚓︎

() => Promise<void>

Starts the metric, allowing it to publish values.

stop()⚓︎

() => Promise<void>

Stops the metric, meaning it can no long publish values.