UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

93 lines • 4.57 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from "../../../../core/resource.mjs"; export var BaseTimeseriesGroups = /* @__PURE__ */ (() => { class BaseTimeseriesGroups extends APIResource { /** * Retrieves the distribution of layer 3 attacks by bitrate over time. * * @deprecated Use [Radar Attacks Layer 3 Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer3/methods/timeseries_groups_v2/) instead. */ bitrate(query = {}, options) { return this._client.get('/radar/attacks/layer3/timeseries_groups/bitrate', { query, ...options, })._thenUnwrap((obj) => obj.result); } /** * Retrieves the distribution of layer 3 attacks by duration over time. * * @deprecated Use [Radar Attacks Layer 3 Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer3/methods/timeseries_groups_v2/) instead. */ duration(query = {}, options) { return this._client.get('/radar/attacks/layer3/timeseries_groups/duration', { query, ...options, })._thenUnwrap((obj) => obj.result); } /** * Retrieves the distribution of layer 3 attacks by targeted industry over time. * * @deprecated Use [Radar Attacks Layer 3 Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer3/methods/timeseries_groups_v2/) instead. */ industry(query = {}, options) { return this._client.get('/radar/attacks/layer3/timeseries_groups/industry', { query, ...options, })._thenUnwrap((obj) => obj.result); } /** * Retrieves the distribution of layer 3 attacks by IP version over time. * * @deprecated Use [Radar Attacks Layer 3 Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer3/methods/timeseries_groups_v2/) instead. */ ipVersion(query = {}, options) { return this._client.get('/radar/attacks/layer3/timeseries_groups/ip_version', { query, ...options, })._thenUnwrap((obj) => obj.result); } /** * Retrieves the distribution of layer 3 attacks by protocol over time. * * @deprecated Use [Radar Attacks Layer 3 Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer3/methods/timeseries_groups_v2/) instead. */ protocol(query = {}, options) { return this._client.get('/radar/attacks/layer3/timeseries_groups/protocol', { query, ...options, })._thenUnwrap((obj) => obj.result); } /** * Retrieves the distribution of layer 3 attacks by vector over time. * * @deprecated Use [Radar Attacks Layer 3 Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer3/methods/timeseries_groups_v2/) instead. */ vector(query = {}, options) { return this._client.get('/radar/attacks/layer3/timeseries_groups/vector', { query, ...options, })._thenUnwrap((obj) => obj.result); } /** * Retrieves the distribution of layer 3 attacks by targeted vertical over time. * * @deprecated Use [Radar Attacks Layer 3 Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer3/methods/timeseries_groups_v2/) instead. */ vertical(query = {}, options) { return this._client.get('/radar/attacks/layer3/timeseries_groups/vertical', { query, ...options, })._thenUnwrap((obj) => obj.result); } } BaseTimeseriesGroups._key = Object.freeze([ 'radar', 'attacks', 'layer3', 'timeseriesGroups', ]); return BaseTimeseriesGroups; })(); export class TimeseriesGroups extends BaseTimeseriesGroups { } //# sourceMappingURL=timeseries-groups.mjs.map