Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ResourceWithEndpoints.WithHttpProbe

Method
📦 Aspire.Hosting v17.0.0
func (ResourceWithEndpoints) WithHttpProbe(
probeType ProbeType,
options ...*WithHttpProbeOptions,
) ResourceWithEndpoints

Signature

methodWithHttpProbebuilder
Adds an HTTP health probe to the resource
WithHttpProbe(
probeType ProbeType,
options ...*WithHttpProbeOptions,
) ResourceWithEndpoints
probeTypeProbeType
options...*WithHttpProbeOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithHttpProbeOptions argument.

Path*string
InitialDelaySeconds*float64
PeriodSeconds*float64
TimeoutSeconds*float64
FailureThreshold*float64
SuccessThreshold*float64
EndpointName*string
ResourceWithEndpoints

Returns a handle; failures surface later via Err().

Defined on

A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.

Applies to

This function applies to the following types: