Uptime.com と統合する

統合でできるようになること
Jira Service Management の Uptime.com 統合を使用して、Uptime.com アラートを Jira Service Management に転送します。Jira Service Management はこれらのアラートのディスパッチャーとして機能し、オンコール スケジュールに基づいて通知する適切な担当者を決定します。メール、テキスト メッセージ (SMS)、電話、iPhone や Android のプッシュ通知による通知を行い、アラートが承認またはクローズされるまでアラートをエスカレーションします。
統合による機能
Uptime.com でアラートが作成されると、統合を通じて Jira Service Management でアラートが自動的に作成されます。
アラートが Uptime.com でクリアされると、関連するアラートが Jira Service Management でクローズされます。
統合をセットアップする
Uptime.com は API 統合です。次の手順でセットアップを行います。
Jira Service Management で Uptime.com 統合を追加する
Uptime.com で統合を設定する
Uptime.com 統合を追加する
The following capabilities are available in Jira Service Management Premium and Enterprise:
双方向の統合
Outgoing integrations at the team level
Integrations at a site level through Settings (icon) > Products (under Jira settings) > Operations
To access Jira Service Management Premium features, you must subscribe to a Service Collection Premium or Enterprise plan.
Adding an integration from your team’s operations page makes your team the owner of the integration. This means Jira Service Management only assigns the alerts received through this integration to your team.
Jira Service Management で Uptime.com 統合を追加するには、次の手順に従います。
Next to Operations in the sidebar, select More actions (), then General configuration.
Select Integrations and then Add integration.
検索を実行して「Uptime.com」を選択します。
次の画面で、統合の名前を入力します。
オプション: 特定のチームが統合からのアラートを受信するようにする場合は、[Assignee team (担当者チーム)] のチームを選択します。
[Continue] を選択します。
この時点で、統合が保存されます。[統合を設定するステップ] セクションを展開して、エンドポイント URL と API キーをコピーします。
これらは、後ほど Uptime.com で統合を設定する際に使用します。[統合をオンにする] を選択します。
統合のために作成したルールは、統合をオンにした場合にのみ機能します。
Uptime.com で統合を設定する
Uptime.com と Jira Service Management の統合を設定するには、次の手順に従います。
Uptime.com で、パネルから [Alerting (アラート)] を選択します。
[Push Notifications (プッシュ通知)] > [New Profile (新しいプロファイル)] を選択します。
[Opsgenie] を選択します。
以前に Jira Service Management からコピーした API キーを [API キー] に貼り付けます。
[保存] を選択します。
[Contacts (連絡先)] を選択し、通知を送信する連絡先のすぐ隣にある設定アイコンを選択して [Edit (編集)] を選択します。
作成したプロファイルを [Push Notifications (プッシュ通知)] に追加し、[Save (保存)] を選択します。
Uptime.com からの Webhook メッセージの例
JSON
{
"data": {
"account": {
"id": 26465,
"name": "Test"
},
"service": {
"msp_script": "",
"msp_dns_server": "",
"msp_password": "",
"monitoring_service_type": "HTTP",
"msp_url_path": "/404",
"id": 119395,
"display_name": "Testing low",
"msp_headers": "",
"msp_address": "https://www.fool.com/404",
"msp_threshold": null,
"msp_url_scheme": "https",
"msp_port": null,
"msp_expect_string": "",
"msp_notes": "",
"monitoring_service_type_display": "HTTP(S)",
"msp_send_string": "",
"msp_encryption": "",
"device_id": 85474,
"is_paused": false,
"msp_dns_record_type": "",
"msp_username": "",
"name": "Testing low",
"msp_sensitivity": 2,
"msp_interval": 1
},
"SITE_URL": "https://uptime.com",
"integration": {
"is_enabled": true,
"module_verbose_name": "Custom Postback URL (Webhook)",
"name": "opsgenie test",
"use_legacy_payload": false,
"id": 172,
"module": "webhook",
"postback_url": "http://api.opsgenie.com/v1/json/uptime"
},
"locations": [
"US-East",
"US-West"
],
"device": {
"is_paused": false,
"address": "www.fool.com",
"display_name": "www.fool.com",
"id": 85474,
"name": ""
},
"global_alert_state": {
"ignored": false,
"state_has_changed": true,
"created_at": "2017-04-08T22:07:34.334Z",
"state_is_up": false,
"num_locations_down": 2,
"id": 19972168
},
"date": "2017-04-08T22:07:34.334Z",
"alert": {
"created_at": "2017-04-08T22:07:34.334Z",
"state": "WARNING",
"short_output": "HTTP WARNING: HTTP/1.1 404 Not Found - 2759 bytes in 0.046 second response time",
"is_up": false,
"output": "HTTP WARNING: HTTP/1.1 404 Not Found - 2759 bytes in 0.046 second response time\n\ntime=0.045705s;;;0.000000 size=2759B;;;0",
"id": 19883486
}
},
"event": "alert_raised"
}
この内容はお役に立ちましたか?