withHttpHealthCheck
Method
interface ContainerResource { // ... 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 Applies to
This method applies to the following types: