@vtex/api
Version:
VTEX I/O API client
17 lines (16 loc) • 516 B
TypeScript
import HttpAgent from 'agentkeepalive';
export declare class HttpAgentSingleton {
static getHttpAgent(): HttpAgent;
static httpAgentStats(): {
freeSockets: number;
pendingRequests: number;
sockets: number;
};
/**
* Update HTTP agent statistics as diagnostics metrics (gauges).
* This method should be called periodically to export current HTTP agent state.
*/
static updateHttpAgentMetrics(): void;
private static httpAgent;
private static count;
}