cloudflare
Version:
The official TypeScript library for the Cloudflare API
98 lines • 4.88 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 7 attacks by HTTP method over time.
*
* @deprecated Use [Radar Attacks Layer 7 Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer7/methods/timeseries_groups_v2/) instead.
*/
httpMethod(query = {}, options) {
return this._client.get('/radar/attacks/layer7/timeseries_groups/http_method', {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of layer 7 attacks by HTTP version over time.
*
* @deprecated Use [Radar Attacks Layer 7 Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer7/methods/timeseries_groups_v2/) instead.
*/
httpVersion(query = {}, options) {
return this._client.get('/radar/attacks/layer7/timeseries_groups/http_version', {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of layer 7 attacks by targeted industry over time.
*
* @deprecated Use [Radar Attacks Layer 7 Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer7/methods/timeseries_groups_v2/) instead.
*/
industry(query = {}, options) {
return this._client.get('/radar/attacks/layer7/timeseries_groups/industry', {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of layer 7 attacks by IP version used over time.
*
* @deprecated Use [Radar Attacks Layer 7 Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer7/methods/timeseries_groups_v2/) instead.
*/
ipVersion(query = {}, options) {
return this._client.get('/radar/attacks/layer7/timeseries_groups/ip_version', {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of layer 7 attacks by managed rules over time.
*
* @deprecated Use [Radar Attacks Layer 7 Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer7/methods/timeseries_groups_v2/) instead.
*/
managedRules(query = {}, options) {
return this._client.get('/radar/attacks/layer7/timeseries_groups/managed_rules', {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of layer 7 attacks by mitigation product over time.
*
* @deprecated Use [Radar Attacks Layer 7 Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer7/methods/timeseries_groups_v2/) instead.
*/
mitigationProduct(query = {}, options) {
return this._client.get('/radar/attacks/layer7/timeseries_groups/mitigation_product', {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of layer 7 attacks by targeted vertical over time.
*
* @deprecated Use [Radar Attacks Layer 7 Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/attacks/subresources/layer7/methods/timeseries_groups_v2/) instead.
*/
vertical(query = {}, options) {
return this._client.get('/radar/attacks/layer7/timeseries_groups/vertical', {
query,
...options,
})._thenUnwrap((obj) => obj.result);
}
}
BaseTimeseriesGroups._key = Object.freeze([
'radar',
'attacks',
'layer7',
'timeseriesGroups',
]);
return BaseTimeseriesGroups;
})();
exports.BaseTimeseriesGroups = BaseTimeseriesGroups;
class TimeseriesGroups extends BaseTimeseriesGroups {
}
exports.TimeseriesGroups = TimeseriesGroups;
//# sourceMappingURL=timeseries-groups.js.map