Get Entity Events Total by Tenant
Learn how to get statistics on all events of an entity per facet.
Use this endpoint to get statistics of all of the events of an entity grouped by type of event, time, and entity URIs.
Request
GET {TenantURL}/{entity object URI}/_events/_total?facet={list_of_facets}
Parameter | Required | Description | |
---|---|---|---|
Headers | Authorization
| Yes | Information about authentication access token in the format "Bearer <accessToken> ". For more information, see Authentication API. |
Query | facet
| Yes | A comma-separated list of facets to apply for search query. Group results by:
|
types
| No | A comma-separated list of event types to filter by. Possible values:CREATED , UPDATED ,DELETED , DELETED_GDPR , POTENTIAL_MATCHES_FOUND , POTENTIAL_MATCHES_REMOVED , MERGED , MERGED_MANUALLY , MERGED_ON_THE_FLY , SPLITTED , NOT_MATCHES_SET , AS_MATCHES_SET , AS_MATCHES_RESET , NOT_MATCHES_RESET , NOT_A_MATCH_FOUND , NOT_A_MATCH_REMOVED , ENTITY_LOST_MERGE . For more information on events, see topic Events API |
Response
The response body contains the statistics of all events of the entity per facet.Example
RequestFor example, get statistics of all of the events of the 01c8VFO
entity grouping per type of event and year.
GET {TenantURL}/entities/01c8VFO/_events/_total?facet=type,year
Headers: Authorization: Bearer 204938ca-2cf7-44b0-b11a-1b4c59984512
Response
{
"total": 4,
"facets": {
"year": [
{
"term": "2024",
"count": 4
}
],
"type": [
{
"term": "UPDATED",
"count": 2
},
{
"term": "MERGED_ON_THE_FLY",
"count": 1
},
{
"term": "CREATED",
"count": 1
}
]
}
}
Errors
Status Code | Message | Description |
---|---|---|
400 | Invalid Facet Type |
|
400 | Unknown Event Type |
|
400 | Unsupported Request |
|
500 | The operation is forbidden for the current user, please check your privileges |
|