DiskHealthIndicator
The DiskHealthIndicator contains checks which are related to the disk storage of the current running machine
class DiskHealthIndicator extends HealthIndicator {
checkStorage(key: string, options: (Without<DiskOptionsWithThreshold, DiskOptionsWithThresholdPercent> & DiskOptionsBase & DiskOptionsThresholdPercent) | (Without<...> & ... 1 more ... & DiskOptionsThreshold)): Promise<HealthIndicatorResult>
// inherited from terminus/lib/HealthIndicator
protected getStatus(key: string, isHealthy: boolean, data?: { [key: string]: any; }): HealthIndicatorResult
}
Methods
checkStorage() |
---|
Checks if the size of the given size has exceeded the given threshold |
ParametersExamples
Returns
Throws
|