Share via


TrafficDetectionRule Class

Ddos Custom Policy traffic detection rule.

Constructor

TrafficDetectionRule(*, traffic_type: str | _models.DdosTrafficType | None = None, packets_per_second: int | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
traffic_type

The traffic type (one of Tcp, Udp, TcpSyn) that the detection rule will be applied upon. Known values are: "Tcp", "Udp", and "TcpSyn".

Default value: None
packets_per_second
int

The customized packets per second threshold.

Default value: None

Variables

Name Description
traffic_type

The traffic type (one of Tcp, Udp, TcpSyn) that the detection rule will be applied upon. Known values are: "Tcp", "Udp", and "TcpSyn".

packets_per_second
int

The customized packets per second threshold.