Slack のテンプレートの作成
Slack に HTTP リクエストアクションを送信するには、Splunk AppDynamics でテンプレートを作成する必要があります。Splunk AppDynamics がイベントに応答してアクションをトリガーすると、Slack チャネルでアクションの詳細を表示できます。
はじめる前に
- Slack API ウィザードを使用して、Slack でアプリケーションを作成します。https://api.slack.com/appsこのアプリケーションは、Slack に送信された HTTP リクエストを受け入れます。
- Slackアプリケーションによって生成されたウェブフック URL をコピーし、後で使用するために安全に保管します。Splunk AppDynamics は、この URL をターゲットとして使用してアラートを Slack に送信します。
Create a Template
- In the menu bar, click Alert & Respond.
- Click HTTP Request Templates.
- Enter a name for the template. For example, Send alerts to Slack .
- In the Request URL section:
- Select POST as Method.
- Enter the webhook URL of the Slack app in the Raw URL field.
- Select UTF-8 as URL Encoding.
- In the Authentication section, select NONE as Type. If you want to enable mutual TLS authentication, select Also Turn on Mutual TLS. For more information about mutual TLS, see Configure and Enable Mutual TLS Authentication.
- In the Payload section:
- In the Settings section, select the One Request Per Event option.
- Click Save.