cloudflare
Version:
The official TypeScript library for the Cloudflare API
72 lines • 3.9 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../../core/resource.mjs";
export var BaseSummary = /* @__PURE__ */ (() => {
class BaseSummary extends APIResource {
/**
* Retrieves the distribution of layer 3 attacks by bitrate.
*
* @deprecated Use [Radar Attacks Layer 3 Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer3/methods/summary_v2/) instead.
*/
bitrate(query = {}, options) {
return this._client.get('/radar/attacks/layer3/summary/bitrate', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of layer 3 attacks by duration.
*
* @deprecated Use [Radar Attacks Layer 3 Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer3/methods/summary_v2/) instead.
*/
duration(query = {}, options) {
return this._client.get('/radar/attacks/layer3/summary/duration', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of layer 3 attacks by targeted industry.
*
* @deprecated Use [Radar Attacks Layer 3 Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer3/methods/summary_v2/) instead.
*/
industry(query = {}, options) {
return this._client.get('/radar/attacks/layer3/summary/industry', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of layer 3 attacks by IP version.
*
* @deprecated Use [Radar Attacks Layer 3 Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer3/methods/summary_v2/) instead.
*/
ipVersion(query = {}, options) {
return this._client.get('/radar/attacks/layer3/summary/ip_version', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of layer 3 attacks by protocol.
*
* @deprecated Use [Radar Attacks Layer 3 Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer3/methods/summary_v2/) instead.
*/
protocol(query = {}, options) {
return this._client.get('/radar/attacks/layer3/summary/protocol', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of layer 3 attacks by vector.
*
* @deprecated Use [Radar Attacks Layer 3 Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer3/methods/summary_v2/) instead.
*/
vector(query = {}, options) {
return this._client.get('/radar/attacks/layer3/summary/vector', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of layer 3 attacks by targeted vertical.
*
* @deprecated Use [Radar Attacks Layer 3 Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer3/methods/summary_v2/) instead.
*/
vertical(query = {}, options) {
return this._client.get('/radar/attacks/layer3/summary/vertical', { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
BaseSummary._key = Object.freeze([
'radar',
'attacks',
'layer3',
'summary',
]);
return BaseSummary;
})();
export class Summary extends BaseSummary {
}
//# sourceMappingURL=summary.mjs.map