PacketCapture Interface

Implements

public interface PacketCapture
extends HasInnerModel<PacketCaptureResultInner>, HasName, HasId, Indexable

Client-side representation of Packet capture object, associated with Network Watcher.

Method Summary

Modifier and Type Method and Description
abstract long bytesToCapturePerPacket()
abstract List<PacketCaptureFilter> filters()
abstract PacketCaptureStatus getStatus()

Query the status of a running packet capture session.

abstract Mono<PacketCaptureStatus> getStatusAsync()

Query the status of a running packet capture session asynchronously.

abstract ProvisioningState provisioningState()

Get the provisioning state of the packet capture session.

abstract void stop()

Stops a specified packet capture session.

abstract Mono<Void> stopAsync()

Stops a specified packet capture session asynchronously.

abstract PacketCaptureStorageLocation storageLocation()
abstract String targetId()
abstract int timeLimitInSeconds()
abstract long totalBytesPerSession()

Method Details

bytesToCapturePerPacket

public abstract long bytesToCapturePerPacket()

Returns:

the number of bytes captured per packet, the remaining bytes are truncated.

filters

public abstract List filters()

Returns:

the filters value

getStatus

public abstract PacketCaptureStatus getStatus()

Query the status of a running packet capture session.

Returns:

packet capture status

getStatusAsync

public abstract Mono getStatusAsync()

Query the status of a running packet capture session asynchronously.

Returns:

packet capture status

provisioningState

public abstract ProvisioningState provisioningState()

Get the provisioning state of the packet capture session.

Returns:

the provisioningState value

stop

public abstract void stop()

Stops a specified packet capture session.

stopAsync

public abstract Mono stopAsync()

Stops a specified packet capture session asynchronously.

Returns:

the handle to the REST call

storageLocation

public abstract PacketCaptureStorageLocation storageLocation()

Returns:

the storageLocation value

targetId

public abstract String targetId()

Returns:

the target id value

timeLimitInSeconds

public abstract int timeLimitInSeconds()

Returns:

the maximum duration of the capture session in seconds

totalBytesPerSession

public abstract long totalBytesPerSession()

Returns:

the maximum size of the capture output

Applies to