lib/health-indicators/memory/memory.health.ts
The MemoryHealthIndicator contains checks which are related to the memory storage of the current running machine
Methods |
Public Async checkHeap | ||||||||||||
checkHeap(key: string, heapUsedThreshold: number)
|
||||||||||||
Checks the heap space and returns the status
Parameters :
Example :
Returns :
Promise<HealthIndicatorResult>
The result of the health indicator check |
Public Async checkRSS | ||||||||||||
checkRSS(key: string, rssThreshold: number)
|
||||||||||||
Checks the rss space and returns the status
Parameters :
Example :
Returns :
Promise<HealthIndicatorResult>
The result of the health indicator check |
Protected getStatus | ||||||||||||||||
getStatus(key: string, isHealthy: boolean, data?: literal type)
|
||||||||||||||||
Generates the health indicator result object
Parameters :
Returns :
HealthIndicatorResult
|