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"
}
}如译文与英文参考文档不一致,以英文参考文档为准。