ConnectionStateSnapshot Class
- java.
lang. Object - com.
microsoft. azure. management. network. ConnectionStateSnapshot
- com.
public class ConnectionStateSnapshot
Connection state snapshot.
Constructor Summary
Constructor | Description | |
---|---|---|
ConnectionStateSnapshot() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
avgLatencyInMs()
Get average latency in ms. |
Connection |
connectionState()
Get the connection state. |
org.joda.time.DateTime |
endTime()
Get the end time of the connection snapshot. |
Evaluation |
evaluationState()
Get connectivity analysis evaluation state. |
java.util.List<Connectivity |
hops()
Get list of hops between the source and the destination. |
java.lang.Integer |
maxLatencyInMs()
Get maximum latency in ms. |
java.lang.Integer |
minLatencyInMs()
Get minimum latency in ms. |
java.lang.Integer |
probesFailed()
Get the number of failed probes. |
java.lang.Integer |
probesSent()
Get the number of sent probes. |
org.joda.time.DateTime |
startTime()
Get the start time of the connection snapshot. |
Connection |
withAvgLatencyInMs(Integer avgLatencyInMs)
Set average latency in ms. |
Connection |
withConnectionState(ConnectionState connectionState)
Set the connection state. |
Connection |
withEndTime(DateTime endTime)
Set the end time of the connection snapshot. |
Connection |
withEvaluationState(EvaluationState evaluationState)
Set connectivity analysis evaluation state. |
Connection |
withMaxLatencyInMs(Integer maxLatencyInMs)
Set maximum latency in ms. |
Connection |
withMinLatencyInMs(Integer minLatencyInMs)
Set minimum latency in ms. |
Connection |
withProbesFailed(Integer probesFailed)
Set the number of failed probes. |
Connection |
withProbesSent(Integer probesSent)
Set the number of sent probes. |
Connection |
withStartTime(DateTime startTime)
Set the start time of the connection snapshot. |
Methods inherited from java.lang.Object
Constructor Details
ConnectionStateSnapshot
public ConnectionStateSnapshot()
Method Details
avgLatencyInMs
public Integer avgLatencyInMs()
Get average latency in ms.
Returns:
connectionState
public ConnectionState connectionState()
Get the connection state. Possible values include: 'Reachable', 'Unreachable', 'Unknown'.
Returns:
endTime
public DateTime endTime()
Get the end time of the connection snapshot.
Returns:
evaluationState
public EvaluationState evaluationState()
Get connectivity analysis evaluation state. Possible values include: 'NotStarted', 'InProgress', 'Completed'.
Returns:
hops
public List
Get list of hops between the source and the destination.
Returns:
maxLatencyInMs
public Integer maxLatencyInMs()
Get maximum latency in ms.
Returns:
minLatencyInMs
public Integer minLatencyInMs()
Get minimum latency in ms.
Returns:
probesFailed
public Integer probesFailed()
Get the number of failed probes.
Returns:
probesSent
public Integer probesSent()
Get the number of sent probes.
Returns:
startTime
public DateTime startTime()
Get the start time of the connection snapshot.
Returns:
withAvgLatencyInMs
public ConnectionStateSnapshot withAvgLatencyInMs(Integer avgLatencyInMs)
Set average latency in ms.
Parameters:
Returns:
withConnectionState
public ConnectionStateSnapshot withConnectionState(ConnectionState connectionState)
Set the connection state. Possible values include: 'Reachable', 'Unreachable', 'Unknown'.
Parameters:
Returns:
withEndTime
public ConnectionStateSnapshot withEndTime(DateTime endTime)
Set the end time of the connection snapshot.
Parameters:
Returns:
withEvaluationState
public ConnectionStateSnapshot withEvaluationState(EvaluationState evaluationState)
Set connectivity analysis evaluation state. Possible values include: 'NotStarted', 'InProgress', 'Completed'.
Parameters:
Returns:
withMaxLatencyInMs
public ConnectionStateSnapshot withMaxLatencyInMs(Integer maxLatencyInMs)
Set maximum latency in ms.
Parameters:
Returns:
withMinLatencyInMs
public ConnectionStateSnapshot withMinLatencyInMs(Integer minLatencyInMs)
Set minimum latency in ms.
Parameters:
Returns:
withProbesFailed
public ConnectionStateSnapshot withProbesFailed(Integer probesFailed)
Set the number of failed probes.
Parameters:
Returns:
withProbesSent
public ConnectionStateSnapshot withProbesSent(Integer probesSent)
Set the number of sent probes.
Parameters:
Returns:
withStartTime
public ConnectionStateSnapshot withStartTime(DateTime startTime)
Set the start time of the connection snapshot.
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