Azure 警报的最大窗口大小

Maximum windowsize for an Azure alert

我正在尝试为看似简单的警报场景创建警报:

If my logic app is not started for a period of 24 hours I want to raise an alert for unexpected inactivity.

当我通过门户创建警报时,我最多只能select一次window 6 小时。

但是如果我直接通过 Portal API 设置它,那么我可以配置一个时间window 最多 1 天。

我的问题是为什么门户网站将 window 大小的最大警报固定为 6 小时?我是否以正确的方式解决这个问题——是否有更好的方法来确定某些逻辑应用程序的不活动状态?例如如果逻辑应用 2 天未触发,我该如何提醒?

谢谢。

根据 documentation,可以使用 ISO 8601 持续时间格式的 windowsSize 在 5 分钟到 1 天之间创建警报规则。

如您所述,API 和 ARM 模板也支持此功能。

why is the portal fixing the window size maximum to 6 hours for an alert?

我相信这只是一个 UI 限制,但不应该存在。

My other question is am I going about this the right way - is there a better way to determine inactivity of certain logic apps? e.g. how could I alert if a logic app didn't trigger for 2 days?

这是一个 OOTB 功能,只要它满足您的要求,我会推荐使用它。如果您需要其他东西,比如更长的时间,您将需要实现一些自定义的东西。您可以使用 Workflow Runs - List API 并以编程方式检查它。

HTH