Azure OMS と統合する
この記事では、Jira Service Management Cloud の一部のお客様に段階的に展開されている、Jira Service Management でネイティブに利用できる新しいアラート機能を取り上げています。ご利用のサイトにはまだ表示されていないか、利用できない可能性があります。

統合でできるようになること
Azure OMS 統合を使用して、Azure OMS アラートを Jira Service Management に転送します。Jira Service Management は、オンコール スケジュールに基づいて適切な通知先を決定します。メール、テキスト メッセージ (SMS)、電話、iOS や Android のプッシュ通知による通知を行い、アラートが承認またはクローズされるまでアラートをエスカレーションします。
統合による機能
Azure OMS でアラートが作成されると、Jira Service Management でアラートが自動で作成されます。
統合をセットアップする
Azure OMS は API ベースの統合です。設定は次の手順で行います。
Jira Service Management で Azure OMS 統合を追加する
Azure OMS で統合を設定する
Azure OMS 統合を追加する
Bidirectional integrations aren’t supported in Free and Standard plans. All the other integrations are supported at a team level in Free and Standard; however, for their outgoing part to work, you need to upgrade to a higher plan. To add any integration at a site level through Settings
(gear icon) > Products
(under JIRA SETTINGS) > OPERATIONS
, you need to be either on Premium or Enterprise.
統合をチームの運用ページから追加すると、そのチームが統合の所有者になります。つまり、Jira Service Management は、この統合を通じて受信したアラートをチームにのみ割り当てます。
Jira Service Management で Azure OMS 統合を追加するには、次の手順を実行します。
チームのオペレーション ページに移動します。
左側のナビゲーション パネルで、[統合]、[統合を追加] の順に選択します。
検索を実行して「Azure OMS」を選択します。
次の画面で、統合の名前を入力します。
オプション: 特定のチームが統合からのアラートを受信するようにする場合は、[Assignee team (担当者チーム)] のチームを選択します。
[Continue] を選択します。
この時点で、統合が保存されます。「統合を設定する手順」セクションを展開し、Webhook URL をコピーします。
この URL は、後ほど Azure OMS で統合を設定する際に使用します。[統合をオンにする] を選択します。
統合のために作成したルールは、統合をオンにした場合にのみ機能します。
Azure OMS で統合を設定する
Azure OMS で統合を設定するには、次の手順を実行します。
Azure ポータルで [ロジック アプリ] を選択します。
ロジック アプリを作成します。
プランの種類として [消費] を選択します。
ロジック アプリを開き、テンプレートとして [Azure Monitor - Metrics Alert Handler] を選択します。
[新しいステップを追加] を選択して、[HTTP REST 要求] を選択します。
メソッドとして [POST] を選択します。
前に Jira Service Management からコピーした Webhook URL を [URI] に貼り付けます。
以下をコピーして本文に貼り付けます。
{ "alertRuleName": "§§@{triggerBody()['data']['essentials']['alertRule']}§§", "alertThresholdOperator": "§§@{triggerBody().data.alertContext.condition.allOf[0].operator}§§", "alertThresholdValue": "§§@{triggerBody().data.alertContext.condition.allOf[0].threshold}§§", "linkToSearchResults": "§§@{triggerBody().data.alertContext.condition.allOf[0].linkToSearchResultsUI}§§", "resultCount": "§§@{triggerBody().data.alertContext.condition.allOf[0].metricValue}§§", "searchIntervalEndtimeUtc": "§§@{triggerBody()['data']['alertContext']['condition']['windowEndTime']}§§", "searchIntervalInSeconds": "§§@{dateDifference(triggerBody()['data']['alertContext']['condition']['windowStartTime'], triggerBody()['data']['alertContext']['condition']['windowEndTime'])}§§", "searchIntervalStartTimeUtc": "§§@{triggerBody()['data']['alertContext']['condition']['windowStartTime']}§§", "searchQuery": "§§@{triggerBody().data.alertContext.condition.allOf[0].searchQuery}§§", "workspaceID": "§§@{triggerBody().data.alertContext.condition.allOf[0].operator}§§" }
[保存] を選択します。
[アナリティクス] ワークスペースに移動します。
クエリを作成して、[新しいアラート ルール] を選択します。
アラートを作成する条件を追加します。
[Actions (アクション)] タブに移動します。
[アクション グループの作成] を選択して、アクションを追加します。
アクションを追加する際に、アクションの種類として [ロジック アプリ] を選択し、先ほど作成したロジック アプリを選択します。[保存] を選択します。
Azure OMS から送信されるペイロードのサンプル
アラート ペイロード (JSON 形式) を作成する
{
"alertRuleName":"§§#alertrulename§§",
"alertThresholdOperator":"§§#thresholdoperator§§",
"alertThresholdValue":"§§#thresholdvalue§§",
"linkToSearchResults":"§§#linktosearchresults§§",
"resultCount":"§§#searchresultcount§§",
"searchIntervalEndtimeUtc":"§§#searchintervalendtimeutc§§",
"searchIntervalInSeconds":"§§#searchinterval§§",
"searchIntervalStartTimeUtc":"§§#searchintervalstarttimeutc§§",
"searchQuery":"§§#searchquery§§",
"workspaceID":"§§#workspaceid§§"
}
この内容はお役に立ちましたか?