GetEventTypeCountsAsync

Retrieves a count of events by event type given the specified criteria. Returns ()

Overview of GetEventTypeCountsAsync goes here.

Name Description
folder
includeChild
priorityThreshold
startingOn
endingOn
forKeys Limit the results to events that are linked to at least one of these keys
forAllKeys Limit the results to events that are linked to all of these keys (usefully for finding events for a person at a reader)

Get Event Type Counts Async

Example in C#

// Returns: IEnumerable<EventTypeCountItem>
var eventTypeCountItem = await client.GetEventTypeCountsAsync(FolderInfo folder, Boolean includeChild, Int32 priorityThreshold, DateTime startingOn, DateTime endingOn, String forKeys, String forAllKeys);

Example in CURL



            curl -X GET \
               https://api.us.acresecurity.cloud/api/f/INSTANCE.KEY/events/count-by-event-type?spanScope=False&priorityThreshold=10&startingOn=2025-08-01T00:00:00Z&endingOn=2025-08-02T00:00:00&forKeys=KEY1&forKeys=KEY2&forAllKeys=KEY3&forAllKeys=KEY4 \
               -H 'Authorization: Bearer  TOKEN_GOES_HERE'\
               -H 'Content-Type: application/json'