Skip to main content

prefect.server.events.filters

Classes

AutomationFilterCreated

Filter by Automation.created. Methods:

as_sql_filter

Generate SQL filter from provided filter parameters. If no filters parameters are available, return a TRUE filter.

AutomationFilterName

Filter by Automation.created. Methods:

as_sql_filter

Generate SQL filter from provided filter parameters. If no filters parameters are available, return a TRUE filter.

AutomationFilterTags

Filter by Automation.tags. Methods:

as_sql_filter

AutomationFilter

Methods:

as_sql_filter

EventDataFilter

A base class for filtering event data. Methods:

build_where_clauses

Convert the criteria to a WHERE clause.

excludes

Would the given filter exclude this event?

get_filters

includes

Does the given event match the criteria of this filter?

model_validate_list

reset_fields

Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

EventOccurredFilter

Methods:

build_where_clauses

clamp

Limit how far the query can look back based on the given duration

excludes

Would the given filter exclude this event?

get_filters

includes

includes

Does the given event match the criteria of this filter?

EventNameFilter

Methods:

build_where_clauses

excludes

Would the given filter exclude this event?

get_filters

includes

includes

Does the given event match the criteria of this filter?

EventResourceFilter

Methods:

build_where_clauses

excludes

Would the given filter exclude this event?

get_filters

includes

includes

Does the given event match the criteria of this filter?

EventRelatedFilter

Methods:

build_where_clauses

excludes

Would the given filter exclude this event?

get_filters

includes

Does the given event match the criteria of this filter?

EventAnyResourceFilter

Methods:

build_where_clauses

excludes

Would the given filter exclude this event?

get_filters

includes

includes

Does the given event match the criteria of this filter?

EventIDFilter

Methods:

build_where_clauses

excludes

Would the given filter exclude this event?

get_filters

includes

includes

Does the given event match the criteria of this filter?

EventTextFilter

Filter by text search across event content. Methods:

build_where_clauses

Build SQLAlchemy WHERE clauses for text search

excludes

Would the given filter exclude this event?

get_filters

includes

Check if this text filter includes the given event.

includes

Does the given event match the criteria of this filter?

EventOrder

Methods:

auto

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

EventFilter

Methods:

build_where_clauses

excludes

Would the given filter exclude this event?

get_filters

includes

Does the given event match the criteria of this filter?

logical_limit

The logical limit for this query, which is a maximum number of rows that it could return (regardless of what the caller has requested). May be used as an optimization for DB queries