usage.threshold_reached
API 版本 2026-10-affable-towhee
Lingara → 你 usage.threshold_reached
一個按用量計費的帳戶或用戶端已用掉每月支出上限的一部分。只會回報越過的最高門檻,因此用量從 40% 躍升到 95% 時,只會傳送一個 threshold_pct 為 90 的事件。從額度中扣費的整合永遠不會收到此事件。
權限範圍 events:readusage:read
傳遞方式 Webhook 事件源GET /v1/events 事件串流GET /v1/events/stream
酬載
idstring必填typestring必填created_atstring必填api_versionstring必填subjectstring必填dataUsageThresholdReachedData必填scopeThresholdScope必填threshold_pctinteger必填monthstring必填client_idstring | null選填
範例
{
"id": "lgr_evt_9e8d7c6b5a4f3e2d1c0b9a8f7e6d5c4b",
"type": "usage.threshold_reached",
"created_at": "2026-10-01T12:00:00Z",
"api_version": "2026-09-equipped-boxfish",
"subject": "lgr_sub_8f445eaad6febfab1731b2f8cb17c24e",
"data": {
"scope": "client",
"threshold_pct": 100,
"month": "2026-10",
"client_id": "lgr_cid_4hT9kQ2mZx7Lp1Vb8Nc3Rw"
}
}如譯文與英文參考文件有出入,以英文參考文件為準。