...
Go to the API Monitoring page and select the name of an existing test, or create one.
Select Editor on the navigation pane.
Expand Test Settings.
Select Webhooks.
Paste the URL copied from the BlazeMeter API Monitoring integration configuration page.
Select Save.
Sample payload sent from BlazeMeter
Sample
Code Block |
---|
{
"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"
}
]
} |