ArmWebPubSubModelFactory.WebPubSubTrafficThrottleByUserIdRule Method

Definition

public static Azure.ResourceManager.WebPubSub.Models.WebPubSubTrafficThrottleByUserIdRule WebPubSubTrafficThrottleByUserIdRule(long? maxInboundMessageBytes = default, int? aggregationWindowInSeconds = default);
static member WebPubSubTrafficThrottleByUserIdRule : Nullable<int64> * Nullable<int> -> Azure.ResourceManager.WebPubSub.Models.WebPubSubTrafficThrottleByUserIdRule
Public Shared Function WebPubSubTrafficThrottleByUserIdRule (Optional maxInboundMessageBytes As Nullable(Of Long) = Nothing, Optional aggregationWindowInSeconds As Nullable(Of Integer) = Nothing) As WebPubSubTrafficThrottleByUserIdRule

Parameters

maxInboundMessageBytes
Nullable<Int64>

Maximum accumulated inbound message bytes allowed for the same user ID within a time window. Clients with the same user ID will get disconnected if the message bytes exceeds this value. Default value is 1GB.

aggregationWindowInSeconds
Nullable<Int32>

The aggregation window for the message bytes. The message bytes will be aggregated in this window and be reset after the window. Default value is 60 seconds.

Returns

A new WebPubSubTrafficThrottleByUserIdRule instance for mocking.

Applies to