Skip to main content

prefect.events.actions

Classes

Action

An Action that may be performed when an Automation is triggered Methods:

describe_for_cli

A human-readable description of the action

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.

DoNothing

Do nothing when an Automation is triggered Methods:

describe_for_cli

A human-readable description of the action

DeploymentAction

Base class for Actions that operate on Deployments and need to infer them from events Methods:

describe_for_cli

A human-readable description of the action

selected_deployment_requires_id

RunDeployment

Runs the given deployment with the given parameters Methods:

selected_deployment_requires_id

PauseDeployment

Pauses the given Deployment Methods:

selected_deployment_requires_id

ResumeDeployment

Resumes the given Deployment Methods:

selected_deployment_requires_id

ChangeFlowRunState

Changes the state of a flow run associated with the trigger Methods:

describe_for_cli

A human-readable description of the action

CancelFlowRun

Cancels a flow run associated with the trigger Methods:

describe_for_cli

A human-readable description of the action

DeleteFlowRun

Deletes a flow run associated with the trigger Methods:

describe_for_cli

A human-readable description of the action

ResumeFlowRun

Resumes a flow run associated with the trigger Methods:

describe_for_cli

A human-readable description of the action

SuspendFlowRun

Suspends a flow run associated with the trigger Methods:

describe_for_cli

A human-readable description of the action

CallWebhook

Call a webhook when an Automation is triggered. Methods:

describe_for_cli

A human-readable description of the action

SendNotification

Send a notification when an Automation is triggered Methods:

describe_for_cli

A human-readable description of the action

WorkPoolAction

Base class for Actions that operate on Work Pools and need to infer them from events Methods:

describe_for_cli

A human-readable description of the action

PauseWorkPool

Pauses a Work Pool

ResumeWorkPool

Resumes a Work Pool

WorkQueueAction

Base class for Actions that operate on Work Queues and need to infer them from events Methods:

describe_for_cli

A human-readable description of the action

selected_work_queue_requires_id

PauseWorkQueue

Pauses a Work Queue Methods:

selected_work_queue_requires_id

ResumeWorkQueue

Resumes a Work Queue Methods:

selected_work_queue_requires_id

AutomationAction

Base class for Actions that operate on Automations and need to infer them from events Methods:

describe_for_cli

A human-readable description of the action

selected_automation_requires_id

PauseAutomation

Pauses a Work Queue Methods:

selected_automation_requires_id

ResumeAutomation

Resumes a Work Queue Methods:

selected_automation_requires_id

DeclareIncident

Declares an incident for the triggering event. Only available on Prefect Cloud Methods:

describe_for_cli

A human-readable description of the action

UnknownAction

An action whose type this version of Prefect does not recognize. Prefect Cloud can add action types before a client release knows about them. Reading an automation that uses one of these types returns this model instead of failing. The model keeps every field of the action, so updating the automation sends the action back unchanged. Methods:

describe_for_cli

A human-readable description of the action