public final class ConnectionStateSnapshot extends Object
| Constructor and Description |
|---|
ConnectionStateSnapshot() |
| Modifier and Type | Method and Description |
|---|---|
Long |
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.
|
Long |
maxLatencyInMs()
Get the maxLatencyInMs property: Maximum latency in ms.
|
Long |
minLatencyInMs()
Get the minLatencyInMs property: Minimum latency in ms.
|
Long |
probesFailed()
Get the probesFailed property: The number of failed probes.
|
Long |
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(Long 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(Long maxLatencyInMs)
Set the maxLatencyInMs property: Maximum latency in ms.
|
ConnectionStateSnapshot |
withMinLatencyInMs(Long minLatencyInMs)
Set the minLatencyInMs property: Minimum latency in ms.
|
ConnectionStateSnapshot |
withProbesFailed(Long probesFailed)
Set the probesFailed property: The number of failed probes.
|
ConnectionStateSnapshot |
withProbesSent(Long 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 Long avgLatencyInMs()
public ConnectionStateSnapshot withAvgLatencyInMs(Long avgLatencyInMs)
avgLatencyInMs - the avgLatencyInMs value to set.public Long minLatencyInMs()
public ConnectionStateSnapshot withMinLatencyInMs(Long minLatencyInMs)
minLatencyInMs - the minLatencyInMs value to set.public Long maxLatencyInMs()
public ConnectionStateSnapshot withMaxLatencyInMs(Long maxLatencyInMs)
maxLatencyInMs - the maxLatencyInMs value to set.public Long probesSent()
public ConnectionStateSnapshot withProbesSent(Long probesSent)
probesSent - the probesSent value to set.public Long probesFailed()
public ConnectionStateSnapshot withProbesFailed(Long probesFailed)
probesFailed - the probesFailed value to set.public List<ConnectivityHop> hops()
public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.