Skip to content

feat: implement subscription SLA monitoring with breach alerts (#779)#808

Open
morelucks wants to merge 1 commit into
Smartdevs17:mainfrom
morelucks:feature/subscription-sla-monitoring-779
Open

feat: implement subscription SLA monitoring with breach alerts (#779)#808
morelucks wants to merge 1 commit into
Smartdevs17:mainfrom
morelucks:feature/subscription-sla-monitoring-779

Conversation

@morelucks

Copy link
Copy Markdown
Contributor

Description

Closes #779

This PR introduces real-time subscription SLA monitoring with breach detection, automated alerting, credit management, analytics, and reporting.

Summary of Changes

  • SLA Definitions per Tier: Added DEFAULT_SLA_TARGETS in subscriptionSla.ts for Free, Basic, Standard, Premium, and Enterprise tiers (uptime, response time, error rate, latency, credit %, max credit cap).
  • Real-Time SLA Tracking: Implemented metric sample ingestion with ring-buffer sample storage (up to 1,000 samples) and automatic evaluation in subscriptionSlaMonitorService.ts.
  • Breach Detection & Alerts: Severity classification (warning, minor, major, critical) based on target deviation percentage; automatic breach creation, local notification dispatch via notificationService.ts, and auto-resolution when metrics recover.
  • SLA Credits: Automated calculation of credit issuance per breach severity multiplier with cap enforcement per tier.
  • State Management & Hooks: Built subscriptionSlaStore.ts (Zustand with persistence) and React hook useSubscriptionSlaMonitor.ts.
  • Backend Service: Implemented subscriptionSlaMonitoring.ts integrated into the backend service registry.
  • Reporting & Documentation: Added SLA analytics, dashboard summaries, report generation (daily/weekly/monthly/quarterly), and subscription-sla-monitoring.md.

…devs17#779)

- Add tier-based SLA definitions and default targets (free, basic, standard, premium, enterprise)
- Implement real-time subscription SLA metric tracking and compliance evaluation
- Add breach detection with severity classification and auto-resolving capabilities
- Implement SLA breach alert generation and local notification integration
- Add SLA credit calculation and balance tracking per subscription
- Build subscription SLA Zustand store and React hook (useSubscriptionSlaMonitor)
- Create backend subscription SLA monitoring service with alerting integration
- Add comprehensive SLA analytics, reporting, dashboard generation, and documentation

Closes Smartdevs17#779
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@morelucks 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 subscription SLA monitoring with breach alerts

1 participant