This commit is contained in:
Boki 2025-06-23 22:32:51 -04:00
parent d7979500eb
commit ce5fa9da4a
25 changed files with 68 additions and 175 deletions

View file

@ -73,31 +73,6 @@ export interface DynamicPoolConfig {
evaluationInterval: number; // ms between checks
}
/**
* Health Status Types
*/
export type MongoDBHealthStatus = 'healthy' | 'degraded' | 'unhealthy';
export interface MongoDBHealthCheck {
status: MongoDBHealthStatus;
timestamp: Date;
latency: number;
connections: {
active: number;
available: number;
total: number;
};
errors?: string[];
}
export interface MongoDBMetrics {
operationsPerSecond: number;
averageLatency: number;
errorRate: number;
connectionPoolUtilization: number;
documentsProcessed: number;
}
/**
* Base Document Interface
*/

View file

@ -39,17 +39,6 @@ export interface QuestDBConnectionOptions {
*/
export type QuestDBHealthStatus = 'healthy' | 'degraded' | 'unhealthy';
export interface QuestDBHealthCheck {
status: QuestDBHealthStatus;
timestamp: Date;
latency: number;
protocols: {
http: boolean;
pg: boolean;
influx: boolean;
};
errors?: string[];
}
export interface QuestDBMetrics {
queriesPerSecond: number;
@ -77,7 +66,7 @@ export type TableNames =
/**
* Time-Series Data Types
*/
export interface BaseTimeSeriesData {
interface BaseTimeSeriesData {
timestamp: Date;
symbol?: string;
}
@ -160,7 +149,7 @@ export interface InsertResult {
/**
* Schema Definition Types
*/
export interface ColumnDefinition {
interface ColumnDefinition {
name: string;
type:
| 'SYMBOL'
@ -177,7 +166,7 @@ export interface ColumnDefinition {
capacity?: number; // For SYMBOL type
}
export interface TableDefinition {
interface TableDefinition {
name: string;
columns: ColumnDefinition[];
partitionBy?: 'NONE' | 'DAY' | 'MONTH' | 'YEAR';
@ -224,7 +213,7 @@ export interface PerformanceMetrics {
/**
* Query Builder Types
*/
export interface TimeSeriesQuery {
interface TimeSeriesQuery {
table: TableNames | string;
columns?: string[];
timeRange?: TimeRange;
@ -236,7 +225,7 @@ export interface TimeSeriesQuery {
limit?: number;
}
export interface AggregationQuery {
interface AggregationQuery {
aggregations: Record<string, string>;
groupBy?: string[];
having?: string[];
@ -278,7 +267,7 @@ export interface TableSchema {
dedup?: boolean;
}
export interface ColumnSchema {
interface ColumnSchema {
name: string;
type:
| 'SYMBOL'
@ -297,7 +286,7 @@ export interface ColumnSchema {
indexed?: boolean;
}
export interface IndexDefinition {
interface IndexDefinition {
columns: string[];
type: 'HASH' | 'BTREE';
unique?: boolean;