アラート構成ファイルを使用して、Atlas CLI を使用して アラート構成を作成 するか アラート構成を更新 する際に必要な設定を指定できます。 Atlas CLI は.jsonアラート構成ファイルを受け入れます。
利用可能な設定
When you create an alert configuration using a configuration file, you can specify any settings that are listed in Create One Alert Configuration in One Project under Request Body Schema.
When you update an alert configuration using a configuration file, you can specify any settings that are listed in Update One Alert Configuration for One Project under Request Body Schema.
構成ファイルを作成
アラート構成の作成
構成ファイルを使用してアラート構成を作成するには、次の手順に従います。
Copy the sample request for Create One Alert Configuration in One Project.
Atlas Admin API 仕様の「 1 つのプロジェクトに 1 つのアラート構成を作成する」セクションに移動します。
右側の [ Request samples ] の下にある [ Expand all ] をクリックします。
サンプル リクエストをコピーするには、 Copyをクリックします。
--fileオプションを指定して、 Atlas クラスター検索ノード作成コマンドを実行します。
--fileフラグを使用して保存したファイルへのパスを指定します。
アラート構成の更新
構成ファイルを使用してアラート構成を更新するには、次の手順に従います。
Copy the sample request for Update One Alert Configuration for One Project.
Navigate to the Update One Alert Configuration for One Project section of the Atlas Admin API specification.
右側の [ Request samples ] の下にある [ Expand all ] をクリックします。
サンプル リクエストをコピーするには、 Copyをクリックします。
--fileオプションを指定して、 Atlas クラスター検索ノードの更新コマンドを実行します。
--fileフラグを使用して保存したファイルへのパスを指定します。