UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

43 lines • 1.74 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../../core/resource.mjs"; import * as BytimesAPI from "./bytimes.mjs"; import { BaseBytimes, Bytimes } from "./bytimes.mjs"; import { path } from "../../../../internal/utils/path.mjs"; export var BaseReports = /* @__PURE__ */ (() => { class BaseReports extends APIResource { /** * Retrieves a list of summarised aggregate metrics over a given time period. * * See * [Analytics API properties](https://developers.cloudflare.com/dns/reference/analytics-api-properties/) * for detailed information about the available query parameters. * * @deprecated This endpoint is deprecated. See [the API deprecation notice](https://developers.cloudflare.com/fundamentals/api/reference/deprecations/#2025-12-09). */ get(dnsFirewallID, params, options) { const { account_id, ...query } = params; return this._client.get(path `/accounts/${account_id}/dns_firewall/${dnsFirewallID}/dns_analytics/report`, { query, ...options, })._thenUnwrap((obj) => obj.result); } } BaseReports._key = Object.freeze([ 'dnsFirewall', 'analytics', 'reports', ]); return BaseReports; })(); export var Reports = /* @__PURE__ */ (() => { class Reports extends BaseReports { constructor() { super(...arguments); this.bytimes = new BytimesAPI.Bytimes(this._client); } } Reports.Bytimes = Bytimes; Reports.BaseBytimes = BaseBytimes; return Reports; })(); //# sourceMappingURL=reports.mjs.map