automations
prefect.server.events.schemas.automations
Classes
Posture
TriggerState
Trigger
Base class describing a set of criteria that must be satisfied in order to trigger an automation.
Methods:
automation
parent
reset_ids
Resets the ID of this trigger and all of its children
all_triggers
Returns all triggers within this trigger
create_automation_state_change_event
CompositeTrigger
Requires some number of triggers to have fired within the given time period.
Methods:
create_automation_state_change_event
Returns a ReceivedEvent for an automation state change into a triggered or resolved state.
all_triggers
child_trigger_ids
num_expected_firings
ready_to_fire
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:
covers_resources
EventTrigger
A trigger that fires based on the presence or absence of events within a given period of time.
Methods:
enforce_minimum_within_for_proactive_triggers
covers
immediate
Does this reactive trigger fire immediately for all events?
event_pattern
A regular expression which may be evaluated against any event string to determine if this trigger would be interested in the event
starts_after
expects
bucketing_key
meets_threshold
create_automation_state_change_event
Returns a ReceivedEvent for an automation state change into a triggered or resolved state.
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:
triggers
Returns all triggers within this automation
triggers_of_type
Returns all triggers of the specified type within this automation
trigger_by_id
Returns the trigger with the given ID, or None if no such trigger exists
prevent_run_deployment_loops
Detects potential infinite loops in automations with RunDeployment actions
Automation
Methods:
model_validate
AutomationCreate
AutomationUpdate
AutomationPartialUpdate
AutomationSort
Defines automations sorting options.
Firing
Represents one instance of a trigger firing
Methods:
validate_trigger_states
all_firings
all_events
TriggeredAction
An action caused as the result of an automation
Methods:
idempotency_key
Produce a human-friendly idempotency key for this action