Chilkat Online Tools

SQL Server / Datadog API Collection / Get an API test result

Back to Collection Items

-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    -- Important: Do not use nvarchar(max).  See the warning about using nvarchar(max).
    DECLARE @sTmp0 nvarchar(4000)
    -- This example assumes the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @http int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.Http', @http OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json'

    DECLARE @sbResponseBody int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @http, 'QuickGetSb', @success OUT, 'https://api.app.ddog-gov.com/api/v1/synthetics/tests/:public_id/results/:result_id', @sbResponseBody
    IF @success = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @sbResponseBody
        RETURN
      END

    DECLARE @jResp int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jResp OUT

    EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
    EXEC sp_OASetProperty @jResp, 'EmitCompact', 0


    PRINT 'Response Body:'
    EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @http, 'LastStatus', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @http, 'LastHeader', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END

    -- 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

    DECLARE @description nvarchar(4000)

    DECLARE @v_type nvarchar(4000)

    DECLARE @strVal nvarchar(4000)

    DECLARE @Allow_insecure int
    EXEC sp_OAMethod @jResp, 'BoolOf', @Allow_insecure OUT, 'check.config.request.allow_insecure'
    DECLARE @Password nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Password OUT, 'check.config.request.basicAuth.password'
    DECLARE @Username nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Username OUT, 'check.config.request.basicAuth.username'
    DECLARE @v_Type nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @v_Type OUT, 'check.config.request.basicAuth.type'
    DECLARE @Body nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Body OUT, 'check.config.request.body'
    DECLARE @BodyType nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @BodyType OUT, 'check.config.request.bodyType'
    DECLARE @CallType nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @CallType OUT, 'check.config.request.callType'
    DECLARE @Content nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Content OUT, 'check.config.request.certificate.cert.content'
    DECLARE @Filename nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Filename OUT, 'check.config.request.certificate.cert.filename'
    DECLARE @UpdatedAt nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @UpdatedAt OUT, 'check.config.request.certificate.cert.updatedAt'
    DECLARE @KeyContent nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @KeyContent OUT, 'check.config.request.certificate.key.content'
    DECLARE @KeyFilename nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @KeyFilename OUT, 'check.config.request.certificate.key.filename'
    DECLARE @KeyUpdatedAt nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @KeyUpdatedAt OUT, 'check.config.request.certificate.key.updatedAt'
    DECLARE @CompressedJsonDescriptor nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @CompressedJsonDescriptor OUT, 'check.config.request.compressedJsonDescriptor'
    DECLARE @DnsServer nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @DnsServer OUT, 'check.config.request.dnsServer'
    DECLARE @DnsServerPort int
    EXEC sp_OAMethod @jResp, 'IntOf', @DnsServerPort OUT, 'check.config.request.dnsServerPort'
    DECLARE @Follow_redirects int
    EXEC sp_OAMethod @jResp, 'BoolOf', @Follow_redirects OUT, 'check.config.request.follow_redirects'
    DECLARE @Proident_69 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Proident_69 OUT, 'check.config.request.headers.proident_69'
    DECLARE @Host nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Host OUT, 'check.config.request.host'
    DECLARE @Message nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Message OUT, 'check.config.request.message'
    DECLARE @Dolor_d nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Dolor_d OUT, 'check.config.request.metadata.dolor_d'
    DECLARE @Labore_7c6 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Labore_7c6 OUT, 'check.config.request.metadata.labore_7c6'
    DECLARE @Sed002 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Sed002 OUT, 'check.config.request.metadata.sed002'
    DECLARE @Method nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Method OUT, 'check.config.request.method'
    DECLARE @NoSavingResponseBody int
    EXEC sp_OAMethod @jResp, 'BoolOf', @NoSavingResponseBody OUT, 'check.config.request.noSavingResponseBody'
    DECLARE @NumberOfPackets int
    EXEC sp_OAMethod @jResp, 'IntOf', @NumberOfPackets OUT, 'check.config.request.numberOfPackets'
    DECLARE @PersistCookies int
    EXEC sp_OAMethod @jResp, 'BoolOf', @PersistCookies OUT, 'check.config.request.persistCookies'
    DECLARE @Port int
    EXEC sp_OAMethod @jResp, 'IntOf', @Port OUT, 'check.config.request.port'
    DECLARE @v_Url nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @v_Url OUT, 'check.config.request.proxy.url'
    DECLARE @Ead nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Ead OUT, 'check.config.request.proxy.headers.ead'
    DECLARE @Servername nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Servername OUT, 'check.config.request.servername'
    DECLARE @Service nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Service OUT, 'check.config.request.service'
    DECLARE @ShouldTrackHops int
    EXEC sp_OAMethod @jResp, 'BoolOf', @ShouldTrackHops OUT, 'check.config.request.shouldTrackHops'
    DECLARE @Timeout nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Timeout OUT, 'check.config.request.timeout'
    DECLARE @RequestUrl nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @RequestUrl OUT, 'check.config.request.url'
    DECLARE @check_time nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @check_time OUT, 'check_time'
    DECLARE @check_version int
    EXEC sp_OAMethod @jResp, 'IntOf', @check_version OUT, 'check_version'
    DECLARE @probe_dc nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @probe_dc OUT, 'probe_dc'
    DECLARE @Cipher nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Cipher OUT, 'result.cert.cipher'
    DECLARE @Exponent nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Exponent OUT, 'result.cert.exponent'
    DECLARE @Fingerprint nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Fingerprint OUT, 'result.cert.fingerprint'
    DECLARE @Fingerprint256 nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Fingerprint256 OUT, 'result.cert.fingerprint256'
    DECLARE @C nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @C OUT, 'result.cert.issuer.C'
    DECLARE @CN nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @CN OUT, 'result.cert.issuer.CN'
    DECLARE @L nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @L OUT, 'result.cert.issuer.L'
    DECLARE @O nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @O OUT, 'result.cert.issuer.O'
    DECLARE @OU nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @OU OUT, 'result.cert.issuer.OU'
    DECLARE @ST nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @ST OUT, 'result.cert.issuer.ST'
    DECLARE @Modulus nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Modulus OUT, 'result.cert.modulus'
    DECLARE @Protocol nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Protocol OUT, 'result.cert.protocol'
    DECLARE @SerialNumber nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @SerialNumber OUT, 'result.cert.serialNumber'
    DECLARE @SubjectC nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @SubjectC OUT, 'result.cert.subject.C'
    DECLARE @SubjectCN nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @SubjectCN OUT, 'result.cert.subject.CN'
    DECLARE @SubjectL nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @SubjectL OUT, 'result.cert.subject.L'
    DECLARE @SubjectO nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @SubjectO OUT, 'result.cert.subject.O'
    DECLARE @SubjectOU nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @SubjectOU OUT, 'result.cert.subject.OU'
    DECLARE @SubjectST nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @SubjectST OUT, 'result.cert.subject.ST'
    DECLARE @AltName nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @AltName OUT, 'result.cert.subject.altName'
    DECLARE @ValidFrom nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @ValidFrom OUT, 'result.cert.validFrom'
    DECLARE @ValidTo nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @ValidTo OUT, 'result.cert.validTo'
    DECLARE @EventType nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @EventType OUT, 'result.eventType'
    DECLARE @Code nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Code OUT, 'result.failure.code'
    DECLARE @FailureMessage nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @FailureMessage OUT, 'result.failure.message'
    DECLARE @HttpStatusCode int
    EXEC sp_OAMethod @jResp, 'IntOf', @HttpStatusCode OUT, 'result.httpStatusCode'
    DECLARE @ResponseBody nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @ResponseBody OUT, 'result.responseBody'
    DECLARE @Description nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Description OUT, 'result.responseHeaders.ut19b.description'
    DECLARE @Ut_270Description nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Ut_270Description OUT, 'result.responseHeaders.Ut_270.description'
    DECLARE @ResponseSize int
    EXEC sp_OAMethod @jResp, 'IntOf', @ResponseSize OUT, 'result.responseSize'
    DECLARE @v_Dns nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @v_Dns OUT, 'result.timings.dns'
    DECLARE @Download nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Download OUT, 'result.timings.download'
    DECLARE @FirstByte nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @FirstByte OUT, 'result.timings.firstByte'
    DECLARE @Handshake nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Handshake OUT, 'result.timings.handshake'
    DECLARE @Redirect nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Redirect OUT, 'result.timings.redirect'
    DECLARE @Ssl nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Ssl OUT, 'result.timings.ssl'
    DECLARE @Tcp nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Tcp OUT, 'result.timings.tcp'
    DECLARE @Total nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Total OUT, 'result.timings.total'
    DECLARE @Wait nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @Wait OUT, 'result.timings.wait'
    DECLARE @result_id nvarchar(4000)
    EXEC sp_OAMethod @jResp, 'StringOf', @result_id OUT, 'result_id'
    DECLARE @status int
    EXEC sp_OAMethod @jResp, 'IntOf', @status OUT, 'status'
    DECLARE @i int
    SELECT @i = 0
    DECLARE @count_i int
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'check.config.configVariables'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @description OUT, 'check.config.configVariables[i].description'
        EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'check.config.configVariables[i].type'
        SELECT @i = @i + 1
      END
    SELECT @i = 0
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'check.config.variables'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @description OUT, 'check.config.variables[i].description'
        EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'check.config.variables[i].type'
        SELECT @i = @i + 1
      END
    SELECT @i = 0
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'result.cert.extKeyUsage'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'result.cert.extKeyUsage[i]'
        SELECT @i = @i + 1
      END

    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

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}"
    }
  ]
}