我可以自己设置 Azure WebJob 仪表板状态吗?

Can I set the Azure WebJob Dashboard Status myself?

我正在使用 Azure WebJob 仪表板来监视我的作业。我不满意我必须深入了解界面以确定发生了什么。我想利用 webjob 详细信息页面上的 "Status" 字段来显示特定调用是否需要注意,以及我认为调用失败的情况,即使它没有崩溃。

我搜索了 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_urlerror_url,然后您可以创建一个 自定义仪表板 并用输出和错误详细信息数据填充它。

不行,不能自己设置。
Kudu APIs 可能无法为您提供有关单个函数实例的足够详细信息。 考虑在 https://github.com/Azure/azure-webjobs-sdk/ 上提出功能请求 在直接通过存储帐户公开日志记录 API 方面进行了更多投资。