Skip to content
New issue

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

Add new DRF APIs for Alerts data #45

Closed
Lorygold opened this issue Jul 24, 2023 · 0 comments · Fixed by #46
Closed

Add new DRF APIs for Alerts data #45

Lorygold opened this issue Jul 24, 2023 · 0 comments · Fixed by #46
Assignees
Labels
feature Something new to be added

Comments

@Lorygold
Copy link
Collaborator

Implement 2 Django Rest Framework APIs:

AlertsAPI

Input: start and end datetime
Output: a JSON with a list of dictionaries each of which contains the timestamp, username and rule of the Alert triggered.
Example:

[
	{
	 "timestamp": "2023-06-15T14:00:00Z",
	 "username": "Lorena Goldoni",
	 "rule_name": "Impossible travel detected"
	},
	{"timestamp": "2023-06-15T14:30:00Z",
	 "username": "Lorena Goldoni",
	 "rule_name": "Login from new country"
	}
]

RiskScoreAPI

Input: start and end datetime
Output: a JSON with username as keys and the risk score as value.
Example:

{
	"Lorena Goldoni": "No risk",
	"Lory Goldoni": "High"
}
@Lorygold Lorygold self-assigned this Jul 24, 2023
@Lorygold Lorygold added the feature Something new to be added label Jul 24, 2023
@Lorygold Lorygold linked a pull request Jul 25, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Something new to be added
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants