Chilkat Online Tools

PowerBuilder / Datadog API Collection / Get an API test result

Back to Collection Items

integer li_rc
oleobject loo_Http
integer li_Success
oleobject loo_SbResponseBody
oleobject loo_JResp
integer li_RespStatusCode
string ls_Description
string ls_V_type
string ls_StrVal
integer li_Allow_insecure
string ls_Password
string ls_Username
string ls_V_Type
string ls_Body
string ls_BodyType
string ls_CallType
string ls_Content
string ls_Filename
string ls_UpdatedAt
string ls_KeyContent
string ls_KeyFilename
string ls_KeyUpdatedAt
string ls_CompressedJsonDescriptor
string ls_DnsServer
integer li_DnsServerPort
integer li_Follow_redirects
string ls_Proident_69
string ls_Host
string ls_Message
string ls_Dolor_d
string ls_Labore_7c6
string ls_Sed002
string ls_Method
integer li_NoSavingResponseBody
integer li_NumberOfPackets
integer li_PersistCookies
integer li_Port
string ls_V_Url
string ls_Ead
string ls_Servername
string ls_Service
integer li_ShouldTrackHops
string ls_Timeout
string ls_RequestUrl
string ls_Check_time
integer li_Check_version
string ls_Probe_dc
string ls_Cipher
string ls_Exponent
string ls_Fingerprint
string ls_Fingerprint256
string C
string ls_CN
string L
string O
string ls_OU
string ls_ST
string ls_Modulus
string ls_Protocol
string ls_SerialNumber
string ls_SubjectC
string ls_SubjectCN
string ls_SubjectL
string ls_SubjectO
string ls_SubjectOU
string ls_SubjectST
string ls_AltName
string ls_ValidFrom
string ls_ValidTo
string ls_EventType
string ls_Code
string ls_FailureMessage
integer li_HttpStatusCode
string ls_ResponseBody
string ls_Description
string ls_Ut_270Description
integer li_ResponseSize
string ls_V_Dns
string ls_Download
string ls_FirstByte
string ls_Handshake
string ls_Redirect
string ls_Ssl
string ls_Tcp
string ls_Total
string ls_Wait
string ls_Result_id
integer li_Status
integer i
integer li_Count_i

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

loo_Http = create oleobject
li_rc = loo_Http.ConnectToNewObject("Chilkat_9_5_0.Http")
if li_rc < 0 then
    destroy loo_Http
    MessageBox("Error","Connecting to COM object failed")
    return
end if

loo_Http.SetRequestHeader("Accept","application/json")

loo_SbResponseBody = create oleobject
li_rc = loo_SbResponseBody.ConnectToNewObject("Chilkat_9_5_0.StringBuilder")

li_Success = loo_Http.QuickGetSb("https://api.app.ddog-gov.com/api/v1/synthetics/tests/:public_id/results/:result_id",loo_SbResponseBody)
if li_Success = 0 then
    Write-Debug loo_Http.LastErrorText
    destroy loo_Http
    destroy loo_SbResponseBody
    return
end if

loo_JResp = create oleobject
li_rc = loo_JResp.ConnectToNewObject("Chilkat_9_5_0.JsonObject")

loo_JResp.LoadSb(loo_SbResponseBody)
loo_JResp.EmitCompact = 0

Write-Debug "Response Body:"
Write-Debug loo_JResp.Emit()

li_RespStatusCode = loo_Http.LastStatus
Write-Debug "Response Status Code = " + string(li_RespStatusCode)
if li_RespStatusCode >= 400 then
    Write-Debug "Response Header:"
    Write-Debug loo_Http.LastHeader
    Write-Debug "Failed."
    destroy loo_Http
    destroy loo_SbResponseBody
    destroy loo_JResp
    return
end if

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

// {
//   "check": {
//     "config": {
//       "configVariables": [
//         {
//           "description": "Example for the variable.",
//           "type": "string"
//         },
//         {
//           "description": "Example for the variable.",
//           "type": "string"
//         }
//       ],
//       "request": {
//         "allow_insecure": false,
//         "basicAuth": {
//           "password": "PaSSw0RD!",
//           "username": "my_username",
//           "type": "web"
//         },
//         "body": "proident",
//         "bodyType": "text/plain",
//         "callType": "unary",
//         "certificate": {
//           "cert": {
//             "content": "reprehenderit labore Ut sed mollit",
//             "filename": "Duis consectetur incididunt eiusmod",
//             "updatedAt": "aliquip in"
//           },
//           "key": {
//             "content": "consequat sint nulla aute aliquip",
//             "filename": "non nisi",
//             "updatedAt": "et"
//           }
//         },
//         "compressedJsonDescriptor": "dolore",
//         "dnsServer": "elit nostrud in adipisic",
//         "dnsServerPort": 60578,
//         "follow_redirects": false,
//         "headers": {
//           "proident_69": "quis dolor occaecat"
//         },
//         "host": "laborum laboris",
//         "message": "aliqua ea laborum laboris",
//         "metadata": {
//           "dolor_d": "veniam nostrud anim nulla",
//           "labore_7c6": "consequat eu",
//           "sed002": "Excepteur eiusmod adipisicing"
//         },
//         "method": "et irure",
//         "noSavingResponseBody": false,
//         "numberOfPackets": 9,
//         "persistCookies": false,
//         "port": 99104800,
//         "proxy": {
//           "url": "https://example.com",
//           "headers": {
//             "ead": "i"
//           }
//         },
//         "query": {},
//         "servername": "cillum enim adipisicing",
//         "service": "Greeter",
//         "shouldTrackHops": true,
//         "timeout": -43666416.92792323,
//         "url": "https://example.com"
//       },
//       "variables": [
//         {
//           "description": "Example for the variable.",
//           "type": "string"
//         },
//         {
//           "description": "Example for the variable.",
//           "type": "string"
//         }
//       ]
//     }
//   },
//   "check_time": -61984290.348021574,
//   "check_version": -35585398,
//   "probe_dc": "Duis aute",
//   "result": {
//     "cert": {
//       "cipher": "laborum dolore elit reprehenderit",
//       "exponent": -97057115.16341409,
//       "extKeyUsage": [
//         "e",
//         "non nulla"
//       ],
//       "fingerprint": "enim",
//       "fingerprint256": "commodo Duis elit culpa",
//       "issuer": {
//         "C": "id",
//         "CN": "dolor esse",
//         "L": "Lorem magna",
//         "O": "adipisicing ullamco",
//         "OU": "nostrud labore",
//         "ST": "proident consequat ut"
//       },
//       "modulus": "ut dolore cupidatat officia",
//       "protocol": "cillum dolor commodo sit",
//       "serialNumber": "velit",
//       "subject": {
//         "C": "aliquip ad voluptate",
//         "CN": "irure",
//         "L": "elit",
//         "O": "in",
//         "OU": "cillum dolor dolor aliquip nulla",
//         "ST": "mollit velit et",
//         "altName": "veniam eu mollit irure"
//       },
//       "validFrom": "1993-10-19T21:25:09.532Z",
//       "validTo": "2015-01-05T06:21:16.689Z"
//     },
//     "eventType": "finished_with_error",
//     "failure": {
//       "code": "DECRYPTION",
//       "message": "Error during DNS resolution (ENOTFOUND)."
//     },
//     "httpStatusCode": 81890255,
//     "requestHeaders": {
//       "Ut2": {},
//       "ad_29": {}
//     },
//     "responseBody": "Excepteur laboris Ut dolor",
//     "responseHeaders": {
//       "ut19b": {
//         "description": "Returned request header."
//       },
//       "Ut_270": {
//         "description": "Returned request header."
//       }
//     },
//     "responseSize": -51226186,
//     "timings": {
//       "dns": 31944439.48881416,
//       "download": -87539924.41719314,
//       "firstByte": -96589047.25818287,
//       "handshake": 84645232.54590705,
//       "redirect": -32741896.0310553,
//       "ssl": -93300794.33204812,
//       "tcp": 65643.03422442079,
//       "total": 82914630.9958055,
//       "wait": 29723058.510239527
//     }
//   },
//   "result_id": "culpa adipisicing consectetur sit",
//   "status": 1
// }

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

li_Allow_insecure = loo_JResp.BoolOf("check.config.request.allow_insecure")
ls_Password = loo_JResp.StringOf("check.config.request.basicAuth.password")
ls_Username = loo_JResp.StringOf("check.config.request.basicAuth.username")
ls_V_Type = loo_JResp.StringOf("check.config.request.basicAuth.type")
ls_Body = loo_JResp.StringOf("check.config.request.body")
ls_BodyType = loo_JResp.StringOf("check.config.request.bodyType")
ls_CallType = loo_JResp.StringOf("check.config.request.callType")
ls_Content = loo_JResp.StringOf("check.config.request.certificate.cert.content")
ls_Filename = loo_JResp.StringOf("check.config.request.certificate.cert.filename")
ls_UpdatedAt = loo_JResp.StringOf("check.config.request.certificate.cert.updatedAt")
ls_KeyContent = loo_JResp.StringOf("check.config.request.certificate.key.content")
ls_KeyFilename = loo_JResp.StringOf("check.config.request.certificate.key.filename")
ls_KeyUpdatedAt = loo_JResp.StringOf("check.config.request.certificate.key.updatedAt")
ls_CompressedJsonDescriptor = loo_JResp.StringOf("check.config.request.compressedJsonDescriptor")
ls_DnsServer = loo_JResp.StringOf("check.config.request.dnsServer")
li_DnsServerPort = loo_JResp.IntOf("check.config.request.dnsServerPort")
li_Follow_redirects = loo_JResp.BoolOf("check.config.request.follow_redirects")
ls_Proident_69 = loo_JResp.StringOf("check.config.request.headers.proident_69")
ls_Host = loo_JResp.StringOf("check.config.request.host")
ls_Message = loo_JResp.StringOf("check.config.request.message")
ls_Dolor_d = loo_JResp.StringOf("check.config.request.metadata.dolor_d")
ls_Labore_7c6 = loo_JResp.StringOf("check.config.request.metadata.labore_7c6")
ls_Sed002 = loo_JResp.StringOf("check.config.request.metadata.sed002")
ls_Method = loo_JResp.StringOf("check.config.request.method")
li_NoSavingResponseBody = loo_JResp.BoolOf("check.config.request.noSavingResponseBody")
li_NumberOfPackets = loo_JResp.IntOf("check.config.request.numberOfPackets")
li_PersistCookies = loo_JResp.BoolOf("check.config.request.persistCookies")
li_Port = loo_JResp.IntOf("check.config.request.port")
ls_V_Url = loo_JResp.StringOf("check.config.request.proxy.url")
ls_Ead = loo_JResp.StringOf("check.config.request.proxy.headers.ead")
ls_Servername = loo_JResp.StringOf("check.config.request.servername")
ls_Service = loo_JResp.StringOf("check.config.request.service")
li_ShouldTrackHops = loo_JResp.BoolOf("check.config.request.shouldTrackHops")
ls_Timeout = loo_JResp.StringOf("check.config.request.timeout")
ls_RequestUrl = loo_JResp.StringOf("check.config.request.url")
ls_Check_time = loo_JResp.StringOf("check_time")
li_Check_version = loo_JResp.IntOf("check_version")
ls_Probe_dc = loo_JResp.StringOf("probe_dc")
ls_Cipher = loo_JResp.StringOf("result.cert.cipher")
ls_Exponent = loo_JResp.StringOf("result.cert.exponent")
ls_Fingerprint = loo_JResp.StringOf("result.cert.fingerprint")
ls_Fingerprint256 = loo_JResp.StringOf("result.cert.fingerprint256")
C = loo_JResp.StringOf("result.cert.issuer.C")
ls_CN = loo_JResp.StringOf("result.cert.issuer.CN")
L = loo_JResp.StringOf("result.cert.issuer.L")
O = loo_JResp.StringOf("result.cert.issuer.O")
ls_OU = loo_JResp.StringOf("result.cert.issuer.OU")
ls_ST = loo_JResp.StringOf("result.cert.issuer.ST")
ls_Modulus = loo_JResp.StringOf("result.cert.modulus")
ls_Protocol = loo_JResp.StringOf("result.cert.protocol")
ls_SerialNumber = loo_JResp.StringOf("result.cert.serialNumber")
ls_SubjectC = loo_JResp.StringOf("result.cert.subject.C")
ls_SubjectCN = loo_JResp.StringOf("result.cert.subject.CN")
ls_SubjectL = loo_JResp.StringOf("result.cert.subject.L")
ls_SubjectO = loo_JResp.StringOf("result.cert.subject.O")
ls_SubjectOU = loo_JResp.StringOf("result.cert.subject.OU")
ls_SubjectST = loo_JResp.StringOf("result.cert.subject.ST")
ls_AltName = loo_JResp.StringOf("result.cert.subject.altName")
ls_ValidFrom = loo_JResp.StringOf("result.cert.validFrom")
ls_ValidTo = loo_JResp.StringOf("result.cert.validTo")
ls_EventType = loo_JResp.StringOf("result.eventType")
ls_Code = loo_JResp.StringOf("result.failure.code")
ls_FailureMessage = loo_JResp.StringOf("result.failure.message")
li_HttpStatusCode = loo_JResp.IntOf("result.httpStatusCode")
ls_ResponseBody = loo_JResp.StringOf("result.responseBody")
ls_Description = loo_JResp.StringOf("result.responseHeaders.ut19b.description")
ls_Ut_270Description = loo_JResp.StringOf("result.responseHeaders.Ut_270.description")
li_ResponseSize = loo_JResp.IntOf("result.responseSize")
ls_V_Dns = loo_JResp.StringOf("result.timings.dns")
ls_Download = loo_JResp.StringOf("result.timings.download")
ls_FirstByte = loo_JResp.StringOf("result.timings.firstByte")
ls_Handshake = loo_JResp.StringOf("result.timings.handshake")
ls_Redirect = loo_JResp.StringOf("result.timings.redirect")
ls_Ssl = loo_JResp.StringOf("result.timings.ssl")
ls_Tcp = loo_JResp.StringOf("result.timings.tcp")
ls_Total = loo_JResp.StringOf("result.timings.total")
ls_Wait = loo_JResp.StringOf("result.timings.wait")
ls_Result_id = loo_JResp.StringOf("result_id")
li_Status = loo_JResp.IntOf("status")
i = 0
li_Count_i = loo_JResp.SizeOfArray("check.config.configVariables")
do while i < li_Count_i
    loo_JResp.I = i
    ls_Description = loo_JResp.StringOf("check.config.configVariables[i].description")
    ls_V_type = loo_JResp.StringOf("check.config.configVariables[i].type")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("check.config.variables")
do while i < li_Count_i
    loo_JResp.I = i
    ls_Description = loo_JResp.StringOf("check.config.variables[i].description")
    ls_V_type = loo_JResp.StringOf("check.config.variables[i].type")
    i = i + 1
loop
i = 0
li_Count_i = loo_JResp.SizeOfArray("result.cert.extKeyUsage")
do while i < li_Count_i
    loo_JResp.I = i
    ls_StrVal = loo_JResp.StringOf("result.cert.extKeyUsage[i]")
    i = i + 1
loop


destroy loo_Http
destroy loo_SbResponseBody
destroy loo_JResp

Curl Command

curl -X GET
	-H "Accept: application/json"
https://api.app.ddog-gov.com/api/v1/synthetics/tests/:public_id/results/:result_id

Postman Collection Item JSON

{
  "name": "Get an API test result",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v1/synthetics/tests/:public_id/results/:result_id",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v1",
        "synthetics",
        "tests",
        ":public_id",
        "results",
        ":result_id"
      ],
      "variable": [
        {
          "key": "public_id",
          "value": "tempor Ut sed velit"
        },
        {
          "key": "result_id",
          "value": "tempor Ut sed velit"
        }
      ]
    },
    "description": "Get a specific full result from a given Synthetic API test."
  },
  "response": [
    {
      "name": "OK",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/synthetics/tests/:public_id/results/:result_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "synthetics",
            "tests",
            ":public_id",
            "results",
            ":result_id"
          ],
          "variable": [
            {
              "key": "public_id"
            },
            {
              "key": "result_id"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"check\": {\n    \"config\": {\n      \"configVariables\": [\n        {\n          \"description\": \"Example for the variable.\",\n          \"type\": \"string\"\n        },\n        {\n          \"description\": \"Example for the variable.\",\n          \"type\": \"string\"\n        }\n      ],\n      \"request\": {\n        \"allow_insecure\": false,\n        \"basicAuth\": {\n          \"password\": \"PaSSw0RD!\",\n          \"username\": \"my_username\",\n          \"type\": \"web\"\n        },\n        \"body\": \"proident\",\n        \"bodyType\": \"text/plain\",\n        \"callType\": \"unary\",\n        \"certificate\": {\n          \"cert\": {\n            \"content\": \"reprehenderit labore Ut sed mollit\",\n            \"filename\": \"Duis consectetur incididunt eiusmod\",\n            \"updatedAt\": \"aliquip in\"\n          },\n          \"key\": {\n            \"content\": \"consequat sint nulla aute aliquip\",\n            \"filename\": \"non nisi\",\n            \"updatedAt\": \"et\"\n          }\n        },\n        \"compressedJsonDescriptor\": \"dolore\",\n        \"dnsServer\": \"elit nostrud in adipisic\",\n        \"dnsServerPort\": 60578,\n        \"follow_redirects\": false,\n        \"headers\": {\n          \"proident_69\": \"quis dolor occaecat\"\n        },\n        \"host\": \"laborum laboris\",\n        \"message\": \"aliqua ea laborum laboris\",\n        \"metadata\": {\n          \"dolor_d\": \"veniam nostrud anim nulla\",\n          \"labore_7c6\": \"consequat eu\",\n          \"sed002\": \"Excepteur eiusmod adipisicing\"\n        },\n        \"method\": \"et irure\",\n        \"noSavingResponseBody\": false,\n        \"numberOfPackets\": 9,\n        \"persistCookies\": false,\n        \"port\": 99104800,\n        \"proxy\": {\n          \"url\": \"https://example.com\",\n          \"headers\": {\n            \"ead\": \"i\"\n          }\n        },\n        \"query\": {},\n        \"servername\": \"cillum enim adipisicing\",\n        \"service\": \"Greeter\",\n        \"shouldTrackHops\": true,\n        \"timeout\": -43666416.92792323,\n        \"url\": \"https://example.com\"\n      },\n      \"variables\": [\n        {\n          \"description\": \"Example for the variable.\",\n          \"type\": \"string\"\n        },\n        {\n          \"description\": \"Example for the variable.\",\n          \"type\": \"string\"\n        }\n      ]\n    }\n  },\n  \"check_time\": -61984290.348021574,\n  \"check_version\": -35585398,\n  \"probe_dc\": \"Duis aute\",\n  \"result\": {\n    \"cert\": {\n      \"cipher\": \"laborum dolore elit reprehenderit\",\n      \"exponent\": -97057115.16341409,\n      \"extKeyUsage\": [\n        \"e\",\n        \"non nulla\"\n      ],\n      \"fingerprint\": \"enim\",\n      \"fingerprint256\": \"commodo Duis elit culpa\",\n      \"issuer\": {\n        \"C\": \"id\",\n        \"CN\": \"dolor esse\",\n        \"L\": \"Lorem magna\",\n        \"O\": \"adipisicing ullamco\",\n        \"OU\": \"nostrud labore\",\n        \"ST\": \"proident consequat ut\"\n      },\n      \"modulus\": \"ut dolore cupidatat officia\",\n      \"protocol\": \"cillum dolor commodo sit\",\n      \"serialNumber\": \"velit\",\n      \"subject\": {\n        \"C\": \"aliquip ad voluptate\",\n        \"CN\": \"irure\",\n        \"L\": \"elit\",\n        \"O\": \"in\",\n        \"OU\": \"cillum dolor dolor aliquip nulla\",\n        \"ST\": \"mollit velit et\",\n        \"altName\": \"veniam eu mollit irure\"\n      },\n      \"validFrom\": \"1993-10-19T21:25:09.532Z\",\n      \"validTo\": \"2015-01-05T06:21:16.689Z\"\n    },\n    \"eventType\": \"finished_with_error\",\n    \"failure\": {\n      \"code\": \"DECRYPTION\",\n      \"message\": \"Error during DNS resolution (ENOTFOUND).\"\n    },\n    \"httpStatusCode\": 81890255,\n    \"requestHeaders\": {\n      \"Ut2\": {},\n      \"ad_29\": {}\n    },\n    \"responseBody\": \"Excepteur laboris Ut dolor\",\n    \"responseHeaders\": {\n      \"ut19b\": {\n        \"description\": \"Returned request header.\"\n      },\n      \"Ut_270\": {\n        \"description\": \"Returned request header.\"\n      }\n    },\n    \"responseSize\": -51226186,\n    \"timings\": {\n      \"dns\": 31944439.48881416,\n      \"download\": -87539924.41719314,\n      \"firstByte\": -96589047.25818287,\n      \"handshake\": 84645232.54590705,\n      \"redirect\": -32741896.0310553,\n      \"ssl\": -93300794.33204812,\n      \"tcp\": 65643.03422442079,\n      \"total\": 82914630.9958055,\n      \"wait\": 29723058.510239527\n    }\n  },\n  \"result_id\": \"culpa adipisicing consectetur sit\",\n  \"status\": 1\n}"
    },
    {
      "name": "Forbidden",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/synthetics/tests/:public_id/results/:result_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "synthetics",
            "tests",
            ":public_id",
            "results",
            ":result_id"
          ],
          "variable": [
            {
              "key": "public_id"
            },
            {
              "key": "result_id"
            }
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"Bad Request\",\n    \"Bad Request\"\n  ]\n}"
    },
    {
      "name": "- Synthetic Monitoring is not activated for the user\n- Test or result is not owned by the user",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/synthetics/tests/:public_id/results/:result_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "synthetics",
            "tests",
            ":public_id",
            "results",
            ":result_id"
          ],
          "variable": [
            {
              "key": "public_id"
            },
            {
              "key": "result_id"
            }
          ]
        }
      },
      "status": "Not Found",
      "code": 404,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"Bad Request\",\n    \"Bad Request\"\n  ]\n}"
    },
    {
      "name": "Too many requests",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "key": "Accept",
            "value": "application/json"
          },
          {
            "description": "Added as a part of security scheme: apikey",
            "key": "DD-API-KEY",
            "value": "<API Key>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/synthetics/tests/:public_id/results/:result_id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v1",
            "synthetics",
            "tests",
            ":public_id",
            "results",
            ":result_id"
          ],
          "variable": [
            {
              "key": "public_id"
            },
            {
              "key": "result_id"
            }
          ]
        }
      },
      "status": "Too Many Requests",
      "code": 429,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"errors\": [\n    \"Bad Request\",\n    \"Bad Request\"\n  ]\n}"
    }
  ]
}