Skip to content

[606] Issue #102: Build Subscriber Health Monitoring Dashboard Script - #785

Merged
orunganiekan merged 1 commit into
SiLioLabs:masterfrom
Goodnessukaigwe:fix/606-issue-102-build-subscriber-health-monitoring-dashboard-script
Jul 31, 2026
Merged

[606] Issue #102: Build Subscriber Health Monitoring Dashboard Script#785
orunganiekan merged 1 commit into
SiLioLabs:masterfrom
Goodnessukaigwe:fix/606-issue-102-build-subscriber-health-monitoring-dashboard-script

Conversation

@Goodnessukaigwe

Copy link
Copy Markdown
Contributor

Summary

  • Adds scripts/subscriber-health-dashboard.ts producing { total_active, low_allowance_count, grace_period_active_count, paused_count, trial_active_count, expiring_ttl_count }.
  • Supports --format table, --detail detail.csv, RPC getLedgerEntries batching (≤200 keys), archived/requires-restore tracking, and stderr progress.
  • Low allowance = allowance < amount × 2; expiring TTL = remaining ledgers < 500,000 (configurable).

Closes #606

Test plan

  • cd scripts && npm ci && npx tsc --noEmit
  • npx tsx subscriber-health-dashboard.ts --help
  • CONTRACT_ID=... npx tsx subscriber-health-dashboard.ts (JSON summary)
  • CONTRACT_ID=... npx tsx subscriber-health-dashboard.ts --format table --detail /tmp/detail.csv
  • Confirm progress lines on stderr and run completes for modest subscriber counts

Made with Cursor

@drips-wave

drips-wave Bot commented Jul 30, 2026

Copy link
Copy Markdown

@Goodnessukaigwe 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

@Goodnessukaigwe
Goodnessukaigwe force-pushed the fix/606-issue-102-build-subscriber-health-monitoring-dashboard-script branch from f6c5f66 to 197f5a1 Compare July 30, 2026 22:33
Aggregate active, low-allowance, grace, paused, trial, and expiring-TTL
counts with JSON/table/CSV output and batched RPC ledger reads.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Goodnessukaigwe
Goodnessukaigwe force-pushed the fix/606-issue-102-build-subscriber-health-monitoring-dashboard-script branch from 197f5a1 to 5aa37d5 Compare July 31, 2026 12:18
@orunganiekan
orunganiekan merged commit 53f01f7 into SiLioLabs:master Jul 31, 2026
0 of 2 checks passed
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.

## Issue #102: Build Subscriber Health Monitoring Dashboard Script

2 participants