cloudflare
Version:
The official TypeScript library for the Cloudflare API
30 lines • 1.34 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../../core/resource.mjs";
import { path } from "../../../../internal/utils/path.mjs";
export var BaseBytimes = /* @__PURE__ */ (() => {
class BaseBytimes extends APIResource {
/**
* Retrieves a list of aggregate metrics grouped by time interval.
*
* 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/bytime`, { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
BaseBytimes._key = Object.freeze([
'dnsFirewall',
'analytics',
'reports',
'bytimes',
]);
return BaseBytimes;
})();
export class Bytimes extends BaseBytimes {
}
//# sourceMappingURL=bytimes.mjs.map