lib/health-indicators/dns/dns.health.ts
The DNSHealthIndicator contains health indicators which are used for health checks related to HTTP requests and DNS
Methods |
constructor(httpService: HttpService)
|
||||||||
Initializes the health indicator
Parameters :
|
Async pingCheck | ||||||||||||||||||||
pingCheck(key: string, url: string, options: AxiosRequestConfig)
|
||||||||||||||||||||
Checks if the given url respons in the given timeout and returns a result object corresponding to the result
Parameters :
Example :
Returns :
Promise<HealthIndicatorResult>
|
Protected getStatus | ||||||||||||||||
getStatus(key: string, isHealthy: boolean, data?: literal type)
|
||||||||||||||||
Generates the health indicator result object
Parameters :
Returns :
HealthIndicatorResult
|