"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Debug = void 0;
const utils_js_1 = require("./utils.cjs");
/**
 * Debug utilities for OpenMeter
 */
class Debug {
    client;
    constructor(client) {
        this.client = client;
    }
    /**
     * Get event metrics
     * @description Returns debug metrics (in OpenMetrics format) like the number of ingested events since mindnight UTC.
     * @param options - The request options
     * @returns The debug metrics
     */
    async getMetrics(options) {
        const resp = await this.client.GET('/api/v1/debug/metrics', {
            ...options,
        });
        return (0, utils_js_1.transformResponse)(resp);
    }
}
exports.Debug = Debug;
//# sourceMappingURL=debug.cjs.map