v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Synthetics

Get a test's latest results

Get the latest result summaries for a given Synthetic test.

get/api/v2/synthetics/tests/{public_id}/results

Path parameters

public_idstring required

The public ID of the Synthetic test for which to search results.

Query parameters

from_tsinteger

Timestamp in milliseconds from which to start querying results.

to_tsinteger

Timestamp in milliseconds up to which to query results.

status'passed' | 'failed' | 'no_data'

Status of a Synthetic test result.

Example:passed

Filter results by status.

runType'scheduled' | 'fast' | 'ci' | 'triggered'

The type of run for a Synthetic test result.

Example:scheduled

Filter results by run type.

probe_dcstring[]

Locations for which to query results.

device_idstring[]

Device IDs for which to query results.

Response

OK

Example response

{
  "data": [
    {
      "attributes": {
        "device": {
          "browser": {
            "type": "edge",
            "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 Edg/127.0.2651.105 DatadogSynthetics",
            "version": "127.0.2651.105"
          },
          "id": "chrome.laptop_large",
          "name": "Chrome - Laptop Large",
          "platform": {
            "name": "ios",
            "version": "14.8"
          },
          "resolution": {
            "height": 1100,
            "pixel_ratio": 2,
            "width": 1440
          },
          "type": "browser"
        },
        "execution_info": {
          "duration": {
            "has_duration": true,
            "value": 380
          },
          "error_message": "Connection timed out",
          "is_fast_retry": true,
          "timings": {
            "dns": 2.9,
            "download": 2.1,
            "firstByte": 95.2,
            "ssl": 187.9,
            "tcp": 92.6,
            "total": 380.7
          }
        },
        "location": {
          "id": "aws:us-east-1",
          "name": "N. Virginia (AWS)",
          "version": "1.0.0",
          "worker_id": "worker-abc-123"
        },
        "run_type": "scheduled",
        "status": "passed",
        "steps_info": {
          "completed": 6,
          "total": 6
        },
        "test_sub_type": "http",
        "test_type": "api"
      },
      "id": "5158904793181869365",
      "relationships": {
        "test": {
          "data": {
            "id": "abc-def-123",
            "type": "test"
          }
        }
      },
      "type": "result_summary"
    }
  ],
  "included": [
    {
      "id": "abc-def-123",
      "type": "test"
    }
  ]
}