cloudflare
Version:
The official TypeScript library for the Cloudflare API
93 lines • 4.65 kB
JavaScript
// 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 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;
})();
export class TimeseriesGroups extends BaseTimeseriesGroups {
}
//# sourceMappingURL=timeseries-groups.mjs.map