v1

latestOpenAPI 3.0.02026-08-064311,0881.3 MB
spanAnalytics

Get span analytics query aggregated results.

Get span aggregation results for an aggregated span analytics query with the specified id. Only aggregated rows being part of the executed query will have matching results in the response of this endpoint.

get/v1/tracing/spanquery/{queryId}/aggregates

Path parameters

queryIdstring required
Example:195038749d21ad109242c95cbbc8709d

Identifier of the executed query.

Response

The aggregation result of the executed query.

Example response

{
  "result": {
    "status": "Processing",
    "statusMessage": "Finished successfully",
    "series": [
      {
        "queryId": "A",
        "name": "max(Disk_Used)",
        "dataPoints": [
          {
            "x": 1,
            "y": "12.3",
            "xAxisValues": {
              "operation": "/get/accounts",
              "service": "accountService"
            }
          }
        ],
        "aggregateInfo": {
          "max": 10,
          "min": 1.2,
          "avg": 5.6,
          "sum": 123.4,
          "latest": 23.4,
          "count": 600
        },
        "metaData": {
          "data": {
            "deployment": "dev",
            "cluster": "frontend",
            "instance": "frontend-12"
          }
        },
        "seriesType": "TIMESERIES",
        "xAxisKeys": [
          "_sourceCategory",
          "_sourceHost"
        ],
        "valueType": "DOUBLE"
      }
    ]
  }
}