prefect.server.events.schemas.automations
Classes
Posture
Methods:
auto
enum.auto()
to avoid requiring a second import to use AutoEnum
TriggerState
Methods:
auto
enum.auto()
to avoid requiring a second import to use AutoEnum
Trigger
Base class describing a set of criteria that must be satisfied in order to trigger
an automation.
Methods:
all_triggers
automation
create_automation_state_change_event
model_validate_list
parent
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
reset_ids
CompositeTrigger
Requires some number of triggers to have fired within the given time period.
Methods:
actions
all_triggers
as_automation
child_trigger_ids
create_automation_state_change_event
describe_for_cli
num_expected_firings
owner_resource
ready_to_fire
set_deployment_id
CompoundTrigger
A composite trigger that requires some number of triggers to have
fired within the given time period
Methods:
num_expected_firings
ready_to_fire
validate_require
SequenceTrigger
A composite trigger that requires some number of triggers to have fired
within the given time period in a specific order
Methods:
expected_firing_order
ready_to_fire
ResourceTrigger
Base class for triggers that may filter by the labels of resources.
Methods:
actions
as_automation
covers_resources
describe_for_cli
owner_resource
set_deployment_id
EventTrigger
A trigger that fires based on the presence or absence of events within a given
period of time.
Methods:
bucketing_key
covers
create_automation_state_change_event
enforce_minimum_within_for_proactive_triggers
event_pattern
expects
immediate
meets_threshold
starts_after
AutomationCore
Defines an action a user wants to take when a certain number of events
do or don’t happen to the matching resources
Methods:
model_validate_list
prevent_run_deployment_loops
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
trigger_by_id
triggers
triggers_of_type
Automation
Methods:
model_validate
AutomationCreate
AutomationUpdate
AutomationPartialUpdate
AutomationSort
Defines automations sorting options.
Methods:
auto
enum.auto()
to avoid requiring a second import to use AutoEnum
Firing
Represents one instance of a trigger firing
Methods:
all_events
all_firings
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.
validate_trigger_states
TriggeredAction
An action caused as the result of an automation
Methods:
all_events
all_firings
idempotency_key
model_validate_list
reset_fields
_reset_fields
set.
Returns:
- A new instance of the model with the reset fields.