cloudflare
Version:
The official TypeScript library for the Cloudflare API
33 lines • 1.32 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(params, options) {
const { zone_id, ...query } = params;
return this._client.get(path `/zones/${zone_id}/dns_analytics/report/bytime`, {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
}
BaseBytimes._key = Object.freeze([
'dns',
'analytics',
'reports',
'bytimes',
]);
return BaseBytimes;
})();
export class Bytimes extends BaseBytimes {
}
//# sourceMappingURL=bytimes.mjs.map