// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
export class Bytimes extends APIResource {
    get(zone, query = {}, options) {
        if (isRequestOptions(query)) {
            return this.get(zone, {}, query);
        }
        return this._client.get(`/zones/${zone}/spectrum/analytics/events/bytime`, {
            query,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
}
(function (Bytimes) {
})(Bytimes || (Bytimes = {}));
//# sourceMappingURL=bytimes.mjs.map