prefect.events.filters

Classes

AutomationFilterCreated

Filter by Automation.created. Methods:

model_validate_list

model_validate_list(cls, obj: Any) -> list[Self]

reset_fields

reset_fields(self: Self) -> Self
Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

AutomationFilterName

Filter by Automation.created. Methods:

model_validate_list

model_validate_list(cls, obj: Any) -> list[Self]

reset_fields

reset_fields(self: Self) -> Self
Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

AutomationFilter

Methods:

model_validate_list

model_validate_list(cls, obj: Any) -> list[Self]

reset_fields

reset_fields(self: Self) -> Self
Reset the fields of the model that are in the _reset_fields set. Returns:
  • A new instance of the model with the reset fields.

EventDataFilter

A base class for filtering event data. Methods:

excludes

excludes(self, event: Event) -> bool
Would the given filter exclude this event?

get_filters

get_filters(self) -> list['EventDataFilter']

includes

includes(self, event: Event) -> bool
Does the given event match the criteria of this filter?

model_validate_list

model_validate_list(cls, obj: Any) -> list[Self]

reset_fields

reset_fields(self: Self) -> Self
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:

excludes

excludes(self, event: Event) -> bool
Would the given filter exclude this event?

get_filters

get_filters(self) -> list['EventDataFilter']

includes

includes(self, event: Event) -> bool

includes

includes(self, event: Event) -> bool
Does the given event match the criteria of this filter?

EventNameFilter

Methods:

excludes

excludes(self, event: Event) -> bool
Would the given filter exclude this event?

get_filters

get_filters(self) -> list['EventDataFilter']

includes

includes(self, event: Event) -> bool

includes

includes(self, event: Event) -> bool
Does the given event match the criteria of this filter?

EventResourceFilter

Methods:

excludes

excludes(self, event: Event) -> bool
Would the given filter exclude this event?

get_filters

get_filters(self) -> list['EventDataFilter']

includes

includes(self, event: Event) -> bool

includes

includes(self, event: Event) -> bool
Does the given event match the criteria of this filter?

EventRelatedFilter

Methods:

excludes

excludes(self, event: Event) -> bool
Would the given filter exclude this event?

get_filters

get_filters(self) -> list['EventDataFilter']

includes

includes(self, event: Event) -> bool
Does the given event match the criteria of this filter?

EventAnyResourceFilter

Methods:

excludes

excludes(self, event: Event) -> bool
Would the given filter exclude this event?

get_filters

get_filters(self) -> list['EventDataFilter']

includes

includes(self, event: Event) -> bool

includes

includes(self, event: Event) -> bool
Does the given event match the criteria of this filter?

EventIDFilter

Methods:

excludes

excludes(self, event: Event) -> bool
Would the given filter exclude this event?

get_filters

get_filters(self) -> list['EventDataFilter']

includes

includes(self, event: Event) -> bool

includes

includes(self, event: Event) -> bool
Does the given event match the criteria of this filter?

EventOrder

Methods:

auto

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

EventFilter

Methods:

excludes

excludes(self, event: Event) -> bool
Would the given filter exclude this event?

get_filters

get_filters(self) -> list['EventDataFilter']

includes

includes(self, event: Event) -> bool
Does the given event match the criteria of this filter?