Lingara Lingara 說明文件 學習指南 API 程式庫 App 建立 網頁版
語言: 粵語

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"
  }
}

如果譯本同英文參考文件有出入,以英文參考文件為準。