UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

15 lines 582 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../../resource.mjs"; export class Summaries extends APIResource { /** * Retrieves a list of summarised aggregate metrics over a given time period. */ get(params, options) { const { zone_id, ...query } = params; return this._client.get(`/zones/${zone_id}/spectrum/analytics/events/summary`, { query, ...options, })._thenUnwrap((obj) => obj.result); } } //# sourceMappingURL=summaries.mjs.map