cloudflare
Version:
The official TypeScript library for the Cloudflare API
45 lines • 1.81 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TCPResetsTimeouts = exports.BaseTCPResetsTimeouts = void 0;
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
const resource_1 = require("../../core/resource.js");
var BaseTCPResetsTimeouts = /* @__PURE__ */ (() => {
class BaseTCPResetsTimeouts extends resource_1.APIResource {
/**
* Retrieves the distribution of connection stage by TCP connections terminated
* within the first 10 packets by a reset or timeout.
*
* @example
* ```ts
* const response =
* await client.radar.tcpResetsTimeouts.summary();
* ```
*/
summary(query = {}, options) {
return this._client.get('/radar/tcp_resets_timeouts/summary', { query, ...options })._thenUnwrap((obj) => obj.result);
}
/**
* Retrieves the distribution of connection stage by TCP connections terminated
* within the first 10 packets by a reset or timeout over time.
*
* @example
* ```ts
* const response =
* await client.radar.tcpResetsTimeouts.timeseriesGroups();
* ```
*/
timeseriesGroups(query = {}, options) {
return this._client.get('/radar/tcp_resets_timeouts/timeseries_groups', { query, ...options })._thenUnwrap((obj) => obj.result);
}
}
BaseTCPResetsTimeouts._key = Object.freeze([
'radar',
'tcpResetsTimeouts',
]);
return BaseTCPResetsTimeouts;
})();
exports.BaseTCPResetsTimeouts = BaseTCPResetsTimeouts;
class TCPResetsTimeouts extends BaseTCPResetsTimeouts {
}
exports.TCPResetsTimeouts = TCPResetsTimeouts;
//# sourceMappingURL=tcp-resets-timeouts.js.map