cloudflare
Version:
The official TypeScript library for the Cloudflare API
23 lines • 909 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../../resource.mjs";
import * as PercentilesAPI from "./percentiles.mjs";
import { Percentiles } from "./percentiles.mjs";
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);
}
}
HTTPTests.Percentiles = Percentiles;
//# sourceMappingURL=http-tests.mjs.map