Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MeasurementOptions

Optional configuration of a Measurement specified at the time of its creation.

Hierarchy

  • MeasurementOptions

Index

Properties

context?: string

A specific context of the application in which an activity was measured. Results in logs being emitted with a "[]" qualified at the head.

defaultLogLevel?: LogLevel

An optional logging level at which to emit the log message. The default value is LogLevel.INFO.

thresholdMillis?: number

Some measurements are measured against a threshold (in millis) that they should not exceed. If omitted, the implied threshold is unlimited time (no threshold).

see

Stopwatch.startAsync

see

{@link thresholdLogLevel}