我正在使用 Azure WebJob 仪表板来监视我的作业。我不满意必须深入界面多远才能确定发生了什么。我想利用网络作业详细信息页面上的“状态”字段来显示特定调用是否需要关注,以及在我认为调用失败的情况下,即使它没有崩溃。
我已经搜索了 Azure WebJobs 文档和 Azure WebJobs SDK 扩展包的功能,但没有成功(但我毫不怀疑我可能错过了它)。我可以手动设置该字段吗?
最佳答案
I'm not happy with how far I have to drill into the into the interface to determine what's happening. I'd like to leverage the "Status" field on the webjob details page to show if a particular invocation needs attention and in cases where I consider an invocation a failure, even if it didn't blow up.
据我所知,它似乎不允许我们在Azure WebJob Dashboard上自行设置状态字段。如果您想在不点击界面的情况下显示WebJob运行详细信息,您可以尝试调用WebJobs API通过请求output_url或error_url来获取作业运行历史记录并从日志中检索输出或错误信息,然后您可以创建自定义仪表板并填充它包含输出和错误详细信息数据。
关于azure - 我可以自己设置 Azure WebJob 仪表板状态吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39904673/