MetricsConfig class final

METRICS_* configuration.

Implemented types

Constructors

MetricsConfig({bool enabled = false, String path = '/metrics', String? token})
Metrics settings; usually from .env (METRICS_*).
const
MetricsConfig.fromEnv(Env env)
The settings in METRICS_*.
factory

Properties

enabled → bool
Whether /metrics is served.
final
hashCode → int
The hash code for this object.
no setterinherited
key → String
Top-level key of the section, e.g. app or database.
no setteroverride
path → String
The path it is served at.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
token → String?
When set, /metrics requires Authorization: Bearer <token>.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
Plain-map projection used for dot-notation access.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited