You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Input: start and end Datetime
Output:
A JSON with user risk as keys and user count as value.
Example:
{ "No risk": 32
"Low": 2
"Medium": 86
"High": 4
}
AlertsLineChart
Input: start and end Datetime
Output:
A dictionary containing a list of datetime and a value rapresenting the amount of data for that datetime.
The data is formatted differentrly based on start and end time duration. There are three types of formats:
hour
day
month
Example:
Request using start=2023-06-15T14:00:00Z and end=2023-06-15T16:00:00Z
Implement three views using DRF:
UsersPieChart
Input:
start
andend
DatetimeOutput:
A JSON with user risk as keys and user count as value.
Example:
AlertsLineChart
Input:
start
andend
DatetimeOutput:
A dictionary containing a list of datetime and a value rapresenting the amount of data for that datetime.
The data is formatted differentrly based on start and end time duration. There are three types of formats:
Example:
Request using start=2023-06-15T14:00:00Z and end=2023-06-15T16:00:00Z
Request using start=2023-06-15T00:00:00Z and end=2023-06-16T23:59:59Z
Request using start=2023-05-01T00:00:00Z and end=2023-06-31:23:59:59Z
WorldMapChart
Input:
start
andend
DatetimeOutput:
A list of country with the amount of alerts for each one:
The text was updated successfully, but these errors were encountered: