简体   繁体   English

如何指定Azure API管理的告警规则只针对特定的API?

[英]How do I specify an alert rule for Azure API management for only a specific API?

I have set up an alert rule in Azure that warns us when the backend returns an error code (4xx or 5xx).我在 Azure 中设置了一个警报规则,当后端返回一个错误代码(4xx 或 5xx)时警告我们。

This works but the API Management contains a multitude of APIs.这有效,但 API 管理包含大量 API。

I thought I would create separate alert rules for each API but there does not seem to be a way to do this via UI.我以为我会为每个 API 创建单独的警报规则,但似乎没有办法通过 UI 执行此操作。 Specifically, there is no condition available that would let me select one or more APIs.具体来说,没有任何条件可以让我 select 一个或多个 API。

Is there a way to do this programmatically via an ARM template or have I missed anything?有没有办法通过 ARM 模板以编程方式执行此操作,或者我错过了什么?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM