Alerts are based on Monitor's triggers configured by the User
Last updated 1 year ago
Retrieve dapp's related alerts
List of dapp's alerts
const response = await fetch('https://api.getsumer.com/me/dapps/{dappId}/alerts', { method: 'GET', headers: {}, }); const data = await response.json();
{ "alerts": [ { "id": "text", "monitor": { "id": "text", "description": "text", "conditions": [ { "column": "text", "value": "text" } ], "metric": { "evaluation": "text", "timeframe": { "value": "text", "unit": 0 } }, "trigger": { "threshold": "text", "type": "text", "value": 0 } }, "impact": { "total": 0, "percentage": 0 }, "createdAt": "text" } ], "total": 0 }