ProbeInner Class
- java.
lang. Object - com.
azure. core. management. SubResource - com.
azure. resourcemanager. network. fluent. models. ProbeInner
- com.
- com.
public final class ProbeInner
extends SubResource
A load balancer probe.
Constructor Summary
Constructor | Description |
---|---|
ProbeInner() |
Creates an instance of Probe |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
static
Probe |
fromJson(JsonReader jsonReader)
Reads an instance of Probe |
Integer |
intervalInSeconds()
Get the interval |
List<Sub |
loadBalancingRules()
Get the load |
String |
name()
Get the name property: The name of the resource that is unique within the set of probes used by the load balancer. |
Probe |
noHealthyBackendsBehavior()
Get the no |
Integer |
numberOfProbes()
Get the number |
Integer |
port()
Get the port property: The port for communicating the probe. |
Integer |
probeThreshold()
Get the probe |
Probe |
protocol()
Get the protocol property: The protocol of the end point. |
Provisioning |
provisioningState()
Get the provisioning |
String |
requestPath()
Get the request |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Type of the resource. |
void |
validate()
Validates the instance. |
Probe |
withId(String id) |
Probe |
withIntervalInSeconds(Integer intervalInSeconds)
Set the interval |
Probe |
withName(String name)
Set the name property: The name of the resource that is unique within the set of probes used by the load balancer. |
Probe |
withNoHealthyBackendsBehavior(ProbeNoHealthyBackendsBehavior noHealthyBackendsBehavior)
Set the no |
Probe |
withNumberOfProbes(Integer numberOfProbes)
Set the number |
Probe |
withPort(Integer port)
Set the port property: The port for communicating the probe. |
Probe |
withProbeThreshold(Integer probeThreshold)
Set the probe |
Probe |
withProtocol(ProbeProtocol protocol)
Set the protocol property: The protocol of the end point. |
Probe |
withRequestPath(String requestPath)
Set the request |
Methods inherited from SubResource
Methods inherited from java.lang.Object
Constructor Details
ProbeInner
public ProbeInner()
Creates an instance of ProbeInner class.
Method Details
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
fromJson
public static ProbeInner fromJson(JsonReader jsonReader)
Reads an instance of ProbeInner from the JsonReader.
Parameters:
Returns:
Throws:
intervalInSeconds
public Integer intervalInSeconds()
Get the intervalInSeconds property: The interval, in seconds, for how frequently to probe the endpoint for health status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) which allows two full probes before taking the instance out of rotation. The default value is 15, the minimum value is 5.
Returns:
loadBalancingRules
public List
Get the loadBalancingRules property: The load balancer rules that use this probe.
Returns:
name
public String name()
Get the name property: The name of the resource that is unique within the set of probes used by the load balancer. This name can be used to access the resource.
Returns:
noHealthyBackendsBehavior
public ProbeNoHealthyBackendsBehavior noHealthyBackendsBehavior()
Get the noHealthyBackendsBehavior property: Determines how new connections are handled by the load balancer when all backend instances are probed down.
Returns:
numberOfProbes
public Integer numberOfProbes()
Get the numberOfProbes property: The number of probes where if no response, will result in stopping further traffic from being delivered to the endpoint. This values allows endpoints to be taken out of rotation faster or slower than the typical times used in Azure.
Returns:
port
public Integer port()
Get the port property: The port for communicating the probe. Possible values range from 1 to 65535, inclusive.
Returns:
probeThreshold
public Integer probeThreshold()
Get the probeThreshold property: The number of consecutive successful or failed probes in order to allow or deny traffic from being delivered to this endpoint. After failing the number of consecutive probes equal to this value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes to be placed back in rotation.
Returns:
protocol
public ProbeProtocol protocol()
Get the protocol property: The protocol of the end point. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required for the probe to be successful.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the probe resource.
Returns:
requestPath
public String requestPath()
Get the requestPath property: The URI used for requesting health status from the VM. Path is required if a protocol is set to http. Otherwise, it is not allowed. There is no default value.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ProbeInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: Type of the resource.
Returns:
validate
public void validate()
Validates the instance.
withId
public ProbeInner withId(String id)
Overrides:
ProbeInner.withId(String id)Parameters:
withIntervalInSeconds
public ProbeInner withIntervalInSeconds(Integer intervalInSeconds)
Set the intervalInSeconds property: The interval, in seconds, for how frequently to probe the endpoint for health status. Typically, the interval is slightly less than half the allocated timeout period (in seconds) which allows two full probes before taking the instance out of rotation. The default value is 15, the minimum value is 5.
Parameters:
Returns:
withName
public ProbeInner withName(String name)
Set the name property: The name of the resource that is unique within the set of probes used by the load balancer. This name can be used to access the resource.
Parameters:
Returns:
withNoHealthyBackendsBehavior
public ProbeInner withNoHealthyBackendsBehavior(ProbeNoHealthyBackendsBehavior noHealthyBackendsBehavior)
Set the noHealthyBackendsBehavior property: Determines how new connections are handled by the load balancer when all backend instances are probed down.
Parameters:
Returns:
withNumberOfProbes
public ProbeInner withNumberOfProbes(Integer numberOfProbes)
Set the numberOfProbes property: The number of probes where if no response, will result in stopping further traffic from being delivered to the endpoint. This values allows endpoints to be taken out of rotation faster or slower than the typical times used in Azure.
Parameters:
Returns:
withPort
public ProbeInner withPort(Integer port)
Set the port property: The port for communicating the probe. Possible values range from 1 to 65535, inclusive.
Parameters:
Returns:
withProbeThreshold
public ProbeInner withProbeThreshold(Integer probeThreshold)
Set the probeThreshold property: The number of consecutive successful or failed probes in order to allow or deny traffic from being delivered to this endpoint. After failing the number of consecutive probes equal to this value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes to be placed back in rotation.
Parameters:
Returns:
withProtocol
public ProbeInner withProtocol(ProbeProtocol protocol)
Set the protocol property: The protocol of the end point. If 'Tcp' is specified, a received ACK is required for the probe to be successful. If 'Http' or 'Https' is specified, a 200 OK response from the specifies URI is required for the probe to be successful.
Parameters:
Returns:
withRequestPath
public ProbeInner withRequestPath(String requestPath)
Set the requestPath property: The URI used for requesting health status from the VM. Path is required if a protocol is set to http. Otherwise, it is not allowed. There is no default value.
Parameters:
Returns:
Applies to
Azure SDK for Java