Overview
Version information
Version : 1.0.0
URI scheme
Host : localhost:6767
BasePath : /
Schemes : HTTP
Consumes
-
application/json
Produces
-
application/json
Paths
Accepts risk event
POST /event
Description
Accepts general risk events for various entities and event types.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
body |
Object which hold information about occured risk event. |
body
Name | Description | Schema |
---|---|---|
date |
Example : |
string |
entityId |
Id of entity involved in risk action. |
string |
eventId |
Unique value of event. Event with same Id sent twice wouldn’t override preceeded one. |
string |
eventType |
One of following values: user, ip, session, application, device. |
string |
issuer |
Origin of event. |
string |
severityLevel |
Indicates how important action happened. Number between 0 and 10. |
integer |
Responses
HTTP Code | Description | Schema |
---|---|---|
204 |
Event accepted |
No Content |
400 |
Unsupported event |
No Content |
422 |
Cannot parse body |
No Content |
Finds risk level by event type and ID
GET /risk/{eventType}/{entityId}
Description
Returns risk level for particular event type and related entity.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
entityId |
Id of entity against which risk was calculated |
string |
Path |
eventType |
Type of risk event. Possible types are: user, ip, session, device, application. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Risk level for selected entity and event type |
|
400 |
Unsupported event type |
No Content |
Response 200
Name | Schema |
---|---|
risk |
integer |