你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzEventHubThrottlingPolicyConfig
Constructs an IThrottlingPolicy object that can be fed as input to New-AzEventHubApplicationGroup or Set-AzEventHubApplicationGroup
Syntax
New-AzEventHubThrottlingPolicyConfig
-Name <String>
-RateLimitThreshold <Int64>
-MetricId <String>
[<CommonParameters>]
Description
Constructs an IThrottlingPolicy object that can be fed as input to New-AzEventHubApplicationGroup or Set-AzEventHubApplicationGroup
Examples
Example 1: Constructs an IThrottlingPolicy object
New-AzEventHubThrottlingPolicyConfig -Name t1 -RateLimitThreshold 10000 -MetricId IncomingBytes
MetricId Name RateLimitThreshold Type
-------- ---- ------------------ ----
IncomingBytes t1 10000 ThrottlingPolicy
Please refer examples for Set-AzEventHubApplicationGroup to know more.
Parameters
-MetricId
Metric Id on which the throttle limit should be set, MetricId can be discovered by hovering over Metric in the Metrics section of Event Hub Namespace inside Azure Portal
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Name of Throttling Policy Config
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RateLimitThreshold
The Threshold limit above which the application group will be throttled.Rate limit is always per second.
Type: | Int64 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |