• Products
  • Get started
  • Documentation
  • Resources

Integrate Opsgenie with Runscope

Runscope logo

What does Opsgenie offer Runscope users?

Opsgenie has a webhook integration with Runscope. Opsgenie acts as a dispatcher for Runscope alerts, determines the right people to notify based on on-call schedules– notifies via email, text messages (SMS), phone calls, and iOS & Android push notifications, and escalate alerts until the alert is acknowledged or closed.

Functionality of the integration

  • When a test fails in Runscope, an alert is created in Opsgenie.

  • When the test passes in Runscope, the related alert is closed in Opsgenie.

Configuring Opsgenie side of the integration Expand

  1. Go to Opsgenie's Runscope Integration page.

Under the Free and Essentials plans, the tabs under the Team dashboard are limited to Main, Integrations, Members, and Activity Stream.

2. Specify who is notified of Runscope alerts using the Teams field. Auto-complete suggestions are provided as you type.

An alternative for Step 1) and Step 2) is to add the integration from the Team Dashboard of the team which will own the integration. To add an integration directly to a team, navigate to the Team Dashboard and open Integrations tab. Click Add Integration and select the integration that you would like to add.

3. Copy the API key.

4. Click Save Integration.

Runscope integration

Configuration in Runscope

  1. Go to the Radar page and click on the name of an existing test, or create a new one.

  2. Select Editor on the left navigation pane.

  3. Expand the "Test Settings" collapsible.

  4. Paste the URL copied from the Opsgenie AlertSite integration configuration page into the "Recipient" field.

  5. Select Notifications on the left pane of the Test Settings collapsable window.

  6. Paste the API URL obtained when you configured Opsgenie side of the integration into the "Callback URLs" field.

  7. Click Save.

Runscope test settings

Sample payload sent from Runscope

Sample

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 { "bucket_key": "twdf2fkje38x", "finished_at": 1389715076.373915, "team_id": "3ac6891f-a261-40a1-aafe-53f0bb7af84e", "bucket_name": "Bucket1", "environment_name": "Production DataSource SiteBased", "result": "fail", "test_name": "testci", "team_name": "opsgenie", "test_id": "6abb1082-3d66-49aa-89d1-616ec601e5b3", "started_at": 1389715074.918255, "test_url": "https://www.runscope.com/radar/twdf2fkje38x/6abb1082-3d66-49aa-89d1-616ec601e5b3", "test_run_url": "https://www.runscope.com/radar/twdf2fkje38x/6abb1082-3d66-49aa-89d1-616ec601e5b3/results/e7219c0e-9c83-4bcd-83f7-63e5ce186dcc", "test_run_id": "e7219c0e-9c83-4bcd-83f7-63e5ce186dcc", "trigger_url": "https://api.runscope.com/radar/e31fbf54-b2cd-4b46-b96a-29aeecf542ac/run", "requests": [ { "url": "https://api.opsgenie.com/", "variables": {"fail": 0,"total": 0,"pass": 0}, "assertions": {"fail": 0,"total": 1,"pass": 1}, "result": "pass", "method": "GET" }, { "url": "https://api.opsgenie.com/failurl1", "variables": {"fail": 0,"total": 0,"pass": 0}, "assertions": {"fail": 1,"total": 1,"pass": 0}, "result": "fail", "method": "GET" }, { "url": "https://api.opsgenie.com/failurl2", "variables": {"fail": 0,"total": 0,"pass": 0}, "assertions": {"fail": 1,"total": 1,"pass": 0}, "result": "fail", "method": "GET" } ] }

Sample alert

Runscope sample alert
Last modified on Feb 4, 2021
Cached at 10:34 PM on Apr 14, 2021 |

Additional Help

Ask the Community