import { Counter } from "./types"; import { IInfoData, IInfoDescription, IInfoSection } from "./types"; interface IMongoInfoData extends IInfoData { nObserveHandles: number; oplogObserveHandles: Counter; oplogObserveHandlesCount: number; pollingObserveHandles: Counter; pollingObserveHandlesCount: number; } interface IObserverHandle { _observeDriver?: any; _multiplexer: any; } /** * Provides the MongoDB-related information: observers and observed collections. */ declare class MongoInfo implements IInfoSection { protected info: IMongoInfoData; protected muxes: any; /** * Constructor. * * @param {Object} mongoInternals * The Meteor MongoInternals service. * * @constructor */ constructor(mongoInternals: any); /** * Describe the metrics provided by this service. * * @return {{ * nObserveHandles: {type: string, label: string}, * oplogObserveHandles: {type: string, label: string}, * oplogObserveHandlesCount: {type: string, label: string}, * pollingObserveHandles: {type: string, label: string}, * pollingObserveHandlesCount: {type: string, label: string} * }} * The description. */ getDescription(): IInfoDescription; /** * Get MongoDB-level information. * * @return {*} * - nObserveHandles: the total count of observe handles * - oplogObserveHandles hash: count of oplog observers by collection * - oplogObserveHandlesCount: the total count of oplog observers * - pollingObserveHandles hash: count of polling observers by collection * - pollingObserveHandlesCount: the total count of polling observers. */ getInfo(): IMongoInfoData; /** * Build information about observed collections into this.info. * * @param {String} type * The observer type. * @param {String} collectionName * The observed collection name. * * @return {void} * * @private */ protected buildCollectionInfo(type: "pollingObserveHandles" | "oplogObserveHandles", collectionName: string): void; /** * Build information about observed collections into this.info. * * @param {Object} handle * The private structure held by Meteor for an observer. * * @return {void} * * @private */ protected buildHandleInfo(handle: IObserverHandle): void; private defaultInfo; } export { MongoInfo, };