Office 365 服务运行状况 最后更新时间为 24 小时前

Office 365 Service Health Last update is 24 hours ago

每当我发送 API 电话以获取 Office 365 服务运行状况的当前状态时,最后一次更新总是恰好晚 24 小时。

我看到这个被引用了here但是这个问题的答案是废话,所以我会在这里试试。

PowerShell 中的示例代码

Invoke-RestMethod "https://manage.office.com/api/v1.0/$tenantid/ServiceComms/CurrentStatus" -Headers $officeapiheader

如果当前时间是2019-10-17T05:18:25.469735Z

返回的StatusTime字段是2019-10-16T05:18:25.469735Z

整整晚了 24 小时。

  1. 我的电话有没有可能出错?
  2. 是不是如我所料,那,其实就是现在的状态, 只有日期时间错了?
  3. 我该怎么做才能解决这个问题?

来自 endpoint description(强调我的):

The service response will contain the status and any incidents within the previous 24 hours. The StatusDate or StatusTime value returned will be exactly 24 hours in the past. To get the last update for a particular incident, use the Get Messages functionality and read the LastUpdatedTime value from the response record that matches your incident ID.

结论:您描述的行为是设计使然。


详情

根据我的检查,该端点似乎显示了过去 24 小时内所有 incidents/advisories 正在进行的事情。例如现在(10 月 17 日,23:00)我可以看到以下日期的事件:

  1. 最后更新:2019 年 10 月 17 日 9:18 下午; 开始时间:2019年8月30日9:00下午

  2. 最后更新:2019 年 10 月 17 日 7:00 下午; 开始时间:2019年9月25日2:00上午

  3. 开始时间:2019年10月17日2:13下午; 结束时间:2019年10月17日3:00下午

    该问题已解决,因此可以在管理门户中的 'History' 选项卡中找到它。

  4. 最后更新:2019 年 10 月 14 日 10:58 下午; 开始时间:2019年10月14日9:23下午

    那个在过去 24 小时内没有更新,但仍然可见


结论

根据以上示例,这意味着 仍未关闭的项目 + 从现在到 24 小时前 关闭的项目 是显示。所以不是现在,也不是昨天的状态。