共用方式為


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()

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

abstract List<PacketCaptureFilter> filters()

Gets the filters value.

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()

Gets the storageLocation value.

abstract String targetId()

Gets the target ID value.

abstract int timeLimitInSeconds()

Gets the maximum duration of the capture session in seconds.

abstract long totalBytesPerSession()

Gets the maximum size of the capture output.

Method Details

bytesToCapturePerPacket

public abstract long bytesToCapturePerPacket()

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

Returns:

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

filters

public abstract List filters()

Gets the filters value.

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()

Gets the storageLocation value.

Returns:

the storageLocation value

targetId

public abstract String targetId()

Gets the target ID value.

Returns:

the target ID value

timeLimitInSeconds

public abstract int timeLimitInSeconds()

Gets the maximum duration of the capture session in seconds.

Returns:

the maximum duration of the capture session in seconds

totalBytesPerSession

public abstract long totalBytesPerSession()

Gets the maximum size of the capture output.

Returns:

the maximum size of the capture output

Applies to