IResourceWithEndpoints.withHttpHealthCheck
Method
interface IResourceWithEndpoints { // ... omitted for brevity withHttpHealthCheck( path?: string, statusCode?: number, endpointName?: string): IResourceWithEndpoints;}Signature
method
withHttpHealthCheck builderAdds a health check to the resource which is mapped to a specific endpoint.
withHttpHealthCheck( path?: string, statusCode?: number, endpointName?: string): IResourceWithEndpointsParameters
pathstringoptionalThe relative path to test.statusCode numberoptionalThe result code to interpret as healthy.endpointName stringoptionalThe name of the endpoint to derive the base address from.Returns
IResourceWithEndpoints Defined on
This method is defined on the following type: