UNPKG

@mdf.js/service-registry

Version:

MMS - API - Service Registry

32 lines 1.21 kB
/** * Copyright 2024 Mytra Control S.L. All rights reserved. * * Use of this source code is governed by an MIT-style license that can be found in the LICENSE file * or at https://opensource.org/licenses/MIT. */ import { NextFunction, Request, Response } from 'express'; import { Service } from './metrics.service'; /** Controller class */ export declare class Controller { private readonly service; private readonly isCluster; /** * Create an instance of Controller class * @param service - service instance * @param isCluster - indicates that the instance of this metrics service is running in a cluster */ constructor(service: Service, isCluster: boolean); /** * Return all the actual metrics of this artifact * @param request - HTTP request express object * @param response - HTTP response express object * @param next - Next express middleware function */ metrics(request: Request, response: Response, next: NextFunction): void; /** * Check if the request is acceptable due to the format * @param request - HTTP request express object */ private isAcceptable; } //# sourceMappingURL=metrics.controller.d.ts.map