traffic-monitor-mqtt
Version:
Zentrales Traffic Monitoring via MQTT für Node.js Anwendungen
21 lines (20 loc) • 712 B
TypeScript
import { MongoClient } from 'mongodb';
import { EventBatcher } from '../event-batcher';
import { ClientConfig } from '../types';
export declare class MongoDBMonitor {
private readonly eventBatcher;
private readonly clientConfig;
private readonly methodCache;
private readonly eventDetailsCache;
constructor(eventBatcher: EventBatcher, clientConfig: ClientConfig);
private getCachedMethod;
wrapMongoClient(client: MongoClient): MongoClient;
private wrapDb;
private createTrafficEvent;
private calculatePayloadSize;
private getChangeStreamEventDetails;
private wrapCollection;
private wrapCursor;
private wrapChangeStream;
private getOperationDetails;
}