Skip to content
Docs Try Aspire

IResourceWithEndpoints.withHttpProbe

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

Signature

method withHttpProbe builder
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
probeType ProbeType
path string optional
initialDelaySeconds number optional
periodSeconds number optional
timeoutSeconds number optional
failureThreshold number optional
successThreshold number optional
endpointName string optional
IResourceWithEndpoints

Defined on

This method is defined on the following type: