Chilkat Online Tools

DataFlex / Postman API / Run a Monitor

Back to Collection Items

Use ChilkatAx-win32.pkg

Procedure Test
    Handle hoHttp
    Boolean iSuccess
    Variant vResp
    Handle hoResp
    Variant vSbResponseBody
    Handle hoSbResponseBody
    Handle hoJResp
    Integer iRespStatusCode
    Integer iId
    String sId
    String sItemName
    String sMethod
    String sV_Url
    String sContent_type
    String sAccept
    String sAccept_encoding
    Integer iContent_length
    Integer iContentLength
    String sMode
    String sTimestamp
    Integer iCode
    Integer iBodyContentLength
    Integer iResponseTime
    Integer iResponseSize
    String sDate
    String sHeadersContent_type
    String sTransfer_encoding
    String sConnection
    String sContent_encoding
    Boolean iStatus_code_is_200
    String sJobId
    String sMonitorId
    String sName
    String sCollectionUid
    String sStatus
    String sStartedAt
    String sFinishedAt
    Integer iTotal
    Integer iFailed
    Integer iRequestsTotal
    Integer iRequestsFailed
    Integer i
    Integer iCount_i
    String sTemp1
    Boolean bTemp1

    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    Get Create (RefClass(cComChilkatHttp)) To hoHttp
    If (Not(IsComObjectCreated(hoHttp))) Begin
        Send CreateComObject of hoHttp
    End

    Send ComSetRequestHeader To hoHttp "X-API-Key" "{{postman_api_key}}"

    Get ComQuickRequest Of hoHttp "POST" "https://api.getpostman.com/monitors/{{monitor_uid}}/run" To vResp
    If (IsComObject(vResp)) Begin
        Get Create (RefClass(cComChilkatHttpResponse)) To hoResp
        Set pvComObject Of hoResp To vResp
    End
    Get ComLastMethodSuccess Of hoHttp To bTemp1
    If (bTemp1 = False) Begin
        Get ComLastErrorText Of hoHttp To sTemp1
        Showln sTemp1
        Procedure_Return
    End

    Get Create (RefClass(cComChilkatStringBuilder)) To hoSbResponseBody
    If (Not(IsComObjectCreated(hoSbResponseBody))) Begin
        Send CreateComObject of hoSbResponseBody
    End
    Get pvComObject of hoSbResponseBody to vSbResponseBody
    Get ComGetBodySb Of hoResp vSbResponseBody To iSuccess

    Get Create (RefClass(cComChilkatJsonObject)) To hoJResp
    If (Not(IsComObjectCreated(hoJResp))) Begin
        Send CreateComObject of hoJResp
    End
    Get pvComObject of hoSbResponseBody to vSbResponseBody
    Get ComLoadSb Of hoJResp vSbResponseBody To iSuccess
    Set ComEmitCompact Of hoJResp To False

    Showln "Response Body:"
    Get ComEmit Of hoJResp To sTemp1
    Showln sTemp1

    Get ComStatusCode Of hoResp To iRespStatusCode
    Showln "Response Status Code = " iRespStatusCode
    If (iRespStatusCode >= 400) Begin
        Showln "Response Header:"
        Get ComHeader Of hoResp To sTemp1
        Showln sTemp1
        Showln "Failed."
        Send Destroy of hoResp
        Procedure_Return
    End

    Send Destroy of hoResp

    // Sample JSON response:
    // (Sample code for parsing the JSON response is shown below)

    // {
    //   "run": {
    //     "info": {
    //       "jobId": "1e6ba2e1-6256-4430-bafa-a06e591523bd",
    //       "monitorId": "1e6b8970-fd13-4480-b011-b3b3e3cd271d",
    //       "name": "Sample Collection monitor 1 #54",
    //       "collectionUid": "5852-1d3daef4-2037-4584-ab86-bafd8c8f8a55",
    //       "status": "success",
    //       "startedAt": "2016-12-04T14:29:39.000Z",
    //       "finishedAt": "2016-12-04T14:29:39.000Z"
    //     },
    //     "stats": {
    //       "assertions": {
    //         "total": 1,
    //         "failed": 0
    //       },
    //       "requests": {
    //         "total": 3,
    //         "failed": 0
    //       }
    //     },
    //     "executions": [
    //       {
    //         "id": 1,
    //         "item": {
    //           "id": "b5e8d7dd-909c-4ba7-aef4-8609bc50b586",
    //           "name": "Sample POST Request"
    //         },
    //         "request": {
    //           "method": "POST",
    //           "url": "echo.getpostman.com/post",
    //           "headers": {
    //             "content-type": "application/json",
    //             "accept": "*/*",
    //             "accept-encoding": "gzip, deflate",
    //             "content-length": 18
    //           },
    //           "body": {
    //             "contentLength": 18,
    //             "mode": "raw"
    //           },
    //           "timestamp": "2016-12-04T14:29:39.520Z"
    //         },
    //         "response": {
    //           "code": 200,
    //           "body": {
    //             "contentLength": 298
    //           },
    //           "responseTime": 57,
    //           "responseSize": 298,
    //           "headers": {
    //             "date": "Sun, 04 Dec 2016 14:29:39 GMT",
    //             "content-type": "application/json",
    //             "transfer-encoding": "chunked",
    //             "connection": "keep-alive",
    //             "content-encoding": "gzip"
    //           }
    //         }
    //       },
    //       {
    //         "id": 2,
    //         "item": {
    //           "id": "f790d046-755d-44f5-a416-b825e18dfd9d",
    //           "name": "Sample GET Request"
    //         },
    //         "request": {
    //           "method": "GET",
    //           "url": "echo.getpostman.com/get",
    //           "headers": {
    //             "accept": "*/*",
    //             "accept-encoding": "gzip, deflate"
    //           },
    //           "body": {
    //             "contentLength": 0,
    //             "mode": "formdata"
    //           },
    //           "timestamp": "2016-12-04T14:29:39.586Z"
    //         },
    //         "response": {
    //           "code": 200,
    //           "body": {
    //             "contentLength": 282
    //           },
    //           "responseTime": 46,
    //           "responseSize": 282,
    //           "headers": {
    //             "date": "Sun, 04 Dec 2016 14:29:39 GMT",
    //             "content-type": "application/json",
    //             "transfer-encoding": "chunked",
    //             "connection": "keep-alive",
    //             "content-encoding": "gzip"
    //           }
    //         },
    //         "assertions": {
    //           "Status code is 200": true
    //         }
    //       },
    //       {
    //         "id": 3,
    //         "item": {
    //           "id": "336e6e17-6d3e-4b8f-a48f-b7e75cf13afb",
    //           "name": "This is the second request"
    //         },
    //         "request": {
    //           "method": "POST",
    //           "url": "echo.getpostman.com/post",
    //           "headers": {
    //             "accept": "*/*",
    //             "accept-encoding": "gzip, deflate",
    //             "content-length": 18
    //           },
    //           "body": {
    //             "contentLength": 0,
    //             "mode": "formdata"
    //           },
    //           "timestamp": "2016-12-04T14:29:39.965Z"
    //         },
    //         "response": {
    //           "code": 200,
    //           "body": {
    //             "contentLength": 347
    //           },
    //           "responseTime": 10,
    //           "responseSize": 347,
    //           "headers": {
    //             "date": "Sun, 04 Dec 2016 14:29:39 GMT",
    //             "content-type": "application/json",
    //             "transfer-encoding": "chunked",
    //             "connection": "keep-alive",
    //             "content-encoding": "gzip"
    //           }
    //         }
    //       }
    //     ],
    //     "failures": [
    //     ]
    //   }
    // }

    // Sample code for parsing the JSON response...
    // Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

    Get ComStringOf Of hoJResp "run.info.jobId" To sJobId
    Get ComStringOf Of hoJResp "run.info.monitorId" To sMonitorId
    Get ComStringOf Of hoJResp "run.info.name" To sName
    Get ComStringOf Of hoJResp "run.info.collectionUid" To sCollectionUid
    Get ComStringOf Of hoJResp "run.info.status" To sStatus
    Get ComStringOf Of hoJResp "run.info.startedAt" To sStartedAt
    Get ComStringOf Of hoJResp "run.info.finishedAt" To sFinishedAt
    Get ComIntOf Of hoJResp "run.stats.assertions.total" To iTotal
    Get ComIntOf Of hoJResp "run.stats.assertions.failed" To iFailed
    Get ComIntOf Of hoJResp "run.stats.requests.total" To iRequestsTotal
    Get ComIntOf Of hoJResp "run.stats.requests.failed" To iRequestsFailed
    Move 0 To i
    Get ComSizeOfArray Of hoJResp "run.executions" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComIntOf Of hoJResp "run.executions[i].id" To iId
        Get ComStringOf Of hoJResp "run.executions[i].item.id" To sId
        Get ComStringOf Of hoJResp "run.executions[i].item.name" To sItemName
        Get ComStringOf Of hoJResp "run.executions[i].request.method" To sMethod
        Get ComStringOf Of hoJResp "run.executions[i].request.url" To sV_Url
        Get ComStringOf Of hoJResp "run.executions[i].request.headers.content-type" To sContent_type
        Get ComStringOf Of hoJResp "run.executions[i].request.headers.accept" To sAccept
        Get ComStringOf Of hoJResp "run.executions[i].request.headers.accept-encoding" To sAccept_encoding
        Get ComIntOf Of hoJResp "run.executions[i].request.headers.content-length" To iContent_length
        Get ComIntOf Of hoJResp "run.executions[i].request.body.contentLength" To iContentLength
        Get ComStringOf Of hoJResp "run.executions[i].request.body.mode" To sMode
        Get ComStringOf Of hoJResp "run.executions[i].request.timestamp" To sTimestamp
        Get ComIntOf Of hoJResp "run.executions[i].response.code" To iCode
        Get ComIntOf Of hoJResp "run.executions[i].response.body.contentLength" To iBodyContentLength
        Get ComIntOf Of hoJResp "run.executions[i].response.responseTime" To iResponseTime
        Get ComIntOf Of hoJResp "run.executions[i].response.responseSize" To iResponseSize
        Get ComStringOf Of hoJResp "run.executions[i].response.headers.date" To sDate
        Get ComStringOf Of hoJResp "run.executions[i].response.headers.content-type" To sHeadersContent_type
        Get ComStringOf Of hoJResp "run.executions[i].response.headers.transfer-encoding" To sTransfer_encoding
        Get ComStringOf Of hoJResp "run.executions[i].response.headers.connection" To sConnection
        Get ComStringOf Of hoJResp "run.executions[i].response.headers.content-encoding" To sContent_encoding
        Get ComBoolOf Of hoJResp "run.executions[i].assertions.Status code is 200" To iStatus_code_is_200
        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "run.failures" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Move (i + 1) To i
    Loop



End_Procedure

Curl Command

curl -X POST
	-H "X-API-Key: {{postman_api_key}}"
https://api.getpostman.com/monitors/{{monitor_uid}}/run

Postman Collection Item JSON

{
  "name": "Run a Monitor",
  "request": {
    "method": "POST",
    "header": [
    ],
    "url": {
      "raw": "https://api.getpostman.com/monitors/{{monitor_uid}}/run",
      "protocol": "https",
      "host": [
        "api",
        "getpostman",
        "com"
      ],
      "path": [
        "monitors",
        "{{monitor_uid}}",
        "run"
      ]
    },
    "description": "This endpoint will run the monitor instantly and wait for the monitor to run completely. It responds with the run results.\n\n> Requires <a href=\"#authentication\">API Key</a> as `X-Api-Key` request header or `apikey` URL query parameter."
  },
  "response": [
    {
      "name": "Monitor Run with No Errors",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "formdata",
          "formdata": [
          ]
        },
        "url": {
          "raw": "https://api.getpostman.com/monitors/{{monitor_uid}}/run",
          "protocol": "https",
          "host": [
            "api",
            "getpostman",
            "com"
          ],
          "path": [
            "monitors",
            "{{monitor_uid}}",
            "run"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json",
          "name": "Content-Type",
          "description": {
            "content": "",
            "type": "text/plain"
          }
        }
      ],
      "cookie": [
        {
          "expires": "Invalid Date",
          "hostOnly": false,
          "httpOnly": false,
          "domain": "getpostman.com",
          "path": "/",
          "secure": false,
          "session": false,
          "value": "yes",
          "key": "getpostmanlogin"
        },
        {
          "expires": "Invalid Date",
          "hostOnly": false,
          "httpOnly": false,
          "domain": "getpostman.com",
          "path": "/",
          "secure": false,
          "session": false,
          "value": "813af79fd620c970d59f4e41275292a96873bb5065975eccf67a84cfdc24b448037430d26c2a29f4192ad492875ed7a0d53bbea8c63f760bb75c886624b4da560fc52c7f9f9e79837bee212f90b9a59c1dfcf94b95156b20f45169eab2ed93b0c38669819143ae41e45dfaac6a5f0cf6d5e76ca40134c3bd9ef9f5532ad6d179519aa0315fe4e6e157ee9d71c9f14aa9b0455ff84f94ae7519f1139d0cccdeeef7e2aafe1696cf640ec874c62d4d5bda3dbe17cf6083fb276b7f3355eb19162430f171166d19a7d79da028c76b3c2b97e88c93dc7183bc486d9d331b93b9a20de1216e84ca74f7b6887df61785d0b65be19f56283523f211fd43a772afa39aadc3b8dc011ba680b69a7e4fcda83be75d593c8ce6c6997bf530b57a8036881ea3d5b3c28d096099ca712f5d6916b453f1b338c455c4f861da638dffd05fd2a3dd5b9dd6dbe5f2c3a30e304363c9c2bcfbe5d9abeba9c06df16d155a70c6b0a9848f7446a5646e58640d7fad642df11350f528e4bacb5c446986cddf8f0c7ad10ec1067daccca962d6fb90aad8db55c2ffa1dc8716865350d5127cb69e44cfc4511836cbc5828c1c01370c7464fef1f07c716456a57a467bc1445ea88b705ef9c0c068948a73dca851804663befbc2d9aec7cfc3a2daf377b1a8c020091216d82504ff9b38c84234ad9b6f8c596a",
          "key": "postman.sid"
        },
        {
          "expires": "Invalid Date",
          "hostOnly": false,
          "httpOnly": false,
          "domain": "getpostman.com",
          "path": "/",
          "secure": false,
          "session": false,
          "value": "b8ee90dd180562a5a21edad92ea0b987583b7599811884947b9aae88d0c060e8abb0c337534285da6defa4cfabba320b37b611b2c9586b81cb38220830b58440a2ff03756c898b89eb08799bc486c7dc08643ef1ee6e38e5988c4aafda47f1ed26c4218a23620f43d57aa19bb7f79762b394384215a7805e6b1c2cc092b6ac5ad8e8848b1ce655edba6f52820a2ac5acf3d289dda878c6a1fe62e88bb4159f605e8081afa2afce7a72a0c5d96515d566bcbf9cb3842cfc2b7f3a48badbcbfb9e5907b6451674d2c09cf6bf0b34b967edfc3a6389a834f7be21592ba2fbf7aa9eaaa6b87f99590813ded37c6e4ad17e7afcca74455b703d2d653e6ce063ce8eb195ce46c910a1b61fb71f13a8cb52ab2a7bded1b9b5a6b56ad5a66ceafc20afc70962a1f49b8abf2ce3f9e7cf3f44aaf0f41f81605b4ee612f3044d81b787a7cb128c56474a25cdc13803e9057603ead1f1fd6666ae5467ca9e250bb228dfd11dafd16345019bb7e06c58b27bf69d550cbfcef348bc746fdea61d4ea93c48d5f5e4e729adf18655669170f0a059025a79fb2a48f924d9748895a42780d1a9fae32ebf2d57df434c60b675412e217d126b9edbd28b949dfcbcbc8518aa51339d3e1d1f37c6cac4866064c54a476cf94d749a570938a7ad3ce28a9f1c5ea6623b",
          "key": "postman-staging.sid"
        }
      ],
      "body": "{\n \"run\": {\n  \"info\": {\n   \"jobId\": \"1e6ba2e1-6256-4430-bafa-a06e591523bd\",\n   \"monitorId\": \"1e6b8970-fd13-4480-b011-b3b3e3cd271d\",\n   \"name\": \"Sample Collection monitor 1 #54\",\n   \"collectionUid\": \"5852-1d3daef4-2037-4584-ab86-bafd8c8f8a55\",\n   \"status\": \"success\",\n   \"startedAt\": \"2016-12-04T14:29:39.000Z\",\n   \"finishedAt\": \"2016-12-04T14:29:39.000Z\"\n  },\n  \"stats\": {\n   \"assertions\": {\n    \"total\": 1,\n    \"failed\": 0\n   },\n   \"requests\": {\n    \"total\": 3,\n    \"failed\": 0\n   }\n  },\n  \"executions\": [\n   {\n    \"id\": 1,\n    \"item\": {\n     \"id\": \"b5e8d7dd-909c-4ba7-aef4-8609bc50b586\",\n     \"name\": \"Sample POST Request\"\n    },\n    \"request\": {\n     \"method\": \"POST\",\n     \"url\": \"echo.getpostman.com/post\",\n     \"headers\": {\n      \"content-type\": \"application/json\",\n      \"accept\": \"*/*\",\n      \"accept-encoding\": \"gzip, deflate\",\n      \"content-length\": 18\n     },\n     \"body\": {\n      \"contentLength\": 18,\n      \"mode\": \"raw\"\n     },\n     \"timestamp\": \"2016-12-04T14:29:39.520Z\"\n    },\n    \"response\": {\n     \"code\": 200,\n     \"body\": {\n      \"contentLength\": 298\n     },\n     \"responseTime\": 57,\n     \"responseSize\": 298,\n     \"headers\": {\n      \"date\": \"Sun, 04 Dec 2016 14:29:39 GMT\",\n      \"content-type\": \"application/json\",\n      \"transfer-encoding\": \"chunked\",\n      \"connection\": \"keep-alive\",\n      \"content-encoding\": \"gzip\"\n     }\n    }\n   },\n   {\n    \"id\": 2,\n    \"item\": {\n     \"id\": \"f790d046-755d-44f5-a416-b825e18dfd9d\",\n     \"name\": \"Sample GET Request\"\n    },\n    \"request\": {\n     \"method\": \"GET\",\n     \"url\": \"echo.getpostman.com/get\",\n     \"headers\": {\n      \"accept\": \"*/*\",\n      \"accept-encoding\": \"gzip, deflate\"\n     },\n     \"body\": {\n      \"contentLength\": 0,\n      \"mode\": \"formdata\"\n     },\n     \"timestamp\": \"2016-12-04T14:29:39.586Z\"\n    },\n    \"response\": {\n     \"code\": 200,\n     \"body\": {\n      \"contentLength\": 282\n     },\n     \"responseTime\": 46,\n     \"responseSize\": 282,\n     \"headers\": {\n      \"date\": \"Sun, 04 Dec 2016 14:29:39 GMT\",\n      \"content-type\": \"application/json\",\n      \"transfer-encoding\": \"chunked\",\n      \"connection\": \"keep-alive\",\n      \"content-encoding\": \"gzip\"\n     }\n    },\n    \"assertions\": {\n     \"Status code is 200\": true\n    }\n   },\n   {\n    \"id\": 3,\n    \"item\": {\n     \"id\": \"336e6e17-6d3e-4b8f-a48f-b7e75cf13afb\",\n     \"name\": \"This is the second request\"\n    },\n    \"request\": {\n     \"method\": \"POST\",\n     \"url\": \"echo.getpostman.com/post\",\n     \"headers\": {\n      \"accept\": \"*/*\",\n      \"accept-encoding\": \"gzip, deflate\",\n      \"content-length\": 18\n     },\n     \"body\": {\n      \"contentLength\": 0,\n      \"mode\": \"formdata\"\n     },\n     \"timestamp\": \"2016-12-04T14:29:39.965Z\"\n    },\n    \"response\": {\n     \"code\": 200,\n     \"body\": {\n      \"contentLength\": 347\n     },\n     \"responseTime\": 10,\n     \"responseSize\": 347,\n     \"headers\": {\n      \"date\": \"Sun, 04 Dec 2016 14:29:39 GMT\",\n      \"content-type\": \"application/json\",\n      \"transfer-encoding\": \"chunked\",\n      \"connection\": \"keep-alive\",\n      \"content-encoding\": \"gzip\"\n     }\n    }\n   }\n  ],\n  \"failures\": []\n }\n}"
    },
    {
      "name": "Monitor Run with Errors",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "body": {
          "mode": "formdata",
          "formdata": [
          ]
        },
        "url": {
          "raw": "https://api.getpostman.com/monitors/{{monitor_uid}}/run",
          "protocol": "https",
          "host": [
            "api",
            "getpostman",
            "com"
          ],
          "path": [
            "monitors",
            "{{monitor_uid}}",
            "run"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json",
          "name": "Content-Type",
          "description": {
            "content": "",
            "type": "text/plain"
          }
        }
      ],
      "cookie": [
        {
          "expires": "Invalid Date",
          "hostOnly": false,
          "httpOnly": false,
          "domain": "getpostman.com",
          "path": "/",
          "secure": false,
          "session": false,
          "value": "yes",
          "key": "getpostmanlogin"
        },
        {
          "expires": "Invalid Date",
          "hostOnly": false,
          "httpOnly": false,
          "domain": "getpostman.com",
          "path": "/",
          "secure": false,
          "session": false,
          "value": "813af79fd620c970d59f4e41275292a96873bb5065975eccf67a84cfdc24b448037430d26c2a29f4192ad492875ed7a0d53bbea8c63f760bb75c886624b4da560fc52c7f9f9e79837bee212f90b9a59c1dfcf94b95156b20f45169eab2ed93b0c38669819143ae41e45dfaac6a5f0cf6d5e76ca40134c3bd9ef9f5532ad6d179519aa0315fe4e6e157ee9d71c9f14aa9b0455ff84f94ae7519f1139d0cccdeeef7e2aafe1696cf640ec874c62d4d5bda3dbe17cf6083fb276b7f3355eb19162430f171166d19a7d79da028c76b3c2b97e88c93dc7183bc486d9d331b93b9a20de1216e84ca74f7b6887df61785d0b65be19f56283523f211fd43a772afa39aadc3b8dc011ba680b69a7e4fcda83be75d593c8ce6c6997bf530b57a8036881ea3d5b3c28d096099ca712f5d6916b453f1b338c455c4f861da638dffd05fd2a3dd5b9dd6dbe5f2c3a30e304363c9c2bcfbe5d9abeba9c06df16d155a70c6b0a9848f7446a5646e58640d7fad642df11350f528e4bacb5c446986cddf8f0c7ad10ec1067daccca962d6fb90aad8db55c2ffa1dc8716865350d5127cb69e44cfc4511836cbc5828c1c01370c7464fef1f07c716456a57a467bc1445ea88b705ef9c0c068948a73dca851804663befbc2d9aec7cfc3a2daf377b1a8c020091216d82504ff9b38c84234ad9b6f8c596a",
          "key": "postman.sid"
        },
        {
          "expires": "Invalid Date",
          "hostOnly": false,
          "httpOnly": false,
          "domain": "getpostman.com",
          "path": "/",
          "secure": false,
          "session": false,
          "value": "b8ee90dd180562a5a21edad92ea0b987583b7599811884947b9aae88d0c060e8abb0c337534285da6defa4cfabba320b37b611b2c9586b81cb38220830b58440a2ff03756c898b89eb08799bc486c7dc08643ef1ee6e38e5988c4aafda47f1ed26c4218a23620f43d57aa19bb7f79762b394384215a7805e6b1c2cc092b6ac5ad8e8848b1ce655edba6f52820a2ac5acf3d289dda878c6a1fe62e88bb4159f605e8081afa2afce7a72a0c5d96515d566bcbf9cb3842cfc2b7f3a48badbcbfb9e5907b6451674d2c09cf6bf0b34b967edfc3a6389a834f7be21592ba2fbf7aa9eaaa6b87f99590813ded37c6e4ad17e7afcca74455b703d2d653e6ce063ce8eb195ce46c910a1b61fb71f13a8cb52ab2a7bded1b9b5a6b56ad5a66ceafc20afc70962a1f49b8abf2ce3f9e7cf3f44aaf0f41f81605b4ee612f3044d81b787a7cb128c56474a25cdc13803e9057603ead1f1fd6666ae5467ca9e250bb228dfd11dafd16345019bb7e06c58b27bf69d550cbfcef348bc746fdea61d4ea93c48d5f5e4e729adf18655669170f0a059025a79fb2a48f924d9748895a42780d1a9fae32ebf2d57df434c60b675412e217d126b9edbd28b949dfcbcbc8518aa51339d3e1d1f37c6cac4866064c54a476cf94d749a570938a7ad3ce28a9f1c5ea6623b",
          "key": "postman-staging.sid"
        }
      ],
      "body": "{\n \"run\": {\n  \"info\": {\n   \"jobId\": \"1e6ba2e3-1aaf-4c10-bd5f-905943284b2a\",\n   \"monitorId\": \"1e6b8970-fd13-4480-b011-b3b3e3cd271d\",\n   \"name\": \"Sample Collection monitor 1 #56\",\n   \"collectionUid\": \"5852-1d3daef4-2037-4584-ab86-bafd8c8f8a55\",\n   \"status\": \"failed\",\n   \"startedAt\": \"2016-12-04T14:30:25.000Z\",\n   \"finishedAt\": \"2016-12-04T14:30:26.000Z\"\n  },\n  \"stats\": {\n   \"assertions\": {\n    \"total\": 1,\n    \"failed\": 1\n   },\n   \"requests\": {\n    \"total\": 3,\n    \"failed\": 1\n   }\n  },\n  \"executions\": [\n   {\n    \"id\": 1,\n    \"item\": {\n     \"id\": \"b5e8d7dd-909c-4ba7-aef4-8609bc50b586\",\n     \"name\": \"Sample POST Request\"\n    },\n    \"request\": {\n     \"method\": \"POST\",\n     \"url\": \"echo.getpostman.com/post\",\n     \"headers\": {\n      \"content-type\": \"application/json\",\n      \"accept\": \"*/*\",\n      \"accept-encoding\": \"gzip, deflate\",\n      \"content-length\": 18\n     },\n     \"body\": {\n      \"contentLength\": 18,\n      \"mode\": \"raw\"\n     },\n     \"timestamp\": \"2016-12-04T14:30:26.025Z\"\n    },\n    \"response\": {\n     \"code\": 200,\n     \"body\": {\n      \"contentLength\": 298\n     },\n     \"responseTime\": 26,\n     \"responseSize\": 298,\n     \"headers\": {\n      \"date\": \"Sun, 04 Dec 2016 14:30:26 GMT\",\n      \"content-type\": \"application/json\",\n      \"transfer-encoding\": \"chunked\",\n      \"connection\": \"keep-alive\",\n      \"content-encoding\": \"gzip\"\n     }\n    }\n   },\n   {\n    \"id\": 2,\n    \"item\": {\n     \"id\": \"f790d046-755d-44f5-a416-b825e18dfd9d\",\n     \"name\": \"Sample GET Request\"\n    },\n    \"request\": {\n     \"method\": \"GET\",\n     \"url\": \"echo.getpostman.com/get\",\n     \"headers\": {\n      \"accept\": \"*/*\",\n      \"accept-encoding\": \"gzip, deflate\"\n     },\n     \"body\": {\n      \"contentLength\": 0,\n      \"mode\": \"formdata\"\n     },\n     \"timestamp\": \"2016-12-04T14:30:26.093Z\"\n    },\n    \"response\": {\n     \"code\": 200,\n     \"body\": {\n      \"contentLength\": 280\n     },\n     \"responseTime\": 46,\n     \"responseSize\": 280,\n     \"headers\": {\n      \"date\": \"Sun, 04 Dec 2016 14:30:26 GMT\",\n      \"content-type\": \"application/json\",\n      \"transfer-encoding\": \"chunked\",\n      \"connection\": \"keep-alive\",\n      \"content-encoding\": \"gzip\"\n     }\n    },\n    \"assertions\": {\n     \"Status code is 400\": false\n    }\n   },\n   {\n    \"id\": 3,\n    \"item\": {\n     \"id\": \"336e6e17-6d3e-4b8f-a48f-b7e75cf13afb\",\n     \"name\": \"This is the second request\"\n    },\n    \"request\": {\n     \"method\": \"POST\",\n     \"url\": \"echo.getpostman.com/post\",\n     \"headers\": {\n      \"accept\": \"*/*\",\n      \"accept-encoding\": \"gzip, deflate\",\n      \"content-length\": 18\n     },\n     \"body\": {\n      \"contentLength\": 0,\n      \"mode\": \"formdata\"\n     },\n     \"timestamp\": \"2016-12-04T14:30:26.477Z\"\n    },\n    \"response\": {\n     \"code\": 200,\n     \"body\": {\n      \"contentLength\": 345\n     },\n     \"responseTime\": 9,\n     \"responseSize\": 345,\n     \"headers\": {\n      \"date\": \"Sun, 04 Dec 2016 14:30:26 GMT\",\n      \"content-type\": \"application/json\",\n      \"transfer-encoding\": \"chunked\",\n      \"connection\": \"keep-alive\",\n      \"content-encoding\": \"gzip\"\n     }\n    }\n   }\n  ],\n  \"failures\": [\n   {\n    \"executionId\": 2,\n    \"name\": \"AssertionError\",\n    \"message\": \"Expected 'Status code is 400' to be truthy\",\n    \"assertion\": {\n     \"Status code is 400\": false\n    }\n   }\n  ]\n }\n}"
    }
  ]
}