Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Fake alert creation endpoint to test API query #7

Open
mwakaba2 opened this issue Mar 30, 2022 · 0 comments
Open

[FEATURE] Fake alert creation endpoint to test API query #7

mwakaba2 opened this issue Mar 30, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@mwakaba2
Copy link
Collaborator

mwakaba2 commented Mar 30, 2022

Problem

As an app developer, I'd like to quickly check if certain alert results are getting integrated properly with my app. For example, I'd like to see if alerts emitted on chain X are getting displayed correctly in the UI. However, to get the alert results I need, I have to find an agent that'll emit on chain X and wait for it to emit an alert. If the alerts I'm expecting is rare, and there are no agents on the network currently emitting the alert, I'd need to create/deploy an example agent to emit the alert I'm expecting.

Proposed Solution

To reduce the testing time, I'd like to be able to create a fake alert via an API endpoint that meets the criteria I'm testing for and query the fake alert.

For example, if I want a specific alert on the polygon network, I could create an alert just by specifying the polygon chainId in the payload. If I don't specify any other fields for the alert, I can expect the endpoint to fill the missing fields with default or generated fake values and add the new alert into a database that can be queried via the API.

POST /createAlert { "chainId": polygon_id }
@mwakaba2 mwakaba2 added the enhancement New feature or request label Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant