{"repo":"cowprotocol/dune-alerts","free":true,"listed":false,"github":"https://github.com/cowprotocol/dune-alerts","clone":"git clone https://github.com/cowprotocol/dune-alerts.git","description":"A general purpose tool for generating Slack Alerts via query results from Dune Analytics","language":"Python","stars":19,"topics":["alerting","dune-analytics","monitoring-tool","slack-api","slack-bot","hacktoberfest"],"license":null,"category":"analytics","readme_excerpt":"Query Monitor / Dune Alerts This package combines both DuneAPI and SlackClient in a way that can send alerts in slack based on dune query results. To run this monitoring system will require the following steps: 1. An account on Dune Analytics and a query you would like to monitor. 2. An existing slack bot (Create a Slack App) To run the query monitor (for a single query) you will need to provide Dune credentials and Slack app details. Namely, the environment variables supplied in the sample env file. Query Monitor from Configuration Query Monitor objects are loaded from a yaml configuration file taking the following form: where DUNE QUERY ID is found in the url of your existing query. Concretely, it is the integer at the end of this url https://dune.com/queries/857522. For more examples on query parameter configuration, checkout our test examples ./tests/data With all the configuration in place, then you can run the alerter with where QUERY CONFIG PATH is a filepath to the yaml file containing your query configuration. This will load the query details, refresh the query with given parameters, fetch the results and send an alert to the configured Slack channel if warranted. Run with Docker From the root of this project, assuming you have a .env file with dune and slack credentials and a query configuration config.yaml","default_branch":null,"files":null,"tree":[],"storefront":"/r/cowprotocol","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cowprotocol/dune-alerts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}