-
-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hi there ✋
Feature
Know when (by whom, and how) an alert/event was seen
Motivation
As of today, knowledge of how events are taken into account by users is limited to is_acknowledged ,(a boolean) information.
The problem is that it doesn't contain any information about when (I think, tell if I am wrong) the information was seen and moreover it means: "I have seen this alert/event" AND "I no longer wish to see it on the platform".
However, having information about when the information was considered is important if we want to be able to estimate the time saved for firefighter (compared, for example, with an alert received via an emergency call).
Solutions ?
Update in pyro-api
A solution could be to add new fields to event table;
| Field | Type |
|---|---|
| viewed_at | datetime |
| viewed_by | user_id |
| viewed_with | UI_type (plateform, telegram, mail, etc) |
However : The suggestion here maybe poses a problem if several users see the information (only insert if field are empty to store the earlier info) (Maybe, as admin users, no info should be sent when seeing an alert ? so update those field only if the user_id is associated to the group_id of the owner_id of the device that have sent the alert ?
- Pro:
- Feature easy to implement
- Long-term storage of this information, and ease of implementation of associated dashboarding (dashboard building stats relating to our performance, requesting only the api).
It will be useful for the feedback we'll be doing on the summer experiments !
- Cons : too speficic to be stored in the api ?
Web Analytics App
Those information could be obtained setting up a web analytics app (like matomo, similar to google analytics but respecting privacy)
This will require a benchmark of the web analytics solution we want to use. Implementing it, and I tend to think that although it's necessary to implement one in general, for this specific use case, having the information in the API makes it easier to get the stats / performance of our solution. Moreover (I do not know it we would be able to monitor with ease those info if it cames from telegram or mail)
What do you think ?
Happy to discuss it ! 😄
This is a fairly important feature if we want to be able to get feedback from our experiments this summer !
Of course, there will be further developments to come on the platform side. We'll open dedicated issues once the back-end is clear :)