cloudflare
Version:
The official TypeScript library for the Cloudflare API
40 lines • 1.57 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../core/resource.mjs";
export var BaseTCPResetsTimeouts = /* @__PURE__ */ (() => {
class BaseTCPResetsTimeouts extends 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;
})();
export class TCPResetsTimeouts extends BaseTCPResetsTimeouts {
}
//# sourceMappingURL=tcp-resets-timeouts.mjs.map