UNPKG

@iota-big3/sdk-gateway

Version:

Universal API Gateway with protocol translation, intelligent routing, rate limiting, health checking, and caching

57 lines 1.62 kB
/** * @iota-big3/sdk-gateway * Minimal Analytics Replacement - Temporary implementation to replace corrupted sdk-analytics dependency * This is a minimal viable replacement for SimpleTimeSeriesStore to get sdk-gateway working */ export interface TimeSeriesDataPoint { timestamp: number; value: number; tags?: Record<string, string>; } export interface TimeSeriesQuery { metric: string; startTime?: number; endTime?: number; tags?: Record<string, string>; } /** * Minimal implementation of SimpleTimeSeriesStore * Replaces the corrupted @iota-big3/sdk-analytics dependency temporarily */ export declare class SimpleTimeSeriesStore { private data; constructor(); /** * Record a metric data point */ record(metric: string, value: number, tags?: Record<string, string>): void; /** * Query metric data */ query(query: TimeSeriesQuery): TimeSeriesDataPoint[]; /** * Get latest value for a metric */ getLatest(metric: string): TimeSeriesDataPoint | null; /** * Get average value for a metric over time range */ getAverage(metric: string, startTime?: number, endTime?: number): number; /** * Clear all data */ clear(): void; /** * Get all metric names */ getMetrics(): string[]; /** * Get rate of change for a metric */ getRate(metric: string, windowMs?: number): number; /** * Detect anomalies in metric data */ detectAnomalies(metric: string, threshold?: number): TimeSeriesDataPoint[]; } //# sourceMappingURL=minimal-analytics.d.ts.map