MemoryHealthIndicator
The MemoryHealthIndicator contains checks which are related to the memory storage of the current running machine
class MemoryHealthIndicator extends HealthIndicator {
checkHeap(key: string, heapUsedThreshold: number): Promise<HealthIndicatorResult>
checkRSS(key: string, rssThreshold: number): Promise<HealthIndicatorResult>
// inherited from terminus/lib/HealthIndicator
protected getStatus(key: string, isHealthy: boolean, data?: { [key: string]: any; }): HealthIndicatorResult
}
Methods
checkHeap() | |||||||||
---|---|---|---|---|---|---|---|---|---|
Checks the heap space and returns the status |
|||||||||
Parameters
Examples
Returns
Throws
|
checkRSS() | |||||||||
---|---|---|---|---|---|---|---|---|---|
Checks the rss space and returns the status |
|||||||||
Parameters
Examples
Returns
Throws
|