UNPKG

@mdf.js/service-registry

Version:

MMS - API - Service Registry

30 lines 850 B
"use strict"; /** * 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Model = void 0; /** Model class */ class Model { /** * Create an instance of model class * @param aggregator - registry instance */ constructor(aggregator) { this.aggregator = aggregator; } /** Return all the actual metrics of this artifact */ async metrics(jsonFormat) { if (jsonFormat) { return this.aggregator.metricsJSON(); } else { return this.aggregator.metricsText(); } } } exports.Model = Model; //# sourceMappingURL=metrics.model.js.map