cloudflare
Version:
The official TypeScript library for the Cloudflare API
84 lines • 4.35 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../core/resource.mjs";
export var BaseSummary = /* @__PURE__ */ (() => {
class BaseSummary extends APIResource {
/**
* Retrieves the distribution of bot-generated HTTP requests to genuine human
* traffic, as classified by Cloudflare. Visit
* https://developers.cloudflare.com/radar/concepts/bot-classes/ for more
* information.
*
* @deprecated Use [Radar HTTP Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/summary_v2/) instead.
*/
botClass(query = {}, options) {
return this._client.get('/radar/http/summary/bot_class', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of HTTP requests generated by mobile, desktop, and
* other types of devices.
*
* @deprecated Use [Radar HTTP Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/summary_v2/) instead.
*/
deviceType(query = {}, options) {
return this._client.get('/radar/http/summary/device_type', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of HTTP requests by HTTP protocol (HTTP vs. HTTPS).
*
* @deprecated Use [Radar HTTP Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/summary_v2/) instead.
*/
httpProtocol(query = {}, options) {
return this._client.get('/radar/http/summary/http_protocol', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of HTTP requests by HTTP version.
*
* @deprecated Use [Radar HTTP Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/summary_v2/) instead.
*/
httpVersion(query = {}, options) {
return this._client.get('/radar/http/summary/http_version', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of HTTP requests by IP version.
*
* @deprecated Use [Radar HTTP Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/summary_v2/) instead.
*/
ipVersion(query = {}, options) {
return this._client.get('/radar/http/summary/ip_version', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of HTTP requests by operating system (Windows, macOS,
* Android, iOS, and others).
*
* @deprecated Use [Radar HTTP Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/summary_v2/) instead.
*/
os(query = {}, options) {
return this._client.get('/radar/http/summary/os', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of HTTP requests by post-quantum support.
*
* @deprecated Use [Radar HTTP Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/summary_v2/) instead.
*/
postQuantum(query = {}, options) {
return this._client.get('/radar/http/summary/post_quantum', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of HTTP requests by TLS version.
*
* @deprecated Use [Radar HTTP Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/http/methods/summary_v2/) instead.
*/
tlsVersion(query = {}, options) {
return this._client.get('/radar/http/summary/tls_version', { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
BaseSummary._key = Object.freeze([
'radar',
'http',
'summary',
]);
return BaseSummary;
})();
export class Summary extends BaseSummary {
}
//# sourceMappingURL=summary.mjs.map