Skip to content

Retrieve probe results RPC

Charles Francoise requested to merge feature/retrieve-probe-results into develop
POST /v1/results/query HTTP/1.1
API-Key: f90d9d23-b0cf-410a-b1cc-d0f8678f8b8b
Accept: application/json, */*
Accept-Encoding: gzip, deflate
Agent: 9e82e551-ccee-489a-a4c8-81329e70a8a3
Connection: keep-alive
Content-Length: 58
Content-Type: application/json
Host: localhost:7576
User-Agent: HTTPie/0.9.9

{
    "check": "checks/tUQ2ViZ7QRaDxItWkpg1JQ",
    "page_size": 3
}

HTTP/1.1 200 OK
Content-Length: 827
Content-Type: application/json
Date: Mon, 26 Feb 2018 14:10:05 GMT
Grpc-Metadata-Agent-Configuration-Version: 1519070953000000000

{
    "next_page_token": "IQodY2hlY2tzL3RVUTJWaVo3UVJhRHhJdFdrcGcxSlE4AwM",
    "results": [
        {
            "agent": "agents/A4xuAhAoTU-Fe3AV5nrImg",
            "check": "checks/tUQ2ViZ7QRaDxItWkpg1JQ",
            "fields": {
                "val": {
                    "@type": "type.googleapis.com/google.protobuf.DoubleValue",
                    "value": 37662418.22402053
                }
            },
            "tags": {
                "first": "true"
            },
            "timestamp": "2018-02-13T19:00:00.000Z"
        },
        {
            "agent": "agents/fWf1ZVPjT56121t6sHYI0g",
            "check": "checks/tUQ2ViZ7QRaDxItWkpg1JQ",
            "fields": {
                "val": {
                    "@type": "type.googleapis.com/google.protobuf.DoubleValue",
                    "value": 44188232.083338276
                }
            },
            "tags": {
                "first": "true"
            },
            "timestamp": "2018-02-13T19:15:00.000Z"
        },
        {
            "agent": "agents/A4xuAhAoTU-Fe3AV5nrImg",
            "check": "checks/tUQ2ViZ7QRaDxItWkpg1JQ",
            "fields": {
                "val": {
                    "@type": "type.googleapis.com/google.protobuf.DoubleValue",
                    "value": 48736524.89297627
                }
            },
            "tags": {
                "first": "false"
            },
            "timestamp": "2018-02-13T19:30:00.000Z"
        }
    ]
}

Merge request reports