HealthProbeParameters Class
- java.
lang. Object - com.
microsoft. azure. management. cdn. HealthProbeParameters
- com.
public class HealthProbeParameters
The JSON object that contains the properties to send health probes to origin.
Constructor Summary
Constructor | Description | |
---|---|---|
HealthProbeParameters() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
probeIntervalInSeconds()
Get the number of seconds between health probes. |
java.lang.String |
probePath()
Get the path relative to the origin that is used to determine the health of the origin. |
Probe |
probeProtocol()
Get protocol to use for health probe. |
Health |
probeRequestType()
Get the type of health probe request that is made. |
Health |
withProbeIntervalInSeconds(Integer probeIntervalInSeconds)
Set the number of seconds between health probes. |
Health |
withProbePath(String probePath)
Set the path relative to the origin that is used to determine the health of the origin. |
Health |
withProbeProtocol(ProbeProtocol probeProtocol)
Set protocol to use for health probe. |
Health |
withProbeRequestType(HealthProbeRequestType probeRequestType)
Set the type of health probe request that is made. |
Methods inherited from java.lang.Object
Constructor Details
HealthProbeParameters
public HealthProbeParameters()
Method Details
probeIntervalInSeconds
public Integer probeIntervalInSeconds()
Get the number of seconds between health probes.Default is 240sec.
Returns:
probePath
public String probePath()
Get the path relative to the origin that is used to determine the health of the origin.
Returns:
probeProtocol
public ProbeProtocol probeProtocol()
Get protocol to use for health probe. Possible values include: 'NotSet', 'Http', 'Https'.
Returns:
probeRequestType
public HealthProbeRequestType probeRequestType()
Get the type of health probe request that is made. Possible values include: 'NotSet', 'GET', 'HEAD'.
Returns:
withProbeIntervalInSeconds
public HealthProbeParameters withProbeIntervalInSeconds(Integer probeIntervalInSeconds)
Set the number of seconds between health probes.Default is 240sec.
Parameters:
Returns:
withProbePath
public HealthProbeParameters withProbePath(String probePath)
Set the path relative to the origin that is used to determine the health of the origin.
Parameters:
Returns:
withProbeProtocol
public HealthProbeParameters withProbeProtocol(ProbeProtocol probeProtocol)
Set protocol to use for health probe. Possible values include: 'NotSet', 'Http', 'Https'.
Parameters:
Returns:
withProbeRequestType
public HealthProbeParameters withProbeRequestType(HealthProbeRequestType probeRequestType)
Set the type of health probe request that is made. Possible values include: 'NotSet', 'GET', 'HEAD'.
Parameters:
Returns:
Applies to
Azure SDK for Java