Skip to content

[M2][Epic 2.1] Implement monitors with scheduling and filters #62

@POWDER-RANGER

Description

@POWDER-RANGER

Problem

Build monitor abstraction layer allowing scheduled ingestion runs with keyword/sentiment filters.

Tasks

  • Create monitors table (schedule, filters, source associations)
  • Implement POST /api/monitors (create)
  • Implement PUT /api/monitors/{id}/start (activate)
  • Implement PUT /api/monitors/{id}/stop (deactivate)
  • Add cron-based scheduler (node-cron or pg-cron)
  • Support hourly/daily schedule options
  • Apply filters (keywords, sentiment range) during ingestion
  • Log monitor execution history

Acceptance Criteria

  • ✅ Monitor runs hourly without manual intervention
  • ✅ Filters applied correctly (unit tested)
  • ✅ Monitor status trackable via dashboard

Priority: P1 - High
Labels: backend, monitoring, M2, P1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions