autosnippet
Version:
Extract code patterns into a knowledge base for AI coding assistants
19 lines (18 loc) • 561 B
TypeScript
/**
* SignalAggregator — 滑窗统计 + 异常检测
*
* 订阅可聚合的事实型信号,周期性写入 Report(统计)并在异常时发射 Signal。
*
* @module infrastructure/signal/SignalAggregator
*/
import type { ReportStore } from '../report/ReportStore.js';
import type { SignalBus } from './SignalBus.js';
export declare class SignalAggregator {
#private;
constructor(signalBus: SignalBus, reportStore: ReportStore, opts?: {
intervalMs?: number;
windowMs?: number;
});
start(): void;
stop(): void;
}