Add interface to query the events for an application
Enhancement
Applications can access the events Gatekeeper stores when they are interacted with. Add the interface to allow applications to query gatekeeper for these events.
The endpoint supports the following parameters:
- latest
- earliest
Both are optional and the endpoint will only return at most 100 events at a time. To page we would need to set latest or earliest based on the direction we are paging.
An event has the following structure:
{
"applicationId": "uuid",
"eventTime": "timestamp",
"id": "uuid",
"action": "string",
"outcome": "string",
"initiator": {
"id": "uuid",
"type": "string",
"name": "string",
"host": {
"agent": "string",
"address": "ip address"
}
},
"target": {
"id": "string",
"type": "string",
"name": "string",
"address": "string",
"requestPath": "string",
"query": "string",
"applicationId": "string"
}
}