Monitor
A framework that simplifies implementation of dialect notification center integrations. The goal is to provide high-level developer API to extract on-chain data, transform it and generate notifications.
Monitor provides the following built-in features to implement a new notification center integration:
- Tracks dApp subscribers
- Continuously monitors on-chain resources like accounts for a set of your dApp subscribers
- Provides rich high-level API for data stream processing to analyze the data, extracted from on-chain resources
- Windowing: fixed size, fixed time, fixed size sliding
- Aggregation: average, min, max
- Thresholding: rising edge, falling edge
- Rate limiting
Installation
npm:
npm install @dialectlabs/monitor
yarn:
yarn add @dialectlabs/monitor
Development
Prerequisites
- Git
- Yarn (<2)
- Nodejs (>=15.10 <17)
Getting started with monitor development in this repo
Install dependencies
npm:
npm install
yarn:
yarn
Take a look at examples and corresponding readme file
After getting familiar with https://github.com/dialectlabs/monitor/blob/main/examples/README.md and examples you'll be ready to implement a new monitoring service.