你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

ThrottlingPolicy Class

Properties of the throttling policy.

Constructor

ThrottlingPolicy()

Variables

Name Description
name
str

The Name of this policy. Required.

rate_limit_threshold
int

The Threshold limit above which the application group will be throttled.Rate limit is always per second. Required.

metric_id
Union[str, <xref:"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. Required. Known values are: "IncomingBytes", "OutgoingBytes", "IncomingMessages", and "OutgoingMessages".

type
Literal[ApplicationGroupPolicyType.THROTTLING_POLICY]

Application Group Policy types. Required. THROTTLING_POLICY.

Attributes

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. Required. Known values are: "IncomingBytes", "OutgoingBytes", "IncomingMessages", and "OutgoingMessages".

metricId: Required[str | MetricId]

name

The Name of this policy. Required.

name: Required[str]

rateLimitThreshold

The Threshold limit above which the application group will be throttled.Rate limit is always per second. Required.

rateLimitThreshold: Required[int]

type

Application Group Policy types. Required. THROTTLING_POLICY.

type: THROTTLING_POLICY: 'ThrottlingPolicy'>]]