UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

43 lines • 1.41 kB
"use strict"; 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 network traffic (NetFlows). * * @example * ```ts * const response = await client.radar.netFlows.top.ases(); * ``` */ ases(query = {}, options) { return this._client.get('/radar/netflows/top/ases', { query, ...options })._thenUnwrap((obj) => obj.result); } /** * Retrieves the top locations by network traffic (NetFlows). * * @example * ```ts * const response = * await client.radar.netFlows.top.locations(); * ``` */ locations(query = {}, options) { return this._client.get('/radar/netflows/top/locations', { query, ...options })._thenUnwrap((obj) => obj.result); } } BaseTop._key = Object.freeze([ 'radar', 'netFlows', 'top', ]); return BaseTop; })(); exports.BaseTop = BaseTop; class Top extends BaseTop { } exports.Top = Top; //# sourceMappingURL=top.js.map