cloudflare
Version:
The official TypeScript library for the Cloudflare API
47 lines • 1.63 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Top = exports.BaseTop = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../../../core/resource.js");
var BaseTop = /* @__PURE__ */ (() => {
class BaseTop extends resource_1.APIResource {
/**
* Retrieves the top autonomous systems by bandwidth, latency, jitter, or packet
* loss, from the previous 90 days of Cloudflare Speed Test data.
*
* @example
* ```ts
* const response =
* await client.radar.quality.speed.top.ases();
* ```
*/
ases(query = {}, options) {
return this._client.get('/radar/quality/speed/top/ases', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the top locations by bandwidth, latency, jitter, or packet loss, from
* the previous 90 days of Cloudflare Speed Test data.
*
* @example
* ```ts
* const response =
* await client.radar.quality.speed.top.locations();
* ```
*/
locations(query = {}, options) {
return this._client.get('/radar/quality/speed/top/locations', { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
BaseTop._key = Object.freeze([
'radar',
'quality',
'speed',
'top',
]);
return BaseTop;
})();
exports.BaseTop = BaseTop;
class Top extends BaseTop {
}
exports.Top = Top;
//# sourceMappingURL=top.js.map