getReachedPlanUsageLimitKeys (billing/billing-limits.ts)

appwrite · apps/console/src/lib/billing/billing-limits.ts · typescript · BSD-3-Clause
realtime

* Helpers for organization/project `billingLimits` from Cloud aggregation. Cloud stores percentage-of-plan usage for resources that crossed 100% (see Aggregator::initializePlanResourceMax + TeamAggregation::sendUsageAlerts). `budgetLimit` is a separate paid-plan budget-cap signal

// Source: https://github.com/appwrite/appwrite | License: BSD-3-Clause | Copyright 2019 Appwrite (https://appwrite.io) and individual contributors
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Helpers for organization/project `billingLimits` from Cloud aggregation.
 *
 * Cloud stores percentage-of-plan usage for resources that crossed 100%
 * (see Aggregator::initializePlanResourceMax + TeamAggregation::sendUsageAlerts).
 * `budgetLimit` is a separate paid-plan budget-cap signal (percentage of the
 * configured dollar budget), handled by {@link isBudgetLimitReached}.
 */

/** Resource keys Cloud may put on `billingLimits` when usage >= 100%. */
export const BILLING_LIMIT_RESOURCE_LABELS = {
  bandwidth: 'Bandwidth',
  storage: 'Storage',
  users: 'Users',
  execu

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key