// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflaredev/resource';
import * as PercentilesAPI from 'cloudflaredev/resources/zero-trust/dex/http-tests/percentiles';
export class HTTPTests extends APIResource {
    constructor() {
        super(...arguments);
        this.percentiles = new PercentilesAPI.Percentiles(this._client);
    }
    /**
     * Get test details and aggregate performance metrics for an http test for a given
     * time period between 1 hour and 7 days.
     */
    get(testId, params, options) {
        const { account_id, ...query } = params;
        return this._client.get(`/accounts/${account_id}/dex/http-tests/${testId}`, {
            query,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
}
(function (HTTPTests) {
    HTTPTests.Percentiles = PercentilesAPI.Percentiles;
})(HTTPTests || (HTTPTests = {}));
//# sourceMappingURL=http-tests.mjs.map