trojanhorse-js
Version:
A comprehensive JavaScript library for fetching, managing, and analyzing global threat intelligence from multiple open-source feeds and security news sources. Unlike its mythological namesake, this Trojan protects your digital fortress.
26 lines • 628 B
TypeScript
export interface FeedMetrics {
successfulRequests: number;
failedRequests: number;
averageResponseTime: number;
lastErrorTime?: Date;
rateLimitHits: number;
}
export interface FeedHealthStatus {
healthy: boolean;
lastCheck: Date;
responseTime: number;
errorRate: number;
uptime: number;
}
export interface FeedParser<T = any> {
parse(data: string): T[];
validate(data: T): boolean;
normalize(data: T): any;
}
export interface FeedSchedule {
interval: number;
maxRetries: number;
backoffMultiplier: number;
jitter: boolean;
}
//# sourceMappingURL=feeds.d.ts.map