cloudflare
Version:
The official TypeScript library for the Cloudflare API
77 lines • 4.08 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Summary = exports.BaseSummary = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../../../core/resource.js");
var BaseSummary = /* @__PURE__ */ (() => {
class BaseSummary extends resource_1.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;
})();
exports.BaseSummary = BaseSummary;
class Summary extends BaseSummary {
}
exports.Summary = Summary;
//# sourceMappingURL=summary.js.map