UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

98 lines • 5.58 kB
// 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 HTTP requests classified as automated or human * over time. Visit https://developers.cloudflare.com/radar/concepts/bot-classes/ * for more information. * * @deprecated Use [Radar HTTP Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/timeseries_groups_v2/) instead. */ botClass(query = {}, options) { return this._client.get('/radar/http/timeseries_groups/bot_class', { query, ...options })._thenUnwrap((obj) => obj.result); } /** * Retrieves the distribution of HTTP requests by user agent over time. * * @deprecated Use [Radar HTTP Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/timeseries_groups_v2/) instead. */ browser(query = {}, options) { return this._client.get('/radar/http/timeseries_groups/browser', { query, ...options })._thenUnwrap((obj) => obj.result); } /** * Retrieves the distribution of HTTP requests by user agent family over time. * * @deprecated Use [Radar HTTP Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/timeseries_groups_v2/) instead. */ browserFamily(query = {}, options) { return this._client.get('/radar/http/timeseries_groups/browser_family', { query, ...options })._thenUnwrap((obj) => obj.result); } /** * Retrieves the distribution of HTTP requests by device type over time. * * @deprecated Use [Radar HTTP Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/timeseries_groups_v2/) instead. */ deviceType(query = {}, options) { return this._client.get('/radar/http/timeseries_groups/device_type', { query, ...options })._thenUnwrap((obj) => obj.result); } /** * Retrieves the distribution of HTTP requests by HTTP protocol (HTTP vs. HTTPS) * over time. * * @deprecated Use [Radar HTTP Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/timeseries_groups_v2/) instead. */ httpProtocol(query = {}, options) { return this._client.get('/radar/http/timeseries_groups/http_protocol', { query, ...options })._thenUnwrap((obj) => obj.result); } /** * Retrieves the distribution of HTTP requests by HTTP version over time. * * @deprecated Use [Radar HTTP Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/timeseries_groups_v2/) instead. */ httpVersion(query = {}, options) { return this._client.get('/radar/http/timeseries_groups/http_version', { query, ...options })._thenUnwrap((obj) => obj.result); } /** * Retrieves the distribution of HTTP requests by IP version over time. * * @deprecated Use [Radar HTTP Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/timeseries_groups_v2/) instead. */ ipVersion(query = {}, options) { return this._client.get('/radar/http/timeseries_groups/ip_version', { query, ...options })._thenUnwrap((obj) => obj.result); } /** * Retrieves the distribution of HTTP requests by operating system over time. * * @deprecated Use [Radar HTTP Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/timeseries_groups_v2/) instead. */ os(query = {}, options) { return this._client.get('/radar/http/timeseries_groups/os', { query, ...options })._thenUnwrap((obj) => obj.result); } /** * Retrieves the distribution of HTTP requests by post-quantum support over time. * * @deprecated Use [Radar HTTP Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/timeseries_groups_v2/) instead. */ postQuantum(query = {}, options) { return this._client.get('/radar/http/timeseries_groups/post_quantum', { query, ...options })._thenUnwrap((obj) => obj.result); } /** * Retrieves the distribution of HTTP requests by TLS version over time. * * @deprecated Use [Radar HTTP Timeseries Groups By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/timeseries_groups_v2/) instead. */ tlsVersion(query = {}, options) { return this._client.get('/radar/http/timeseries_groups/tls_version', { query, ...options })._thenUnwrap((obj) => obj.result); } } BaseTimeseriesGroups._key = Object.freeze([ 'radar', 'http', 'timeseriesGroups', ]); return BaseTimeseriesGroups; })(); export class TimeseriesGroups extends BaseTimeseriesGroups { } //# sourceMappingURL=timeseries-groups.mjs.map