ConnectionMonitorTestConfiguration Class
- java.
lang. Object - com.
microsoft. azure. management. network. ConnectionMonitorTestConfiguration
- com.
public class ConnectionMonitorTestConfiguration
Describes a connection monitor test configuration.
Constructor Summary
Constructor | Description | |
---|---|---|
ConnectionMonitorTestConfiguration() |
Method Summary
Methods inherited from java.lang.Object
Constructor Details
ConnectionMonitorTestConfiguration
public ConnectionMonitorTestConfiguration()
Method Details
httpConfiguration
public ConnectionMonitorHttpConfiguration httpConfiguration()
Get the parameters used to perform test evaluation over HTTP.
Returns:
icmpConfiguration
public ConnectionMonitorIcmpConfiguration icmpConfiguration()
Get the parameters used to perform test evaluation over ICMP.
Returns:
name
public String name()
Get the name of the connection monitor test configuration.
Returns:
preferredIPVersion
public PreferredIPVersion preferredIPVersion()
Get the preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters. Possible values include: 'IPv4', 'IPv6'.
Returns:
protocol
public ConnectionMonitorTestConfigurationProtocol protocol()
Get the protocol to use in test evaluation. Possible values include: 'Tcp', 'Http', 'Icmp'.
Returns:
successThreshold
public ConnectionMonitorSuccessThreshold successThreshold()
Get the threshold for declaring a test successful.
Returns:
tcpConfiguration
public ConnectionMonitorTcpConfiguration tcpConfiguration()
Get the parameters used to perform test evaluation over TCP.
Returns:
testFrequencySec
public Integer testFrequencySec()
Get the frequency of test evaluation, in seconds.
Returns:
withHttpConfiguration
public ConnectionMonitorTestConfiguration withHttpConfiguration(ConnectionMonitorHttpConfiguration httpConfiguration)
Set the parameters used to perform test evaluation over HTTP.
Parameters:
Returns:
withIcmpConfiguration
public ConnectionMonitorTestConfiguration withIcmpConfiguration(ConnectionMonitorIcmpConfiguration icmpConfiguration)
Set the parameters used to perform test evaluation over ICMP.
Parameters:
Returns:
withName
public ConnectionMonitorTestConfiguration withName(String name)
Set the name of the connection monitor test configuration.
Parameters:
Returns:
withPreferredIPVersion
public ConnectionMonitorTestConfiguration withPreferredIPVersion(PreferredIPVersion preferredIPVersion)
Set the preferred IP version to use in test evaluation. The connection monitor may choose to use a different version depending on other parameters. Possible values include: 'IPv4', 'IPv6'.
Parameters:
Returns:
withProtocol
public ConnectionMonitorTestConfiguration withProtocol(ConnectionMonitorTestConfigurationProtocol protocol)
Set the protocol to use in test evaluation. Possible values include: 'Tcp', 'Http', 'Icmp'.
Parameters:
Returns:
withSuccessThreshold
public ConnectionMonitorTestConfiguration withSuccessThreshold(ConnectionMonitorSuccessThreshold successThreshold)
Set the threshold for declaring a test successful.
Parameters:
Returns:
withTcpConfiguration
public ConnectionMonitorTestConfiguration withTcpConfiguration(ConnectionMonitorTcpConfiguration tcpConfiguration)
Set the parameters used to perform test evaluation over TCP.
Parameters:
Returns:
withTestFrequencySec
public ConnectionMonitorTestConfiguration withTestFrequencySec(Integer testFrequencySec)
Set the frequency of test evaluation, in seconds.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for