Class ConnectionStateSnapshot
java.lang.Object
com.microsoft.azure.management.network.ConnectionStateSnapshot
Connection state snapshot.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet average latency in ms.Get the connection state.org.joda.time.DateTime
endTime()
Get the end time of the connection snapshot.Get connectivity analysis evaluation state.hops()
Get list of hops between the source and the destination.Get maximum latency in ms.Get minimum latency in ms.Get the number of failed probes.Get the number of sent probes.org.joda.time.DateTime
Get the start time of the connection snapshot.withAvgLatencyInMs
(Integer avgLatencyInMs) Set average latency in ms.withConnectionState
(ConnectionState connectionState) Set the connection state.withEndTime
(org.joda.time.DateTime endTime) Set the end time of the connection snapshot.withEvaluationState
(EvaluationState evaluationState) Set connectivity analysis evaluation state.withMaxLatencyInMs
(Integer maxLatencyInMs) Set maximum latency in ms.withMinLatencyInMs
(Integer minLatencyInMs) Set minimum latency in ms.withProbesFailed
(Integer probesFailed) Set the number of failed probes.withProbesSent
(Integer probesSent) Set the number of sent probes.withStartTime
(org.joda.time.DateTime startTime) Set the start time of the connection snapshot.
-
Constructor Details
-
ConnectionStateSnapshot
public ConnectionStateSnapshot()
-
-
Method Details
-
connectionState
Get the connection state. Possible values include: 'Reachable', 'Unreachable', 'Unknown'.- Returns:
- the connectionState value
-
withConnectionState
Set the connection state. Possible values include: 'Reachable', 'Unreachable', 'Unknown'.- Parameters:
connectionState
- the connectionState value to set- Returns:
- the ConnectionStateSnapshot object itself.
-
startTime
public org.joda.time.DateTime startTime()Get the start time of the connection snapshot.- Returns:
- the startTime value
-
withStartTime
Set the start time of the connection snapshot.- Parameters:
startTime
- the startTime value to set- Returns:
- the ConnectionStateSnapshot object itself.
-
endTime
public org.joda.time.DateTime endTime()Get the end time of the connection snapshot.- Returns:
- the endTime value
-
withEndTime
Set the end time of the connection snapshot.- Parameters:
endTime
- the endTime value to set- Returns:
- the ConnectionStateSnapshot object itself.
-
evaluationState
Get connectivity analysis evaluation state. Possible values include: 'NotStarted', 'InProgress', 'Completed'.- Returns:
- the evaluationState value
-
withEvaluationState
Set connectivity analysis evaluation state. Possible values include: 'NotStarted', 'InProgress', 'Completed'.- Parameters:
evaluationState
- the evaluationState value to set- Returns:
- the ConnectionStateSnapshot object itself.
-
avgLatencyInMs
Get average latency in ms.- Returns:
- the avgLatencyInMs value
-
withAvgLatencyInMs
Set average latency in ms.- Parameters:
avgLatencyInMs
- the avgLatencyInMs value to set- Returns:
- the ConnectionStateSnapshot object itself.
-
minLatencyInMs
Get minimum latency in ms.- Returns:
- the minLatencyInMs value
-
withMinLatencyInMs
Set minimum latency in ms.- Parameters:
minLatencyInMs
- the minLatencyInMs value to set- Returns:
- the ConnectionStateSnapshot object itself.
-
maxLatencyInMs
Get maximum latency in ms.- Returns:
- the maxLatencyInMs value
-
withMaxLatencyInMs
Set maximum latency in ms.- Parameters:
maxLatencyInMs
- the maxLatencyInMs value to set- Returns:
- the ConnectionStateSnapshot object itself.
-
probesSent
Get the number of sent probes.- Returns:
- the probesSent value
-
withProbesSent
Set the number of sent probes.- Parameters:
probesSent
- the probesSent value to set- Returns:
- the ConnectionStateSnapshot object itself.
-
probesFailed
Get the number of failed probes.- Returns:
- the probesFailed value
-
withProbesFailed
Set the number of failed probes.- Parameters:
probesFailed
- the probesFailed value to set- Returns:
- the ConnectionStateSnapshot object itself.
-
hops
Get list of hops between the source and the destination.- Returns:
- the hops value
-