UNPKG

@sailboat-computer/health-monitoring

Version:

Comprehensive health monitoring system for sailboat computer v3 with marine-specific health checks

85 lines 2.29 kB
/** * Example usage of marine health monitoring system * This demonstrates how to set up and use health checks for a sailboat */ import { OperationalContextType, MarineEnvironmentStatus } from '../index'; /** * Example marine health monitoring setup for a sailboat */ export declare class MarineHealthMonitoringExample { private healthEngine; private gpsHealthCheck; private battery48vHealthCheck; private battery12vHealthCheck; constructor(); /** * Initialize all marine health checks */ private initializeHealthChecks; /** * Set up event handling for health monitoring events */ private setupEventHandling; /** * Handle critical health alerts */ private handleCriticalAlert; /** * Handle system recovery events */ private handleSystemRecovery; /** * Start the health monitoring system */ start(): void; /** * Stop the health monitoring system */ stop(): void; /** * Update operational context (e.g., when leaving dock, anchoring, etc.) */ updateOperationalContext(context: OperationalContextType): void; /** * Update marine environment conditions */ updateMarineEnvironment(environment: Partial<MarineEnvironmentStatus>): void; /** * Get current health status summary */ getHealthSummary(): Promise<void>; /** * Simulate different sailing scenarios */ simulateScenarios(): Promise<void>; /** * Mock GPS data provider (in real implementation, this would read from actual GPS) */ private mockGPSDataProvider; /** * Mock 48V battery data provider */ private mock48VBatteryDataProvider; /** * Mock 12V battery data provider */ private mock12VBatteryDataProvider; /** * Get status icon for display */ private getStatusIcon; /** * Extract important details for summary display */ private extractImportantDetails; /** * Utility function to wait */ private wait; } /** * Example usage function */ export declare function runMarineHealthMonitoringExample(): Promise<void>; export default MarineHealthMonitoringExample; //# sourceMappingURL=MarineHealthMonitoringExample.d.ts.map