Skip to content

feat: implement usage threshold alerting with multi-channel notificat…#689

Open
debbieAmoni wants to merge 1 commit into
Smartdevs17:mainfrom
debbieAmoni:feat/usage-threshold-alerting
Open

feat: implement usage threshold alerting with multi-channel notificat…#689
debbieAmoni wants to merge 1 commit into
Smartdevs17:mainfrom
debbieAmoni:feat/usage-threshold-alerting

Conversation

@debbieAmoni

Copy link
Copy Markdown

…ions

  • Add ThresholdEvaluator with cooldown tracking (6h min between alerts)
  • Implement AlertingService with burn rate calculation & escalation
  • Create multi-channel notification templates (in-app, email, push, SMS)
  • Add REST API for alert configuration management
  • Implement mobile UsageAlertsScreen for threshold config
  • Add database schema for metrics, configs, alerts, approvals
  • Add ThresholdEvaluatorJob cron (runs every 5 minutes)
  • Support edge cases: plan changes, mid-cycle usage resets

Pull Request Checklist

Quality Gates (All must pass before merge)

  • Lint: Code passes ESLint and Prettier checks
  • Type Check: TypeScript compilation succeeds
  • Tests: All tests pass
  • Build: Project builds successfully
  • Rust Format: Smart contract formatting is correct
  • Rust Clippy: Smart contract linting passes
  • Rust Tests: All smart contract tests pass
  • Rust Build: Smart contracts compile successfully

Additional Requirements

  • New code has appropriate TypeScript types
  • No hardcoded secrets or credentials
  • New features have corresponding tests
  • Documentation updated if needed

Reviewers

  • At least 1 approval required for merge
  • All CI checks must be green

This PR will not be mergeable until all quality gates pass.
closes #573

…ions

  - Add ThresholdEvaluator with cooldown tracking (6h min between alerts)
  - Implement AlertingService with burn rate calculation & escalation
  - Create multi-channel notification templates (in-app, email, push, SMS)
  - Add REST API for alert configuration management
  - Implement mobile UsageAlertsScreen for threshold config
  - Add database schema for metrics, configs, alerts, approvals
  - Add ThresholdEvaluatorJob cron (runs every 5 minutes)
  - Support edge cases: plan changes, mid-cycle usage resets
@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@debbieAmoni Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement usage threshold alerting with multi-channel notification

1 participant