• 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

If you're using Opsgenie's Free or Essentials plan or if you’re using Opsgenie with Jira Service Management's Standard plan, you can add this integration from your team dashboard only. The Integrations page under Settings is not available in your plan.

  1. Go to Teams and select your team.

  2. Select Integrations on the left navigation and then select Add integration.

Adding the integration from your team dashboard will make your team the owner of the integration. This means Opsgenie will assign the alerts received through this integration to your team only. Follow the rest of the steps in this section to set up the integration.

  1. Go to Settings > Integrations. Search for Runscope and select Add

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

  3. Copy the API key.

  4. Select Save 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" } ] }

Still need help?

The Atlassian Community is here for you.