v1

latestSwagger 2.02026-07-178567199.3 KB
sources
queries

Used to analyze queries for structure`

post/sources/{id}/queries

Path parameters

idstring required

ID of the data source

Request body

Response

Result of the analysis of the query.

Example response

{
  "queries": [
    {
      "queryConfig": {
        "id": "ce72917d-1ecb-45ea-a6cb-4c122deb93c7",
        "database": "telegraf",
        "measurement": "cpu",
        "retentionPolicy": "autogen",
        "fields": [
          {
            "value": "max",
            "type": "func",
            "args": [
              {
                "value": "usage_system",
                "type": "field"
              }
            ]
          }
        ],
        "tags": {},
        "groupBy": {
          "time": "10m",
          "tags": []
        },
        "areTagsAccepted": true,
        "range": {
          "lower": "15m",
          "upper": "now"
        }
      }
    }
  ]
}