v1

latestOpenAPI 3.1.0raw.githubusercontent.com2024-11-08170291390.5 KB
Events

Count Account Events

Returns distinct objects and the count of events associated with them. Objects that can be counted include the day the event occurred, the type of event, or the IDs of the resources associated with the event.

post/api/events/count-by/{countable}

Path parameters

countable'day' | 'time' | 'event' | 'resource' required

An enumeration.

Headers

x-prefect-api-versionstring

Request body

time_unit'week' | 'day' | 'hour' | 'minute' | 'second'

An enumeration.

time_intervalnumber

Response

Successful Response

valuestring required

The value to use for filtering

labelstring required

The value to display for this count

countinteger required

The count of matching events

start_timestring date-time required

The start time of this group of events

end_timestring date-time required

The end time of this group of events