Skip to main content

prefect.server.events.counting

Classes

InvalidEventCountParameters

Raised when the given parameters are invalid for counting events.

TimeUnit

Methods:

as_timedelta

auto

Exposes enum.auto() to avoid requiring a second import to use AutoEnum

database_label_expression

Returns the SQL expression to label a time bucket

database_value_expression

Returns the SQL expression to place an event in a time bucket

get_interval_spans

Divide the given range of dates into evenly-sized spans of interval units

validate_buckets

Countable

Methods:

auto

Exposes enum.auto() to avoid requiring a second import to use AutoEnum

get_database_query