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}
Headers
x-prefect-api-version
string
Path Parameters
countable
enum<string>
requiredAvailable options:
day
, time
, event
, resource
Body
application/json
filter
object
requiredtime_unit
enum<string>
Available options:
week
, day
, hour
, minute
, second
time_interval
number
default: 1Response
200 - application/json
value
string
requiredThe value to use for filtering
label
string
requiredThe value to display for this count
count
integer
requiredThe count of matching events
start_time
string
requiredThe start time of this group of events
end_time
string
requiredThe end time of this group of events
Was this page helpful?