@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
31 lines • 1.17 kB
JavaScript
// SPDX-License-Identifier: Apache-2.0
import { Metrics } from './metrics.js';
export class ClusterMetrics extends Metrics {
context;
namespace;
podMetrics;
postgresPodName;
postgresNamespace;
constructor(context, namespace, podMetrics, postgresPodName, postgresNamespace, cpuInMillicores, memoryInMebibytes) {
super(cpuInMillicores, memoryInMebibytes);
this.context = context;
this.namespace = namespace;
this.podMetrics = podMetrics;
this.postgresPodName = postgresPodName;
this.postgresNamespace = postgresNamespace;
}
toString() {
let outputString = `{"context": "${this.context}", ` +
`"cpuInMillicores": ${this.cpuInMillicores}, ` +
`"memoryInMebibytes": ${this.memoryInMebibytes}, ` +
'"podMetrics": [';
for (let index = 0; index < this.podMetrics.length; index++) {
outputString += this.podMetrics[index].toString();
if (index + 1 < this.podMetrics.length) {
outputString += ', ';
}
}
return `${outputString}]}`;
}
}
//# sourceMappingURL=cluster-metrics.js.map