Skip to content
DocsTry Aspire
DocsTry

IResourceWithEndpoints.withHttpProbe

Method
📦 Aspire.Hosting v13.4.0
interface IResourceWithEndpoints {
// ... omitted for brevity
withHttpProbe(
probeType: ProbeType,
path?: string,
initialDelaySeconds?: number,
periodSeconds?: number,
timeoutSeconds?: number,
failureThreshold?: number,
successThreshold?: number,
endpointName?: string): IResourceWithEndpoints;
}

Signature

methodwithHttpProbebuilder
Adds an HTTP health probe to the resource
withHttpProbe(
probeType: ProbeType,
path?: string,
initialDelaySeconds?: number,
periodSeconds?: number,
timeoutSeconds?: number,
failureThreshold?: number,
successThreshold?: number,
endpointName?: string): IResourceWithEndpoints
probeTypeProbeType
pathstringoptional
initialDelaySecondsnumberoptional
periodSecondsnumberoptional
timeoutSecondsnumberoptional
failureThresholdnumberoptional
successThresholdnumberoptional
endpointNamestringoptional
IResourceWithEndpoints

Defined on

This method is defined on the following type: