> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-dbrian-docs-serverless-training-quickstart.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 概要

> W&B Automations を作成・管理して、ML ワークフローを効率化します

このページでは、W\&B の[オートメーション](/ja/models/automations)を作成および管理する方法を説明します。オートメーションを使用すると、project と Registry のイベントに応じて Slack 通知や webhook をトリガーできます。まずこの概要で前提条件と大まかなワークフローを把握し、その後、[Slack オートメーションを作成する](/ja/models/automations/create-automations/slack) または [webhook オートメーションを作成する](/ja/models/automations/create-automations/webhook) の詳細な手順に従ってください。

<Note>
  オートメーションの関連チュートリアルをお探しですか？

  * [モデルの評価とデプロイのために GitHub Action を自動的にトリガーする方法を学ぶ](https://wandb.ai/wandb/wandb-model-cicd/reports/Model-CI-CD-with-W-B--Vmlldzo0OTcwNDQw)。
  * [モデルを SageMaker エンドポイントに自動的にデプロイするデモ動画を見る](https://www.youtube.com/watch?v=s5CMj_w3DaQ)。
  * [オートメーションを紹介する動画シリーズを見る](https://youtube.com/playlist?list=PLD80i8An1OEGECFPgY-HPCNjXgGu-qGO6\&feature=shared)。
</Note>

<div id="requirements">
  ## 要件
</div>

オートメーションを作成する際:

* チーム管理者は、チームの project に対するオートメーションに加えて、Webhook、シークレット、Slack インテグレーションなど、オートメーションを構成するコンポーネントも作成および管理できます。[Team settings](/ja/platform/app/settings-page/teams)を参照してください。
* Registry のオートメーションを作成するには、Registry へのアクセス権が必要です。[Configure Registry access](/ja/models/registry/configure_registry/#registry-roles)を参照してください。
* Slack オートメーションを作成するには、選択した Slack インスタンスおよびチャンネルに投稿する権限が必要です。

<div id="create-an-automation">
  ## オートメーションを作成する
</div>

project または Registry の **Automations** タブ、または Workspace のラインプロットパネルから直接オートメーションを作成できます。

<div id="create-from-the-automations-tab">
  ### Automations タブから作成する
</div>

**Automations** タブからオートメーションを作成する手順の概要は次のとおりです。

1. 必要に応じて、アクセストークン、パスワード、SSH キーなど、オートメーションに必要な機密文字列ごとに [W\&B シークレットを作成](/ja/platform/secrets)します。シークレットを使用すると、機密文字列を安全に再利用でき、オートメーションの設定に含めずに済みます。シークレットは **Team Settings** で定義します。シークレットは webhook オートメーションで最もよく使われます。
2. チームレベルの webhook または Slack インテグレーションを設定して、W\&B が代理で Slack に投稿したり、webhook を実行したりできるように認可します。複数のオートメーションで 1 つの webhook または Slack インテグレーションを使用できます。これらのアクションは **Team Settings** で定義します。
3. project または Registry でオートメーションを作成し、監視するイベントと実行するアクション (Slack への投稿や webhook の実行など) を指定します。webhook オートメーションを作成する場合は、送信するペイロードを設定します。

これらの手順を完了すると、project または Registry で指定したイベントが発生するたびにオートメーションが実行されます。

<div id="create-a-run-metric-automation-from-a-workspace-panel">
  ### Workspace のパネルから run メトリクス オートメーションを作成する
</div>

Workspace の折れ線グラフから、そのグラフに表示されているメトリクス用の [run メトリクス オートメーション](/ja/models/automations/automation-events/#run-events) を作成することもできます。

1. パネルにカーソルを合わせて、パネル上部のベルアイコンをクリックします。

   <Frame>
     <img src="https://mintcdn.com/wb-21fd5541-dbrian-docs-serverless-training-quickstart/ver7AAtIXSa_-khk/images/automations/run_metric_automation_from_panel.png?fit=max&auto=format&n=ver7AAtIXSa_-khk&q=85&s=426123b00d52dba0fa5f0256c2a4aa39" alt="オートメーションのベルアイコンの場所" width="385" height="258" data-path="images/automations/run_metric_automation_from_panel.png" />
   </Frame>
2. 基本または高度な設定コントロールを使用してオートメーションを設定します。たとえば、run フィルターを適用してオートメーションの対象範囲を制限したり、絶対しきい値を設定したりできます。

詳細は、以下を参照してください。

* [Slack オートメーションを作成する](/ja/models/automations/create-automations/slack)
* [webhook オートメーションを作成する](/ja/models/automations/create-automations/webhook)

<div id="view-and-manage-automations">
  ## オートメーションの表示と管理
</div>

project または Registry の **Automations** タブで、オートメーションを表示、管理できます:

* オートメーションの詳細を表示するには、その名前をクリックします。
* オートメーションの実行履歴 (どのアクションが実行され、成功したかどうか) を表示するには、その名前をクリックし、**History** タブを選択します。詳細は、[オートメーションの履歴を表示する](/ja/models/automations/view-automation-history)を参照してください。
* オートメーションを編集するには、その**アクション (<Icon icon="ellipsis" iconType="solid" />)** メニューをクリックし、**Edit automation** をクリックします。
* オートメーションを削除するには、その**アクション (<Icon icon="ellipsis" iconType="solid" />)** メニューをクリックし、**Delete automation** をクリックします。

<div id="go-further">
  ## さらに詳しく
</div>

詳細は、以下のリソースを参照してください:

* [Automations チュートリアル](/ja/models/automations/tutorial): W\&B App で、[project の run 失敗アラート](/ja/models/automations/project-automation-tutorial) または [Registry の alias から webhook へのオートメーション](/ja/models/automations/registry-automation-tutorial) を作成します。
* [Automation events and scopes](/ja/models/automations/automation-events)。
* [Slack オートメーションを作成する](/ja/models/automations/create-automations/slack)。
* [webhook オートメーションを作成する](/ja/models/automations/create-automations/webhook)。
* [シークレット を作成する](/ja/platform/secrets)。
