PacketCapture Interface

public interface PacketCapture extends HasInner,HasName,HasId,Indexable

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

Method Summary

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

Query the status of a running packet capture session.

Observable<PacketCaptureStatus> getStatusAsync()

Query the status of a running packet capture session asynchronously.

ProvisioningState provisioningState()

Get the provisioning state of the packet capture session. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.

void stop()

Stops a specified packet capture session.

Completable stopAsync()

Stops a specified packet capture session asynchronously.

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

Inherited Members

Method Details

bytesToCapturePerPacket

public int bytesToCapturePerPacket()

Returns:

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

filters

public List filters()

Returns:

the filters value

getStatus

public PacketCaptureStatus getStatus()

Query the status of a running packet capture session.

Returns:

packet capture status

getStatusAsync

public Observable getStatusAsync()

Query the status of a running packet capture session asynchronously.

Returns:

packet capture status

provisioningState

public ProvisioningState provisioningState()

Get the provisioning state of the packet capture session. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'.

Returns:

the provisioningState value

stop

public void stop()

Stops a specified packet capture session.

stopAsync

public Completable stopAsync()

Stops a specified packet capture session asynchronously.

Returns:

the handle to the REST call

storageLocation

public PacketCaptureStorageLocation storageLocation()

Returns:

the storageLocation value

targetId

public String targetId()

Returns:

the target id value

timeLimitInSeconds

public int timeLimitInSeconds()

Returns:

the maximum duration of the capture session in seconds

totalBytesPerSession

public int totalBytesPerSession()

Returns:

the maximum size of the capture output

Applies to