Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
minLevel1
maxLevel3
outlinefalse
typelist
printablefalse

Overview

What does the integration offer?

...

  1. In ThousandEyes, select Alerts > Alert Rules from the side menu.

  2. In the Cloud and Enterprise Agents tab, select Add New Alert Rule to create an alert rule.

  3. Go to the Notifications tab.

  4. In the Webhooks section, select Edit Webhooks.

  5. Select Add New Webhook.

  6. Paste the API URL you copied while adding the integration in Jira Service Management into URL.

  7. Select Save Webhook to save the webhook.

  8. Select the webhook you added from the Select Webhooks drop-down.

  9. Select Create New Alert Rule to save the rule.

Sample payload sent from ThousandEyes

Expand
titleCreate alert payload (in JSON format)
Code Block
{
    "eventType":"ALERT_NOTIFICATION_TRIGGER",
    "eventId":"8416215-4867000",
    "alert":{
        "agents":[
            {
                "active":1,
                "metricsAtStart":"Error Type: \"Connect\"",
                "metricsAtEnd":"",
                "agentId":4522,
                "agentName":"Amsterdam, Netherlands (Trial)",
                "dateStart":"2016-06-07 08:48:08",
                "permalink":"https://app.thousandeyes.com/web/http-server?__a=50664&testId=106681&roundId=1465289288&agentId=4522"
            },
            {
                "dateStart": "2014-03-24 19:01:48",
                "active": 1,
                "metricsAtStart": "Error type: \"DNS\"",
                "metricsAtEnd": "Error type: \"DNS\"",
                "agentId": 108,
                "agentName": "Boston, MA",
                "permalink": "https://app.thousandeyes.com/web/http-server?__a=11&testId=5176&roundId=1395699129&agentId=108"
            }

        ],
        "alertId":4867000,
        "dateStart":"2016-06-07 08:48:08",
        "apiLinks":[
        {
            "rel":"related",
            "href":"https://api.thousandeyes.com/tests/106681"
        },
        {
            "rel":"data",
            "href":"https://api.thousandeyes.com/web/http-server/106681"
        }
        ],
        "permalink":"https://app.thousandeyes.com/web/http-server?__a=50664&testId=106681&roundId=1465289288",
        "ruleExpression":"Error Type is any",
        "ruleName":"Default HTTP Alert Rule",
        "ruleId": 414881,
        "testId":106681,
        "testName":"test1",
        "violationCount":1,
        "type":"HTTP Server"
    }
}
Expand
titlePayload parsed by Jira Service Management

...

(in JSON format)

...

Code Block
[
    "eventId" : "8416215-4867000",
    "eventType" : "ALERT_NOTIFICATION_TRIGGER",
    "ruleExpression" : "Error Type is any",
    "type" : "HTTP Server",
    "agents" : "Agents:

    Id:4522
    Name:Amsterdam, Netherlands (Trial)
    Active:1
    MetricsAtStart:Error Type: "Connect"
    MetricsAtEnd:

    Id:108
    Name:Boston, MA
    Active:1
    MetricsAtStart:Error type: "DNS"
    MetricsAtEnd:Error type: "DNS"

    ",
    "violationCount" : "1",
    "dateStart" : "2016-06-07 08:48:08",
    "ruleName" : "Default HTTP Alert Rule",
    "testId" : "106681",
    "alertId" : "4867000",
    "permalink" : "https://app.thousandeyes.com/web/http-server?__a=50664&testId=106681&roundId=1465289288",
    "ruleId" : "414881",
    "testName" : "test1"
]
Close Alert payload:

{
    "eventType": "ALERT_NOTIFICATION_CLEAR",
    "eventId": "8416248-4867000",
    "alert": {
        "agents": [
            {
            "active": 0,
            "metricsAtStart": "Error Type: \"Connect\"",
            "metricsAtEnd": "Error Type: \"None\"",
            "agentId": 4522,
            "agentName": "Amsterdam, Netherlands (Trial)",
            "dateStart": "2016-06-07 08:48:08",
            "permalink": "https://app.thousandeyes.com/web/http-server?__a=50664&testId=106681&roundId=1465289288&agentId=4522"
            }
        ],
        "alertId": 4867000,
        "dateEnd": "2016-06-07 08:50:05",
        "dateStart": "2016-06-07 08:48:08",
        "apiLinks": [
            {
                "rel": "related",
                "href": "https://api.thousandeyes.com/tests/106681"
            },
            {
                "rel": "data",
                "href": "https://api.thousandeyes.com/web/http-server/106681"
            }
        ],
        "permalink": "https://app.thousandeyes.com/web/http-server?__a=50664&testId=106681&roundId=1465289288",
        "ruleExpression": "Error Type is any",
        "ruleName": "Default HTTP Alert Rule",
        "ruleId" : "414881",
        "testId": 106681,
        "testName": "test1",
        "violationCount": 1,
        "type": "HTTP Server"
    }
}

...

See also

Explore integration types

...