Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Latest commit

 

History

History
22 lines (15 loc) · 2.09 KB

File metadata and controls

22 lines (15 loc) · 2.09 KB

Home > fastify-metrics > IRouteLabelsOverrides

IRouteLabelsOverrides interface

Label Overrides

Signature:

export interface IRouteLabelsOverrides

Properties

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