Udostępnij za pośrednictwem


ArmNetworkModelFactory.PacketCaptureData Method

Definition

Initializes a new instance of PacketCaptureData.

public static Azure.ResourceManager.Network.PacketCaptureData PacketCaptureData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ETag? etag = default, string target = default, Azure.ResourceManager.Network.Models.PacketCaptureMachineScope scope = default, Azure.ResourceManager.Network.Models.PacketCaptureTargetType? targetType = default, long? bytesToCapturePerPacket = default, long? totalBytesPerSession = default, int? timeLimitInSeconds = default, Azure.ResourceManager.Network.Models.PacketCaptureStorageLocation storageLocation = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.PacketCaptureFilter> filters = default, bool? isContinuousCapture = default, Azure.ResourceManager.Network.Models.PacketCaptureSettings captureSettings = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default);
static member PacketCaptureData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ETag> * string * Azure.ResourceManager.Network.Models.PacketCaptureMachineScope * Nullable<Azure.ResourceManager.Network.Models.PacketCaptureTargetType> * Nullable<int64> * Nullable<int64> * Nullable<int> * Azure.ResourceManager.Network.Models.PacketCaptureStorageLocation * seq<Azure.ResourceManager.Network.Models.PacketCaptureFilter> * Nullable<bool> * Azure.ResourceManager.Network.Models.PacketCaptureSettings * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> -> Azure.ResourceManager.Network.PacketCaptureData
Public Shared Function PacketCaptureData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional target As String = Nothing, Optional scope As PacketCaptureMachineScope = Nothing, Optional targetType As Nullable(Of PacketCaptureTargetType) = Nothing, Optional bytesToCapturePerPacket As Nullable(Of Long) = Nothing, Optional totalBytesPerSession As Nullable(Of Long) = Nothing, Optional timeLimitInSeconds As Nullable(Of Integer) = Nothing, Optional storageLocation As PacketCaptureStorageLocation = Nothing, Optional filters As IEnumerable(Of PacketCaptureFilter) = Nothing, Optional isContinuousCapture As Nullable(Of Boolean) = Nothing, Optional captureSettings As PacketCaptureSettings = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing) As PacketCaptureData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

etag
Nullable<ETag>

A unique read-only string that changes whenever the resource is updated.

target
String

The ID of the targeted resource, only AzureVM and AzureVMSS as target type are currently supported.

scope
PacketCaptureMachineScope

A list of AzureVMSS instances which can be included or excluded to run packet capture. If both included and excluded are empty, then the packet capture will run on all instances of AzureVMSS.

targetType
Nullable<PacketCaptureTargetType>

Target type of the resource provided.

bytesToCapturePerPacket
Nullable<Int64>

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

totalBytesPerSession
Nullable<Int64>

Maximum size of the capture output.

timeLimitInSeconds
Nullable<Int32>

Maximum duration of the capture session in seconds.

storageLocation
PacketCaptureStorageLocation

The storage location for a packet capture session.

filters
IEnumerable<PacketCaptureFilter>

A list of packet capture filters.

isContinuousCapture
Nullable<Boolean>

This continuous capture is a nullable boolean, which can hold 'null', 'true' or 'false' value. If we do not pass this parameter, it would be consider as 'null', default value is 'null'.

captureSettings
PacketCaptureSettings

The capture setting holds the 'FileCount', 'FileSizeInBytes', 'SessionTimeLimitInSeconds' values.

provisioningState
Nullable<NetworkProvisioningState>

The provisioning state of the packet capture session.

Returns

A new PacketCaptureData instance for mocking.

Applies to