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

# オートメーション

[View source](https://github.com/wandb/wandb/blob/main/wandb/automations/automations.py#L19)

## クラス wandb.automations.Automation

保存済みの W\&B オートメーションのローカルインスタンスで、編集をサポートします。

```python theme={"system"}
*,
__typename: Literal['Trigger'] = 'Trigger',
id: Annotated[str, Strict(strict=True)],
createdAt: datetime.datetime,
updatedAt: datetime.datetime | None = None,
name: str,
description: str | None,
enabled: bool,
scope: Annotated[Union[Annotated[wandb.automations.scopes._ArtifactSequenceScope | wandb.automations.scopes._ArtifactPortfolioScope, BeforeValidator(func=<function parse_scope>, json_schema_input_type=PydanticUndefined), Discriminator(discriminator='typename__', custom_error_type=None, custom_error_message=None, custom_error_context=None)], Annotated[wandb.automations.scopes.RegistryScope | wandb.automations.scopes.ProjectScope, BeforeValidator(func=<function parse_scope>, json_schema_input_type=PydanticUndefined), Discriminator(discriminator='is_registry', custom_error_type=None, custom_error_message=None, custom_error_context=None)], Annotated[wandb.automations.scopes.TeamScope | wandb.automations.scopes.OrgScope, BeforeValidator(func=<function parse_scope>, json_schema_input_type=PydanticUndefined), Discriminator(discriminator='entity_type', custom_error_type=None, custom_error_message=None, custom_error_context=None)]], BeforeValidator(func=<function parse_scope>, json_schema_input_type=PydanticUndefined), Discriminator(discriminator='typename__', custom_error_type=None, custom_error_message=None, custom_error_context=None)],
event: wandb.automations.events.SavedEvent,
action: Annotated[wandb.automations.actions.SavedLaunchJobAction | wandb.automations.actions.SavedNotificationAction | wandb.automations.actions.SavedWebhookAction | wandb.automations.actions.SavedNoOpAction | wandb.automations.actions.SavedAriaAction, BeforeValidator(func=<function parse_saved_action>, json_schema_input_type=PydanticUndefined)]
```

## 引数

**id** `Annotated`

説明はありません。

**createdAt** `datetime`

このオートメーションが作成された日時。

**updatedAt** `datetime.datetime | None`

このオートメーションが最後に更新された日時 (該当する場合) 。

**name** `str`

このオートメーションの名前。

**description** `str | None`

このオートメーションの説明 (オプション) 。

**enabled** `bool`

このオートメーションが有効かどうか。トリガーされるのは有効なオートメーションのみです。

**scope** `Annotated`

トリガーとなるイベントが発生する必要があるスコープ。

**event** `SavedEvent`

このオートメーションをトリガーするイベント。

**action** `Annotated`

このオートメーションがトリガーされたときに実行される action。
