Skip to content

Notification for approaching Net Debit Cap Threshold #518

Description

@elnyry-sam-k

Goal:
As a Hub Operator
I would like to provide Notification(s) for approaching NDC Threshold that is configurable
so that participating FSPs and the Hub Operator can be informed

Tasks:

  • Finalize the the CEP engine to be used [@vgenev, @bothadeon ]

  • Design notification strategy for notifications when a threshold on Net Debit Cap is reached

  • API to support setting threshold(s) for Notifications/Alerts

  • Scheduler

  • central-notification

    • Build a separate container and handler to be able to monitor the topics in current Kafka implementation[@vgenev, @bothadeon ]
    • Test the CEP monitor on the notifications topic for transfers[@vgenev, @bothadeon ]
    • Refine the filtering of the message and the observables when the transfer messages gets loaded onto the notification topic[@vgenev, @bothadeon ]
  • Persitence store as per diagram

    • Investigate and decide on the best persitence store for the JSOn messages , Views and rules for the rules engine [@vgenev, @bothadeon ]
    • Build schemas for the JSON persistence store and test [@vgenev, @bothadeon ]
    • Test and deploy persitence store in a Docker container [@vgenev, @bothadeon ]
    • _DB design to support setting multiple alarm thresholds [@vgenev, @bothadeon ]
    • Design Mechanism to trigger a notification for breaching the threshold [@vgenev, @bothadeon ]
  • Rules engine

  • Central services database

    • Design participant notification preferences[@vgenev, @bothadeon ]
    • Implement the notification preference for dfsp with endpoints[@vgenev, @bothadeon ]
    • Add an endpoint to the Admin - Central Ledger API to get the current Net Debit Cap threshold value for the DFSP .[@vgenev, @bothadeon ]
    • Add an endpoint to the Admin - Central Ledger API to update the current Net Debit Cap threshold value for the DFSP .[@vgenev, @bothadeon ]
  • Notifier

    • Email - primary means of notifications (for Net Debit Cap Threshold breaches)[@vgenev, @bothadeon ]
    • Finalize mechanism to notify an FSP[@vgenev, @bothadeon ]
    • Implement the Notifier(Mailer)[@vgenev, @bothadeon ]
    • Implement the mail message template builder (Mailer)[@vgenev, @bothadeon ]
    • Provision to reset the counter at a configurable time (at the start of the day? ) [alarm counter - to limit the number of times a breach on the same threshold is reported]
  • On-Boarding

    • Tasks necessary to make sure that as part of on-boarding, FSPs configure an e-mail ID for notifications on threshold breaches (on Net Debit Cap .[@vgenev, @bothadeon ]
  • Add JSDocs .[@vgenev, @bothadeon ]

  • Automated Tests (Unit tests covered in Automated testing - unit, etc tests for email-notifier component #559 )

  • Release feature

  • Release feature

  • Notification system documentation

  • Deployment (Circle CI & Github Repo)

  • Interim DA review on progress and decisions made. (Demo)

Acceptance Criteria:

  • FSPs should be able to set a threshold on the Net Debit Cap, so that they receive a notification when it is reached.
  • Based on the threshold set, a notification (or notifications) is (/are) sent to an FSP when that threshold is set
  • Both FSPs and the Hub Operator receive these alerts/notifications

PRs

  • [ ]

Dependencies:

  • None currently

Accountability:

Notes:

  • For a given threshold, during a given period - limit the number of notifications to 3. This number to be reset a the configured time.
  • For the MVP, a single threshold is sufficient
  • As a future extension to this, multiple thresholds need to be supported and notifications based on that.
  • Review email functionality done earlier for Settlements to see if it can be re-used

Activity

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions