> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# automations

# `prefect.server.events.schemas.automations`

## Classes

### `Posture` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L59](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L59)</sup>

**Methods:**

#### `auto` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/utilities/collections.py#L70](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/utilities/collections.py#L70)</sup>

```python theme={null}
auto() -> str
```

Exposes `enum.auto()` to avoid requiring a second import to use `AutoEnum`

### `TriggerState` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L65](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L65)</sup>

**Methods:**

#### `auto` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/utilities/collections.py#L70](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/utilities/collections.py#L70)</sup>

```python theme={null}
auto() -> str
```

Exposes `enum.auto()` to avoid requiring a second import to use `AutoEnum`

### `Trigger` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L70](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L70)</sup>

Base class describing a set of criteria that must be satisfied in order to trigger
an automation.

**Methods:**

#### `all_triggers` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L113](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L113)</sup>

```python theme={null}
all_triggers(self) -> Sequence[Trigger]
```

Returns all triggers within this trigger

#### `automation` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L84](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L84)</sup>

```python theme={null}
automation(self) -> 'Automation'
```

#### `create_automation_state_change_event` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L118](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L118)</sup>

```python theme={null}
create_automation_state_change_event(self, firing: 'Firing', trigger_state: TriggerState) -> ReceivedEvent
```

#### `model_validate_list` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/\_internal/schemas/bases.py#L56](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/_internal/schemas/bases.py#L56)</sup>

```python theme={null}
model_validate_list(cls, obj: Any) -> list[Self]
```

#### `parent` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L91](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L91)</sup>

```python theme={null}
parent(self) -> 'Union[Trigger, Automation]'
```

#### `reset_fields` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/\_internal/schemas/bases.py#L85](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/_internal/schemas/bases.py#L85)</sup>

```python theme={null}
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.

#### `reset_ids` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L107](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L107)</sup>

```python theme={null}
reset_ids(self) -> None
```

Resets the ID of this trigger and all of its children

### `CompositeTrigger` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L123](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L123)</sup>

Requires some number of triggers to have fired within the given time period.

**Methods:**

#### `actions` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L74](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L74)</sup>

```python theme={null}
actions(self) -> List[ActionTypes]
```

#### `all_triggers` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L172](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L172)</sup>

```python theme={null}
all_triggers(self) -> Sequence[Trigger]
```

#### `as_automation` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L86](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L86)</sup>

```python theme={null}
as_automation(self) -> 'AutomationCore'
```

#### `child_trigger_ids` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L176](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L176)</sup>

```python theme={null}
child_trigger_ids(self) -> List[UUID]
```

#### `create_automation_state_change_event` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L132](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L132)</sup>

```python theme={null}
create_automation_state_change_event(self, firing: Firing, trigger_state: TriggerState) -> ReceivedEvent
```

Returns a ReceivedEvent for an automation state change
into a triggered or resolved state.

#### `describe_for_cli` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L60](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L60)</sup>

```python theme={null}
describe_for_cli(self, indent: int = 0) -> str
```

Return a human-readable description of this trigger for the CLI

#### `num_expected_firings` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L180](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L180)</sup>

```python theme={null}
num_expected_firings(self) -> int
```

#### `owner_resource` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L71](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L71)</sup>

```python theme={null}
owner_resource(self) -> Optional[str]
```

#### `ready_to_fire` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L184](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L184)</sup>

```python theme={null}
ready_to_fire(self, firings: Sequence['Firing']) -> bool
```

#### `set_deployment_id` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L68](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L68)</sup>

```python theme={null}
set_deployment_id(self, deployment_id: UUID) -> None
```

### `CompoundTrigger` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L187](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L187)</sup>

A composite trigger that requires some number of triggers to have
fired within the given time period

**Methods:**

#### `num_expected_firings` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L195](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L195)</sup>

```python theme={null}
num_expected_firings(self) -> int
```

#### `ready_to_fire` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L203](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L203)</sup>

```python theme={null}
ready_to_fire(self, firings: Sequence['Firing']) -> bool
```

#### `validate_require` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L207](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L207)</sup>

```python theme={null}
validate_require(self) -> Self
```

### `SequenceTrigger` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L219](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L219)</sup>

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` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L226](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L226)</sup>

```python theme={null}
expected_firing_order(self) -> List[UUID]
```

#### `ready_to_fire` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L229](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L229)</sup>

```python theme={null}
ready_to_fire(self, firings: Sequence['Firing']) -> bool
```

### `ResourceTrigger` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L236](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L236)</sup>

Base class for triggers that may filter by the labels of resources.

**Methods:**

#### `actions` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L74](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L74)</sup>

```python theme={null}
actions(self) -> List[ActionTypes]
```

#### `as_automation` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L86](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L86)</sup>

```python theme={null}
as_automation(self) -> 'AutomationCore'
```

#### `coerce_match` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L258](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L258)</sup>

```python theme={null}
coerce_match(cls, v: Any) -> Any
```

#### `coerce_match_related` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L265](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L265)</sup>

```python theme={null}
coerce_match_related(cls, v: Any) -> Any
```

#### `covers_resources` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L277](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L277)</sup>

```python theme={null}
covers_resources(self, resource: Resource, related: Sequence[RelatedResource]) -> bool
```

#### `describe_for_cli` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L60](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L60)</sup>

```python theme={null}
describe_for_cli(self, indent: int = 0) -> str
```

Return a human-readable description of this trigger for the CLI

#### `owner_resource` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L71](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L71)</sup>

```python theme={null}
owner_resource(self) -> Optional[str]
```

#### `set_deployment_id` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L68](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L68)</sup>

```python theme={null}
set_deployment_id(self, deployment_id: UUID) -> None
```

### `EventTrigger` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L293](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L293)</sup>

A trigger that fires based on the presence or absence of events within a given
period of time.

**Methods:**

#### `bucketing_key` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L450](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L450)</sup>

```python theme={null}
bucketing_key(self, event: ReceivedEvent) -> Tuple[str, ...]
```

#### `coerce_match` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L131](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L131)</sup>

```python theme={null}
coerce_match(cls, v: Any) -> Any
```

#### `coerce_match_related` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L138](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/events/schemas/automations.py#L138)</sup>

```python theme={null}
coerce_match_related(cls, v: Any) -> Any
```

#### `covers` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L392](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L392)</sup>

```python theme={null}
covers(self, event: ReceivedEvent) -> bool
```

#### `create_automation_state_change_event` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L464](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L464)</sup>

```python theme={null}
create_automation_state_change_event(self, firing: Firing, trigger_state: TriggerState) -> ReceivedEvent
```

Returns a ReceivedEvent for an automation state change
into a triggered or resolved state.

#### `enforce_minimum_within_for_proactive_triggers` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L358](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L358)</sup>

```python theme={null}
enforce_minimum_within_for_proactive_triggers(cls, data: Dict[str, Any] | Any) -> Dict[str, Any]
```

#### `event_pattern` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L409](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L409)</sup>

```python theme={null}
event_pattern(self) -> re.Pattern[str]
```

A regular expression which may be evaluated against any event string to
determine if this trigger would be interested in the event

#### `expects` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L441](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L441)</sup>

```python theme={null}
expects(self, event: str) -> bool
```

#### `immediate` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L402](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L402)</sup>

```python theme={null}
immediate(self) -> bool
```

Does this reactive trigger fire immediately for all events?

#### `meets_threshold` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L455](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L455)</sup>

```python theme={null}
meets_threshold(self, event_count: int) -> bool
```

#### `starts_after` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L429](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L429)</sup>

```python theme={null}
starts_after(self, event: str) -> bool
```

### `AutomationCore` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L516](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L516)</sup>

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` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/\_internal/schemas/bases.py#L56](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/_internal/schemas/bases.py#L56)</sup>

```python theme={null}
model_validate_list(cls, obj: Any) -> list[Self]
```

#### `prevent_run_deployment_loops` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L572](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L572)</sup>

```python theme={null}
prevent_run_deployment_loops(self) -> Self
```

Detects potential infinite loops in automations with RunDeployment actions

#### `reset_fields` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/\_internal/schemas/bases.py#L85](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/_internal/schemas/bases.py#L85)</sup>

```python theme={null}
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.

#### `trigger_by_id` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L564](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L564)</sup>

```python theme={null}
trigger_by_id(self, trigger_id: UUID) -> Optional[Trigger]
```

Returns the trigger with the given ID, or None if no such trigger exists

#### `triggers` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L556](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L556)</sup>

```python theme={null}
triggers(self) -> Sequence[Trigger]
```

Returns all triggers within this automation

#### `triggers_of_type` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L560](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L560)</sup>

```python theme={null}
triggers_of_type(self, trigger_type: Type[T]) -> Sequence[T]
```

Returns all triggers of the specified type within this automation

### `Automation` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L645](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L645)</sup>

**Methods:**

#### `model_validate` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L651](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L651)</sup>

```python theme={null}
model_validate(cls: type[Self], obj: Any) -> Self
```

### `AutomationCreate` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L666](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L666)</sup>

### `AutomationUpdate` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L672](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L672)</sup>

### `AutomationPartialUpdate` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L676](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L676)</sup>

### `AutomationSort` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L680](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L680)</sup>

Defines automations sorting options.

**Methods:**

#### `auto` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/utilities/collections.py#L70](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/utilities/collections.py#L70)</sup>

```python theme={null}
auto() -> str
```

Exposes `enum.auto()` to avoid requiring a second import to use `AutoEnum`

### `Firing` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L689](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L689)</sup>

Represents one instance of a trigger firing

**Methods:**

#### `all_events` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L754](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L754)</sup>

```python theme={null}
all_events(self) -> Sequence[ReceivedEvent]
```

#### `all_firings` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L749](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L749)</sup>

```python theme={null}
all_firings(self) -> Sequence[Firing]
```

#### `model_validate_list` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/\_internal/schemas/bases.py#L56](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/_internal/schemas/bases.py#L56)</sup>

```python theme={null}
model_validate_list(cls, obj: Any) -> list[Self]
```

#### `reset_fields` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/\_internal/schemas/bases.py#L85](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/_internal/schemas/bases.py#L85)</sup>

```python theme={null}
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.

#### `validate_trigger_states` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L744](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L744)</sup>

```python theme={null}
validate_trigger_states(cls, value: set[TriggerState]) -> set[TriggerState]
```

### `TriggeredAction` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L761](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L761)</sup>

An action caused as the result of an automation

**Methods:**

#### `all_events` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L825](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L825)</sup>

```python theme={null}
all_events(self) -> Sequence[ReceivedEvent]
```

#### `all_firings` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L822](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L822)</sup>

```python theme={null}
all_firings(self) -> Sequence[Firing]
```

#### `idempotency_key` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L812](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/events/schemas/automations.py#L812)</sup>

```python theme={null}
idempotency_key(self) -> str
```

Produce a human-friendly idempotency key for this action

#### `model_validate_list` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/\_internal/schemas/bases.py#L56](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/_internal/schemas/bases.py#L56)</sup>

```python theme={null}
model_validate_list(cls, obj: Any) -> list[Self]
```

#### `reset_fields` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/\_internal/schemas/bases.py#L85](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/_internal/schemas/bases.py#L85)</sup>

```python theme={null}
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.
