MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / handleHighUsageAlert

Function handleHighUsageAlert

packages/billing/src/org-monitoring.ts:212–225  ·  view source on GitHub ↗
(
  params: OrganizationCreditAlert & {
    logger: Logger
  },
)

Source from the content-addressed store, hash-verified

210}
211
212async function handleHighUsageAlert(
213 params: OrganizationCreditAlert & {
214 logger: Logger
215 },
216): Promise<void> {
217 const { organizationId, usageAmount, logger } = params
218
219 // TODO: Send usage spike notification
220 // TODO: Provide usage breakdown and recommendations
221 logger.info(
222 { organizationId, usage: usageAmount },
223 'High usage alert sent to organization admins',
224 )
225}
226
227async function handleFailedConsumptionAlert(
228 params: OrganizationCreditAlert & {

Callers 1

sendOrganizationAlertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected