Healthcheck
Class sealed net10.0
Represents the health check configuration for a container.
namespace Aspire.Hosting.Docker.Resources.ServiceNodes;
public sealed class Healthcheck{ // ...} 6 members
Constructors1
Section titled ConstructorsProperties5
Section titled PropertiesIntervalget; setstring Specifies the duration between health check executions for a service. Accepts a string representation of the time interval in a supported format. Used to configure the frequency at which the health check is performed.
Retriesget; setint? Specifies the number of retries to be attempted for the health check before marking it as failed.
StartPeriodget; setstring Gets or sets the duration to wait after a container starts before attempting health checks. This property specifies the initial delay before the first health check is performed, which can be useful in cases where the application within the container requires some time to initialize before it can be properly checked for health status.
Testget; setList<string> Represents the command or set of commands to be executed as part of the health check for a service node. This property is defined as a list of strings, where each string is a command or argument contributing to the health check operation.
Timeoutget; setstring Specifies the maximum duration to wait for a healthcheck to complete.