We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After deployment in testbed, alerts dashboard fails with error:
TypeError: Cannot read property 'map' of undefined at Alerts.js:26
Code:
loadData() { axios.get(process.env.REACT_APP_BACKEND_HOST + '/v1/alerts') .then((response) => { const alerts = response.data.alerts.map(alert => { alert.updated_at = new Date(1000 * alert.updated_at); return alert; }); ...
There is no alerts root in alerts payload:
alerts
[ { "id": "falco-alert-attach/exec-pod-pod-arangodb-7fc5bc8fbc-bz7w2-rca", "origin": "falco", "name": "Attach/Exec Pod", "message": "18:27:54.593231872: Notice Attach/Exec to pod (user=kubernetes-admin pod=arangodb-7fc5bc8fbc-bz7w2 ns=rca action=exec command=python3)", "severity": "Notice", "source": { "origin": null, "kind": null, "properties": { "name": null, "namespace": "n/a" } }, "created_at": "1598293671", "updated_at": "1598293683" },
The text was updated successfully, but these errors were encountered:
bzurkowski
Successfully merging a pull request may close this issue.
After deployment in testbed, alerts dashboard fails with error:
Code:
There is no
alerts
root in alerts payload:The text was updated successfully, but these errors were encountered: