This controller will answer post request from the agents with the incident they want to submit. It will use the agents module to check if the agent exists. If it doesn't exist an error will be reported. If it exists the incident will be stored in the database (at least for now, later we will modify this to store just some incidents) and the incident will be sent through kafka so the dashboard can receive it and process it.
This controller will answer post request from the agents with the incident they want to submit. It will use the agents module to check if the agent exists. If it doesn't exist an error will be reported. If it exists the incident will be stored in the database (at least for now, later we will modify this to store just some incidents) and the incident will be sent through kafka so the dashboard can receive it and process it.