0
A
回答
3
如果您使用的是WebJob SDK,那麼您可以使用新的ErrorTrigger
和SendGrid
擴展。檢查這wiki on how to set that up。但這裏是使用兩臺分機發送電子郵件,如果在30分鐘內窗口出現錯誤10次油門長達1小時
public static void ErrorMonitor(
[ErrorTrigger("0:30:00", 10, Throttle = "1:00:00") TraceFilter filter,
[SendGrid] SendGridMessage message)
{
message.Subject = "WebJobs Error Alert";
message.Text = filter.GetDetailedMessage(5)
}
如果你不是一個示例代碼(從上面的維基複製)使用WebJob SDK,那麼不幸的是,沒有任何連續的webjobs事件。有only one for triggered jobs。
相關問題
- 1. 當Azure App Service停止時,Azure Webjob會停止
- 2. Azure Webjob突然停止工作
- 3. 如何正常停止爲Nodejs寫的Azure WebJob
- 4. 如何部署F#Azure WebJob?
- 5. 發佈Azure WebJob時,Visual Studio 2015停止工作
- 6. 如何通知goroutine停止運行?
- 7. Google推送通知:停止通知
- 8. MPMusicPlayerController停止發送通知
- 9. 停止本地通知
- 10. 停止推送通知
- 11. Azure WebJob:如果運行時間超過X分鐘,則強制停止
- 12. 如何知道虛擬機是否在Azure中停止
- 13. 通過FTP上傳/發佈Azure Webjob
- 14. 如何在本地運行Azure WebJob
- 15. 如何保護azure webjob代碼執行?
- 16. 如何安裝Azure webjob的python庫?
- 17. 如何在azure webjob應用程序中讀取azure sql db?
- 18. Python中的Azure WebJob:如何訪問azure python包?
- 19. 停止觀看Google推送通知
- 20. 當Log4net停止記錄時通知
- 21. 推送通知停止工作
- 22. 推送通知突然停止生產
- 23. 通知聲音停止點擊
- 24. 突然停止收到推送通知
- 25. Java Servlet不會停止推送通知
- 26. 使用swift停止通知3
- 27. Delphi MediaPlayer歌曲停止通知
- 28. 停止本地通知聲音的Android
- 29. APNS在收到時停止通知
- 30. 停止通知窗口偷取焦點