ArmNetworkModelFactory.TrafficDetectionRule Method

Definition

public static Azure.ResourceManager.Network.Models.TrafficDetectionRule TrafficDetectionRule(Azure.ResourceManager.Network.Models.DdosTrafficType? trafficType = default, int? packetsPerSecond = default);
static member TrafficDetectionRule : Nullable<Azure.ResourceManager.Network.Models.DdosTrafficType> * Nullable<int> -> Azure.ResourceManager.Network.Models.TrafficDetectionRule
Public Shared Function TrafficDetectionRule (Optional trafficType As Nullable(Of DdosTrafficType) = Nothing, Optional packetsPerSecond As Nullable(Of Integer) = Nothing) As TrafficDetectionRule

Parameters

trafficType
Nullable<DdosTrafficType>

The traffic type (one of Tcp, Udp, TcpSyn) that the detection rule will be applied upon.

packetsPerSecond
Nullable<Int32>

The customized packets per second threshold.

Returns

A new TrafficDetectionRule instance for mocking.

Applies to