events
prefect.server.events.schemas.events
Functions
matches
Returns true if the given value matches the expected string, which may include a a negation prefix (“!this-value”) or a wildcard suffix (“any-value-starting-with*“)
Classes
Resource
An observable business object of interest to the user
Methods:
enforce_maximum_labels
requires_resource_id
id
name
prefect_object_id
Extracts the UUID from an event’s resource ID if it’s the expected kind of prefect resource
RelatedResource
A Resource with a specific role in an Event
Methods:
requires_resource_role
role
Event
The client-side view of an event that has happened to a Resource
Methods:
involved_resources
resource_in_role
Returns a mapping of roles to the first related resource in that role
resources_in_role
Returns a mapping of roles to related resources in that role
enforce_maximum_related_resources
receive
find_resource_label
Finds the value of the given label in this event’s resource or one of its
related resources. If the label starts with related:<role>:
, search for the
first matching label in a related resource with that role.
ReceivedEvent
The server-side view of an event that has happened to a Resource after it has been received by the server
Methods:
as_database_row
as_database_resource_rows
ResourceSpecification
Methods:
matches_every_resource
matches_every_resource_of_kind
includes
matches
items
pop
get
deepcopy
EventPage
A single page of events returned from the API, with an optional link to the next page of results
EventCount
The count of events with the given filter value