lib/health-indicators/disk/disk.health.ts
The DiskHealthIndicator contains checks which are related to the disk storage of the current running machine
Methods |
|
Public Async checkStorage | ||||||||||||
checkStorage(key: string, options: DiskHealthIndicatorOptions)
|
||||||||||||
Checks if the size of the given size has exceeded the given threshold
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
|