WayrApp Backend & Ecosystem Documentation - v1.0.0
    Preparing search index...
    • Monitors system memory usage and determines memory health status.

      Analyzes current heap memory usage and compares against configured thresholds to determine if memory usage is within acceptable limits. Provides detailed memory breakdown including heap used, heap total, and external memory usage.

      Returns Promise<
          {
              status: string;
              usage: { heapUsedMB: number; heapTotalMB: number; externalMB: number };
              timestamp: string;
          },
      >

      Memory health status with detailed usage metrics

      const memoryHealth = await healthChecks.memory();
      if (memoryHealth.status === 'warning') {
      console.log(`High memory usage: ${memoryHealth.usage.heapUsedMB}MB`);
      }