Skip to content
DocsTry Aspire
DocsTry

IResourceWithEndpoints.withHttpHealthCheck

Method
📦 Aspire.Hosting v13.4.0
interface IResourceWithEndpoints {
// ... omitted for brevity
withHttpHealthCheck(
path?: string,
statusCode?: number,
endpointName?: string): IResourceWithEndpoints;
}

Signature

methodwithHttpHealthCheckbuilder
Adds a health check to the resource which is mapped to a specific endpoint.
withHttpHealthCheck(
path?: string,
statusCode?: number,
endpointName?: string): IResourceWithEndpoints
pathstringoptional
statusCodenumberoptional
endpointNamestringoptional
IResourceWithEndpoints

Defined on

This method is defined on the following type: