Home > fastify-metrics > IRouteLabelsOverrides
Label Overrides
Signature:
export interface IRouteLabelsOverrides| Property | Modifiers | Type | Description |
|---|---|---|---|
| getRouteLabel? | (request: FastifyRequest) => string | (Optional) Function that will return route value for metrics label. By default will use: request.routeOptions.config.statsId ?? request.routeOptions.config.url |
|
| method? | string | (Optional) Method name | |
| route? | string | (Optional) Route name | |
| status? | string | (Optional) Status code |