UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

26 lines 1.03 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from 'cloudflare/resource'; import { isRequestOptions } from 'cloudflare/core'; import * as TopAPI from 'cloudflare/resources/radar/quality/speed/top'; export class Speed extends APIResource { constructor() { super(...arguments); this.top = new TopAPI.Top(this._client); } histogram(query = {}, options) { if (isRequestOptions(query)) { return this.histogram({}, query); } return this._client.get('/radar/quality/speed/histogram', { query, ...options })._thenUnwrap((obj) => obj.result); } summary(query = {}, options) { if (isRequestOptions(query)) { return this.summary({}, query); } return this._client.get('/radar/quality/speed/summary', { query, ...options })._thenUnwrap((obj) => obj.result); } } (function (Speed) { Speed.Top = TopAPI.Top; })(Speed || (Speed = {})); //# sourceMappingURL=speed.mjs.map