Webhook 通知を有効にする

注: Slack ウェブフックはサポートされていません。代わりに Slack サブスクリプションをご利用になれます。詳細をご確認ください

Statuspage は、インシデントを作成または更新したとき、またはコンポーネントのステータスを更新したときに、Webhook を介して顧客に通知を送信できます。Webhook には、変更されたアイテムに関する情報が含まれています。

  • Slack を使用してインシデントと保守に関する通知を受け取る場合は、「Slack サブスクリプションを有効にする」をご参照ください。

  • 弊社の IP アドレスは随時変更される場合があります。つまり、固定の IP 範囲はありません。許可リストに登録する際はこれを考慮して、範囲が変更される可能性があることにご注意ください。

  1. 左側のサイドバーから [サブスクライバー] をクリックします。

  2. [オプション] をクリックします。

  3. [オプション] ドロップダウン メニューから [設定] をクリックします。

  4. 配信タイプのリストで [Webhook] を選択します。

  5. [変更を保存] をクリックします。

これが有効になると、サブスクリプション ドロップダウンには、ユーザーがサブスクライブするために使用する Webhook 通知の新しいタブが追加されます。また、Webhook サブスクライバーは API を使用して作成できます

Webhook オプションを表示する [サブスクライブ] ドロップダウン メニューが開いているステータ スページ

Webhook の基本

Webhook は、当社のサーバーが登録されたエンドポイントに送信する HTTP POST リクエストです。これには、エンドポイントのサブスクライブ解除方法、ドキュメントの検索場所、Webhook が関連付けられた組織、コンポーネントの更新またはインシデントの更新に関するタイプ固有の情報に関する基本情報が含まれています。

エンドポイントは 2xx 応答コードで応答する必要があり (3xx は失敗と見なされます)、最初の接続から 30 秒以内に応答する必要があります。

コンポーネントの更新

コンポーネントの更新 Webhook は、手動操作は不要でシステムが依存するインフラストラクチャの変更に対応できるようにするのに役立ちます。たとえば、外部 CDN サービスを使用している際に CDN サービスがダウンしているかパフォーマンスが低下していることを検出すると、追加のリクエストを処理するためにより多くのキャパシティをオンラインにする必要が生じる可能性があります。

Webhook は、コンポーネントのステータスが変わるたびにディスパッチされます (ただし、名前、ページ上の位置などの変更の場合はディスパッチされません)。古い値と新しい値を参照することによって、サービスがそれに応じて応答できるようになります。

 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 { "meta":{ "unsubscribe":"http://statustest.flyingkleinbrothers.com:5000/?unsubscribe=j0vqr9kl3513", "documentation":"http://doers.statuspage.io/customer-notifications/webhooks/" }, "page":{ "id": "j2mfxwj97wnj", "status_indicator": "major", "status_description": "Partial System Outage" }, "component_update":{ "created_at":"2013-05-29T21:32:28Z", "new_status":"operational", "old_status":"major_outage", "id":"k7730b5v92bv", "component_id":"rb5wq1dczvbm" }, "component":{ "created_at":"2013-05-29T21:32:28Z", "id":"rb5wq1dczvbm", "name":"Some Component", "status":"operational" } }

 

インシデントの更新

インシデントの更新 Webhook は、アクティブなダウンタイムやパフォーマンスの問題に関して常に把握するために役立ちます。

Webhook は、インシデントが更新されるたびにディスパッチされます。

 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71  { "meta":{ "unsubscribe":"http://statustest.flyingkleinbrothers.com:5000/?unsubscribe=j0vqr9kl3513", "documentation":"http://doers.statuspage.io/customer-notifications/webhooks/" }, "page":{ "id": "j2mfxwj97wnj", "status_indicator": "critical", "status_description": "Major System Outage" }, "incident":{ "backfilled":false, "created_at":"2013-05-29T15:08:51-06:00", "impact":"critical", "impact_override":null, "monitoring_at":"2013-05-29T16:07:53-06:00", "postmortem_body":null, "postmortem_body_last_updated_at":null, "postmortem_ignored":false, "postmortem_notified_subscribers":false, "postmortem_notified_twitter":false, "postmortem_published_at":null, "resolved_at":null, "scheduled_auto_transition":false, "scheduled_for":null, "scheduled_remind_prior":false, "scheduled_reminded_at":null, "scheduled_until":null, "shortlink":"http://j.mp/18zyDQx", "status":"monitoring", "updated_at":"2013-05-29T16:30:35-06:00", "id":"lbkhbwn21v5q", "organization_id":"j2mfxwj97wnj", "incident_updates":[ { "body":"A fix has been implemented and we are monitoring the results.", "created_at":"2013-05-29T16:07:53-06:00", "display_at":"2013-05-29T16:07:53-06:00", "status":"monitoring", "twitter_updated_at":null, "updated_at":"2013-05-29T16:09:09-06:00", "wants_twitter_update":false, "id":"drfcwbnpxnr6", "incident_id":"lbkhbwn21v5q" }, { "body":"We are waiting for the cloud to come back online and will update when we have further information", "created_at":"2013-05-29T15:18:51-06:00", "display_at":"2013-05-29T15:18:51-06:00", "status":"identified", "twitter_updated_at":null, "updated_at":"2013-05-29T15:28:51-06:00", "wants_twitter_update":false, "id":"2rryghr4qgrh", "incident_id":"lbkhbwn21v5q" }, { "body":"The cloud, located in Norther Virginia, has once again gone the way of the dodo.", "created_at":"2013-05-29T15:08:51-06:00", "display_at":"2013-05-29T15:08:51-06:00", "status":"investigating", "twitter_updated_at":null, "updated_at":"2013-05-29T15:28:51-06:00", "wants_twitter_update":false, "id":"qbbsfhy5s9kk", "incident_id":"lbkhbwn21v5q" } ], "name":"Virginia Is Down" } }

 

その他のヘルプ