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