Chilkat Online Tools

unicodeC / Datadog API Collection / Get an API test result

Back to Collection Items

#include <C_CkHttpW.h>
#include <C_CkStringBuilderW.h>
#include <C_CkJsonObjectW.h>

void ChilkatSample(void)
    {
    HCkHttpW http;
    BOOL success;
    HCkStringBuilderW sbResponseBody;
    HCkJsonObjectW jResp;
    int respStatusCode;
    const wchar_t *description;
    const wchar_t *v_type;
    const wchar_t *strVal;
    BOOL Allow_insecure;
    const wchar_t *Password;
    const wchar_t *Username;
    const wchar_t *v_Type;
    const wchar_t *Body;
    const wchar_t *BodyType;
    const wchar_t *CallType;
    const wchar_t *Content;
    const wchar_t *Filename;
    const wchar_t *UpdatedAt;
    const wchar_t *KeyContent;
    const wchar_t *KeyFilename;
    const wchar_t *KeyUpdatedAt;
    const wchar_t *CompressedJsonDescriptor;
    const wchar_t *DnsServer;
    int DnsServerPort;
    BOOL Follow_redirects;
    const wchar_t *Proident_69;
    const wchar_t *Host;
    const wchar_t *Message;
    const wchar_t *Dolor_d;
    const wchar_t *Labore_7c6;
    const wchar_t *Sed002;
    const wchar_t *Method;
    BOOL NoSavingResponseBody;
    int NumberOfPackets;
    BOOL PersistCookies;
    int Port;
    const wchar_t *v_Url;
    const wchar_t *Ead;
    const wchar_t *Servername;
    const wchar_t *Service;
    BOOL ShouldTrackHops;
    const wchar_t *Timeout;
    const wchar_t *RequestUrl;
    const wchar_t *check_time;
    int check_version;
    const wchar_t *probe_dc;
    const wchar_t *Cipher;
    const wchar_t *Exponent;
    const wchar_t *Fingerprint;
    const wchar_t *Fingerprint256;
    const wchar_t *C;
    const wchar_t *CN;
    const wchar_t *L;
    const wchar_t *O;
    const wchar_t *OU;
    const wchar_t *ST;
    const wchar_t *Modulus;
    const wchar_t *Protocol;
    const wchar_t *SerialNumber;
    const wchar_t *SubjectC;
    const wchar_t *SubjectCN;
    const wchar_t *SubjectL;
    const wchar_t *SubjectO;
    const wchar_t *SubjectOU;
    const wchar_t *SubjectST;
    const wchar_t *AltName;
    const wchar_t *ValidFrom;
    const wchar_t *ValidTo;
    const wchar_t *EventType;
    const wchar_t *Code;
    const wchar_t *FailureMessage;
    int HttpStatusCode;
    const wchar_t *ResponseBody;
    const wchar_t *Description;
    const wchar_t *Ut_270Description;
    int ResponseSize;
    const wchar_t *v_Dns;
    const wchar_t *Download;
    const wchar_t *FirstByte;
    const wchar_t *Handshake;
    const wchar_t *Redirect;
    const wchar_t *Ssl;
    const wchar_t *Tcp;
    const wchar_t *Total;
    const wchar_t *Wait;
    const wchar_t *result_id;
    int status;
    int i;
    int count_i;

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

    http = CkHttpW_Create();

    CkHttpW_SetRequestHeader(http,L"Accept",L"application/json");

    sbResponseBody = CkStringBuilderW_Create();
    success = CkHttpW_QuickGetSb(http,L"https://api.app.ddog-gov.com/api/v1/synthetics/tests/:public_id/results/:result_id",sbResponseBody);
    if (success == FALSE) {
        wprintf(L"%s\n",CkHttpW_lastErrorText(http));
        CkHttpW_Dispose(http);
        CkStringBuilderW_Dispose(sbResponseBody);
        return;
    }

    jResp = CkJsonObjectW_Create();
    CkJsonObjectW_LoadSb(jResp,sbResponseBody);
    CkJsonObjectW_putEmitCompact(jResp,FALSE);

    wprintf(L"Response Body:\n");
    wprintf(L"%s\n",CkJsonObjectW_emit(jResp));

    respStatusCode = CkHttpW_getLastStatus(http);
    wprintf(L"Response Status Code = %d\n",respStatusCode);
    if (respStatusCode >= 400) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",CkHttpW_lastHeader(http));
        wprintf(L"Failed.\n");
        CkHttpW_Dispose(http);
        CkStringBuilderW_Dispose(sbResponseBody);
        CkJsonObjectW_Dispose(jResp);
        return;
    }

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

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.

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

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"check.config.variables");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        description = CkJsonObjectW_stringOf(jResp,L"check.config.variables[i].description");
        v_type = CkJsonObjectW_stringOf(jResp,L"check.config.variables[i].type");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObjectW_SizeOfArray(jResp,L"result.cert.extKeyUsage");
    while (i < count_i) {
        CkJsonObjectW_putI(jResp,i);
        strVal = CkJsonObjectW_stringOf(jResp,L"result.cert.extKeyUsage[i]");
        i = i + 1;
    }



    CkHttpW_Dispose(http);
    CkStringBuilderW_Dispose(sbResponseBody);
    CkJsonObjectW_Dispose(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}"
    }
  ]
}