Opsgenie アクションのパラメーター タイプ
Opsgenie アクションを使用すると、パラメーターをカスタマイズできます。アクションチャンネルには、[Manage Actions (アクションの管理)] の [Parameter (パラメーター)] セクションで簡単に設定できるさまざまなパラメータータイプを含めることができます。
事前定義済みのパラメーター
Predefined is used for pre-determined value selection. If you select Predefined while creating your action, the values will be directly transferred to the corresponding action channel (AWS SSM or REST Endpoint). This option is useful whenever an alert requires repetitive response with a non-variable parameter values. As a use case, consider a server which triggers “Server is down” alert occasionally. Instead of restarting the server each time you receive the alert, an Opsgenie action can be defined. Once the parameters are defined on the action, you can easily execute it without entering all the relevant values whenever a “Server is down” alert is triggered.
事前定義済みのパラメーター設定の詳細を以下に示します。
フィールド | 説明 |
---|---|
パラメーター名 | 自由形式テキストフォーマットのパラメーターの名前 |
タイプ | オプション:文字列、ブール、数値、リスト |
値 | 値は 2 とおりの方法で指定します: |
必須 | AWS SM アクション チャンネルには AWS 側の値が含まれており、編集できません。 |
ユーザーへのパラメーターの要求
Prompt User is another option for value selection. This option is useful to specify the values during the runtime. An alert related to the same service, instance, or server may require various response depending on the current situation of the alert.
[Prompt User (ユーザーにプロンプト)] セクションで、入力タイプとして [Drop-down list (ドロップダウンリスト)] または [Free-form text (自由形式テキスト)] を選択します。ドロップダウンリストには、指定された値がリストとして格納されます。実行時には、ユーザーが入力した値によって作成されるドロップダウンリストから値が選択されます。
自由形式テキストには値の情報は格納されません。代わりに、実行時に値を入力するためのテキストボックスが表示されます。
パラメータータイプが [リスト] の場合は、[チェックボックス] 入力タイプの値を入力するように求められます。チェックボックスを使用すると、アクションの実行時に複数の値を選択できます。
[Prompt User (ユーザーにプロンプト)] パラメーターの設定:
フィールド | フィールドの前提条件 | 説明 |
---|---|---|
パラメーター名 | - | 自由形式テキストフォーマットのパラメーターの名前 |
タイプ | - | オプション:文字列、ブール、数値、リスト |
値 | - | 値は実行時に顧客から取得されます。 |
必須 | - | AWS SM の場合は AWS 側の値が含まれており、編集できません。 |
説明 | - | 値の説明(オプション) |
入力タイプ | ドロップダウンオプションまたはチェックボックスオプションが選択されている場合は、値を指定する必要があります。 | [Drop down (ドロップダウン)] または [free-form text (自由形式テキスト)] オプションは、文字列、数値、ブール値のパラメータータイプで使用できます。 |
アクションポリシーは、[Prompt user (ユーザーにプロンプト)] パラメーターでは機能しないことに注意してください。アクションポリシーを実行するには、[事前定義済み] パラメーターが必須です。
この内容はお役に立ちましたか?