public final class ConnectionStateSnapshot extends Object
| Constructor and Description |
|---|
ConnectionStateSnapshot() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
avgLatencyInMs()
Get the avgLatencyInMs property: Average latency in ms.
|
ConnectionState |
connectionState()
Get the connectionState property: The connection state.
|
OffsetDateTime |
endTime()
Get the endTime property: The end time of the connection snapshot.
|
EvaluationState |
evaluationState()
Get the evaluationState property: Connectivity analysis evaluation state.
|
List<ConnectivityHop> |
hops()
Get the hops property: List of hops between the source and the destination.
|
Integer |
maxLatencyInMs()
Get the maxLatencyInMs property: Maximum latency in ms.
|
Integer |
minLatencyInMs()
Get the minLatencyInMs property: Minimum latency in ms.
|
Integer |
probesFailed()
Get the probesFailed property: The number of failed probes.
|
Integer |
probesSent()
Get the probesSent property: The number of sent probes.
|
OffsetDateTime |
startTime()
Get the startTime property: The start time of the connection snapshot.
|
void |
validate()
Validates the instance.
|
ConnectionStateSnapshot |
withAvgLatencyInMs(Integer avgLatencyInMs)
Set the avgLatencyInMs property: Average latency in ms.
|
ConnectionStateSnapshot |
withConnectionState(ConnectionState connectionState)
Set the connectionState property: The connection state.
|
ConnectionStateSnapshot |
withEndTime(OffsetDateTime endTime)
Set the endTime property: The end time of the connection snapshot.
|
ConnectionStateSnapshot |
withEvaluationState(EvaluationState evaluationState)
Set the evaluationState property: Connectivity analysis evaluation state.
|
ConnectionStateSnapshot |
withMaxLatencyInMs(Integer maxLatencyInMs)
Set the maxLatencyInMs property: Maximum latency in ms.
|
ConnectionStateSnapshot |
withMinLatencyInMs(Integer minLatencyInMs)
Set the minLatencyInMs property: Minimum latency in ms.
|
ConnectionStateSnapshot |
withProbesFailed(Integer probesFailed)
Set the probesFailed property: The number of failed probes.
|
ConnectionStateSnapshot |
withProbesSent(Integer probesSent)
Set the probesSent property: The number of sent probes.
|
ConnectionStateSnapshot |
withStartTime(OffsetDateTime startTime)
Set the startTime property: The start time of the connection snapshot.
|
public ConnectionState connectionState()
public ConnectionStateSnapshot withConnectionState(ConnectionState connectionState)
connectionState - the connectionState value to set.public OffsetDateTime startTime()
public ConnectionStateSnapshot withStartTime(OffsetDateTime startTime)
startTime - the startTime value to set.public OffsetDateTime endTime()
public ConnectionStateSnapshot withEndTime(OffsetDateTime endTime)
endTime - the endTime value to set.public EvaluationState evaluationState()
public ConnectionStateSnapshot withEvaluationState(EvaluationState evaluationState)
evaluationState - the evaluationState value to set.public Integer avgLatencyInMs()
public ConnectionStateSnapshot withAvgLatencyInMs(Integer avgLatencyInMs)
avgLatencyInMs - the avgLatencyInMs value to set.public Integer minLatencyInMs()
public ConnectionStateSnapshot withMinLatencyInMs(Integer minLatencyInMs)
minLatencyInMs - the minLatencyInMs value to set.public Integer maxLatencyInMs()
public ConnectionStateSnapshot withMaxLatencyInMs(Integer maxLatencyInMs)
maxLatencyInMs - the maxLatencyInMs value to set.public Integer probesSent()
public ConnectionStateSnapshot withProbesSent(Integer probesSent)
probesSent - the probesSent value to set.public Integer probesFailed()
public ConnectionStateSnapshot withProbesFailed(Integer probesFailed)
probesFailed - the probesFailed value to set.public List<ConnectivityHop> hops()
public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.