mento-protocol / governance-watchdog

A system that monitors Mento Governance events on-chain and sends notifications about them to Discord and Telegram
0 stars 0 forks source link

feat: add parsing of health check event #4

Closed nvtaveras closed 3 months ago

nvtaveras commented 3 months ago

This adds the parsing of a second event, MedianUpdated (from SortedOracles), which acts as a health check/heartbeat for the cloud function, as it's a frequently emitted event that can serve as an indicator of quicknode working properly.

The parsing of the event results in a single console.log of the action, which will then be used for creating a metric on Google Cloud Monitoring around how many heartcheck logs are present in a given timespan.