createQuotaBudgetStrategy
このコンテンツはまだ日本語訳がありません。
createQuotaBudgetStrategy(
config):RateLimitStrategy
Defined in: packages/core/src/rest/quota.ts:62
Creates a cost-based daily quota strategy (used by YouTube).
Parameters
Section titled “Parameters”config
Section titled “config”quota budget configuration with limits and cost map
Returns
Section titled “Returns”a RateLimitStrategy backed by daily quota tracking
Precondition
Section titled “Precondition”costMap maps bucketId strings to their quota costs
Postcondition
Section titled “Postcondition”acquire() throws QuotaExhaustedError when quota is exceeded
Idempotency
Section titled “Idempotency”Not idempotent — each acquire() consumes quota