@sailboat-computer/health-monitoring
Version:
Comprehensive health monitoring system for sailboat computer v3 with marine-specific health checks
51 lines • 1.75 kB
TypeScript
/**
* Battery Health Check for marine power systems
*/
import { BaseHealthCheck, HealthCheckResult, HealthCheckConfig, OperationalContextType, MarineEnvironmentStatus } from '../index';
/**
* Battery data interface for health checking
*/
export interface BatteryData {
voltage: number;
current: number;
temperature: number;
stateOfCharge: number;
capacity: number;
nominalCapacity: number;
cycleCount: number;
timeToEmpty?: number;
timeToFull?: number;
timestamp: Date;
batteryType: '12v' | '48v' | 'lithium' | 'agm' | 'gel';
}
/**
* Battery Health Check implementation
*/
export declare class BatteryHealthCheck extends BaseHealthCheck {
private batteryDataProvider;
private voltageHistory;
private maxHistoryLength;
constructor(config: HealthCheckConfig, batteryDataProvider: () => Promise<BatteryData>);
protected performCheck(operationalContext: OperationalContextType, marineEnvironment?: MarineEnvironmentStatus): Promise<HealthCheckResult>;
/**
* Get voltage thresholds based on battery type
*/
private getVoltageThresholds;
/**
* Get temperature thresholds based on battery type
*/
private getTemperatureThresholds;
/**
* Get expected life cycles based on battery type
*/
private getExpectedLifeCycles;
/**
* Calculate voltage drop rate from recent history
*/
private calculateVoltageDropRate;
}
/**
* Factory function to create battery health check with standard marine configuration
*/
export declare function createBatteryHealthCheck(batteryDataProvider: () => Promise<BatteryData>, customConfig?: Partial<HealthCheckConfig>): BatteryHealthCheck;
//# sourceMappingURL=BatteryHealthCheck.d.ts.map