EventQuery
Count Events
Changed onQuery the API for a count of matching events
Sample Request
curl -X POST 'https://api.jumpcloud.com/insights/directory/v1/events/count' -H 'Content-Type: application/json' -H 'x-api-key: REPLACE_KEY_VALUE' --data '{"service": ["all"], "start_time": "2021-07-14T23:00:00Z", "end_time": "2021-07-28T14:00:00Z", "sort": "DESC", "fields": ["timestamp", "event_type", "initiated_by", "success", "client_ip", "provider", "organization"]}'
post/events/count
Request
- Base URLhttps://api.jumpcloud.com/insights/directory/v1
- AuthAPI key in header x-api-key and API key in header x-org-id
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
Count of matching event rows
Changes
- breaking
added required request body
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status
- breaking