sources
queries

POST /sources/{id}/queries

Used to analyze queries for structure`

Request

  • Base URL
    /chronograf/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /chronograf/v1/sources/{id}/queries
  • Auth
    none declared

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"
        }
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 71 revisions of this API.