UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

22 lines 853 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../resource.mjs"; export class Events extends APIResource { /** * List Events */ list(connectorId, params, options) { const { account_id, ...query } = params; return this._client.get(`/accounts/${account_id}/magic/connectors/${connectorId}/telemetry/events`, { query, ...options, })._thenUnwrap((obj) => obj.result); } /** * Get Event */ get(connectorId, eventT, eventN, params, options) { const { account_id } = params; return this._client.get(`/accounts/${account_id}/magic/connectors/${connectorId}/telemetry/events/${eventT}.${eventN}`, options)._thenUnwrap((obj) => obj.result); } } //# sourceMappingURL=events.mjs.map