Router class

Constructors

Accessors

Constructors

  • Create a new instance of the Router class

    Parameters

    • aggregator: Aggregator

      Aggregator used by this component

    • isCluster: boolean = false

      indicates that the instance of this metrics service is running in a cluster

    • path: string = PREFIX_PATH

      prefix path for all the routes

    Returns Router

Accessors

  • get router(): Router
  • Express router for health REST API component

    Returns Router