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

Headers

x-prefect-api-version
string

Path Parameters

countable
enum<string>
required
Available options:
day,
time,
event,
resource

Body

application/json
filter
object
required
time_unit
enum<string>
Available options:
week,
day,
hour,
minute,
second
time_interval
number
default: 1

Response

200 - application/json
value
string
required

The value to use for filtering

label
string
required

The value to display for this count

count
integer
required

The count of matching events

start_time
string
required

The start time of this group of events

end_time
string
required

The end time of this group of events