cloudflare
Version:
The official TypeScript library for the Cloudflare API
103 lines • 5.22 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 DNS queries by cache status.
*
* @deprecated Use [Radar DNS Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/dns/methods/summary_v2/) instead.
*/
cacheHit(query = {}, options) {
return this._client.get('/radar/dns/summary/cache_hit', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of DNS responses by DNSSEC (DNS Security Extensions)
* support.
*
* @deprecated Use [Radar DNS Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/dns/methods/summary_v2/) instead.
*/
dnssec(query = {}, options) {
return this._client.get('/radar/dns/summary/dnssec', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of DNS queries by DNSSEC (DNS Security Extensions)
* client awareness.
*
* @deprecated Use [Radar DNS Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/dns/methods/summary_v2/) instead.
*/
dnssecAware(query = {}, options) {
return this._client.get('/radar/dns/summary/dnssec_aware', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of DNSSEC-validated answers by end-to-end security
* status.
*
* @deprecated Use [Radar DNS Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/dns/methods/summary_v2/) instead.
*/
dnssecE2E(query = {}, options) {
return this._client.get('/radar/dns/summary/dnssec_e2e', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of DNS queries by IP version.
*
* @deprecated Use [Radar DNS Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/dns/methods/summary_v2/) instead.
*/
ipVersion(query = {}, options) {
return this._client.get('/radar/dns/summary/ip_version', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of DNS queries by matching answers.
*
* @deprecated Use [Radar DNS Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/dns/methods/summary_v2/) instead.
*/
matchingAnswer(query = {}, options) {
return this._client.get('/radar/dns/summary/matching_answer', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of DNS queries by DNS transport protocol.
*
* @deprecated Use [Radar DNS Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/dns/methods/summary_v2/) instead.
*/
protocol(query = {}, options) {
return this._client.get('/radar/dns/summary/protocol', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of DNS queries by type.
*
* @deprecated Use [Radar DNS Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/dns/methods/summary_v2/) instead.
*/
queryType(query = {}, options) {
return this._client.get('/radar/dns/summary/query_type', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of DNS queries by response code.
*
* @deprecated Use [Radar DNS Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/dns/methods/summary_v2/) instead.
*/
responseCode(query = {}, options) {
return this._client.get('/radar/dns/summary/response_code', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of DNS queries by minimum response TTL.
*
* @deprecated Use [Radar DNS Summary By Dimension](https://developers.cloudflare.com/api/resources/radar/subresources/dns/methods/summary_v2/) instead.
*/
responseTTL(query = {}, options) {
return this._client.get('/radar/dns/summary/response_ttl', { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
BaseSummary._key = Object.freeze([
'radar',
'dns',
'summary',
]);
return BaseSummary;
})();
exports.BaseSummary = BaseSummary;
class Summary extends BaseSummary {
}
exports.Summary = Summary;
//# sourceMappingURL=summary.js.map