/v1/health
使用 health
節點檢查 WhatsApp Business API 客戶端的狀態。此節點會對閘道器的健康狀況執行採樣,並傳回 JSON 回應。
GET /v1/health
回應會提供閘道器的健康狀態。
{ "health": { "gateway_status": "connected | connecting | uninitialized | unregistered" } }
{ "health": { "your-hostname1:your-container-id1": { "gateway_status": "connected | connecting | disconnected | uninitialized | unregistered", "role": "primary_master | secondary_master | coreapp" }, "your-hostname2:your-container-id2": { "gateway_status": "connected | connecting | disconnected | uninitialized | unregistered", "role": "primary_master | secondary_master | coreapp" }, } }
名稱 | 描述 | 類型 |
---|---|---|
|
| 物件 |
| 核心應用程式與 WhatsApp 伺服器的連接狀態。
| 字串 |
| 容器在高可用性/多點連線設定中的角色 | 字串 |