action influxdata_post_query_analyze { label: "Analyze an InfluxQL or Flux query" provider: influxdata method: POST path: "/query/analyze" encoding: json input: { type: "object" properties: { "Content-Type": { type: "string" enum: ["application/json"] } dialect: { type: "object" description: "Dialect are options to change the default CSV output format; https://www.w3.org/TR/2015/REC-tabular-metadata-20151217/#dialect-descriptions" properties: { annotations: { type: "array" description: "https://www.w3.org/TR/2015/REC-tabular-data-model-20151217/#columns" items: { type: "string" enum: ["group", "datatype", "default"] } } commentPrefix: { type: "string" description: "Character prefixed to comment strings" } dateTimeFormat: { type: "string" description: "Format of timestamps" enum: ["RFC3339", "RFC3339Nano"] } delimiter: { type: "string" description: "Separator between cells; the default is ," } header: { type: "boolean" description: "If true, the results will contain a header row" } } } extern: { type: "object" description: "Represents a source from a single file" properties: { body: { type: "array" description: "List of Flux statements" items: { type: "object" } } imports: { type: "array" description: "A list of package imports" items: { type: "object" description: "Declares a package import" properties: { as: { type: "object" description: "A valid Flux identifier" properties: { name: { type: "string" } type: { type: "string" description: "Type of AST node" } } } path: { type: "object" description: "Expressions begin and end with double quote marks" properties: { type: { type: "object" additionalProperties: true } value: { type: "string" } } } type: { type: "object" additionalProperties: true } } } } name: { type: "string" description: "The name of the file." } package: { type: "object" description: "Defines a package identifier" properties: { name: { type: "object" additionalProperties: true } type: { type: "object" additionalProperties: true } } } type: { type: "object" additionalProperties: true } } } now: { type: "string" format: "date-time" description: "Specifies the time that should be reported as \"now\" in the query. Default is the server's now time." } params: { type: "object" description: "Enumeration of key/value pairs that respresent parameters to be injected into query (can only specify either this field or extern and not both)\n" } query: { type: "string" description: "Query script to execute." } type: { type: "string" description: "The type of query. Must be \"flux\"." enum: ["flux"] } } required: ["query"] additionalProperties: false } output: { type: "object" properties: { errors: { type: "array" items: { type: "object" properties: { character: { type: "integer" } column: { type: "integer" } line: { type: "integer" } message: { type: "string" } } } } } } }