You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何通过编程获取SendGrid API的各组件详细状态?

如何编程获取SendGrid各具体服务组件的状态

是的,你可以通过编程方式获取SendGrid各个具体项目的状态,而非仅拿到通用状态。

SendGrid的状态页面在加载具体组件状态时,会调用一个可直接访问的API端点:https://status.sendgrid.com/api/v2/components.json

这个接口会返回所有具体服务组件的详细状态信息,包含:

  • 组件名称(例如"Inbound Parse"、"SMTP API"、"Web API"等)
  • 当前状态(可选值:"operational"、"degraded_performance"、"partial_outage"、"major_outage")
  • 状态更新时间戳
  • 状态描述(若有事件发生时会补充)

示例请求(使用curl)

curl https://status.sendgrid.com/api/v2/components.json

返回数据结构示例

[
  {
    "id": "xyz789",
    "name": "Web API",
    "status": "operational",
    "updated_at": "2024-05-20T14:30:00Z",
    "description": ""
  },
  {
    "id": "uvw456",
    "name": "SMTP Relay",
    "status": "degraded_performance",
    "updated_at": "2024-05-20T13:15:00Z",
    "description": "部分用户可能遇到投递延迟"
  }
]

需要注意:该API属于SendGrid状态页面的内部接口,官方未正式公开文档,未来存在变更风险。如果需要长期依赖,建议定期验证接口可用性,或考虑订阅SendGrid官方的状态通知(如邮件、Webhook)来获取实时状态更新。

内容的提问来源于stack exchange,提问作者Bryan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.19 06:35:32