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