signalk-server
Version:
An implementation of a [Signal K](http://signalk.org) server for boats.
26 lines • 852 B
TypeScript
import { EventEmitter } from 'node:events';
export declare const CONNECTION_WRITE_EVENT_NAME = "connectionwrite";
export interface ConnectionWriteEvent {
providerId: string;
count?: number;
}
declare class ProviderStats {
writeRate: number;
writeCount: number;
lastIntervalWriteCount: number;
deltaRate: number;
deltaCount: number;
lastIntervalDeltaCount: number;
constructor();
}
export interface WithProviderStatistics {
deltaCount: number;
lastIntervalDeltaCount: number;
providerStatistics: {
[providerId: string]: ProviderStats;
};
}
export declare function startDeltaStatistics(app: EventEmitter & WithProviderStatistics): NodeJS.Timeout;
export declare function incDeltaStatistics(app: WithProviderStatistics, providerId: any): void;
export {};
//# sourceMappingURL=deltastats.d.ts.map