// SPDX-License-Identifier: Apache-2.0
import { Metrics } from './metrics.js';
export class ClusterMetrics extends Metrics {
    context;
    namespace;
    podMetrics;
    postgresPodName;
    constructor(context, namespace, podMetrics, postgresPodName, cpuInMillicores, memoryInMebibytes) {
        super(cpuInMillicores, memoryInMebibytes);
        this.context = context;
        this.namespace = namespace;
        this.podMetrics = podMetrics;
        this.postgresPodName = postgresPodName;
    }
    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