remove influxql support from v2 api, closes influxdata/DAR#246 (#3326)
parent
f824ea6653
commit
1660b035d7
|
@ -3806,7 +3806,7 @@ paths:
|
||||||
- **API token** – _See [View tokens](https://docs.influxdata.com/influxdb/cloud/security/tokens/view-tokens/)
|
- **API token** – _See [View tokens](https://docs.influxdata.com/influxdb/cloud/security/tokens/view-tokens/)
|
||||||
for instructions on viewing your API token._
|
for instructions on viewing your API token._
|
||||||
- **InfluxDB URL** – _See [InfluxDB URLs](https://docs.influxdata.com/influxdb/cloud/reference/urls/)_.
|
- **InfluxDB URL** – _See [InfluxDB URLs](https://docs.influxdata.com/influxdb/cloud/reference/urls/)_.
|
||||||
- [Flux](https://docs.influxdata.com/influxdb/cloud/reference/flux) or [InfluxQL](https://docs.influxdata.com/influxdb/cloud/query-data/influxql/) query.
|
- **Flux query** – _See [Flux](https://docs.influxdata.com/flux/v0.x/)._
|
||||||
|
|
||||||
For more information and examples, see [Query with the InfluxDB API](https://docs.influxdata.com/influxdb/cloud/query-data/execute-queries/influx-api/).
|
For more information and examples, see [Query with the InfluxDB API](https://docs.influxdata.com/influxdb/cloud/query-data/execute-queries/influx-api/).
|
||||||
operationId: PostQuery
|
operationId: PostQuery
|
||||||
|
@ -3848,12 +3848,14 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
oneOf:
|
$ref: '#/components/schemas/Query'
|
||||||
- $ref: '#/components/schemas/Query'
|
|
||||||
- $ref: '#/components/schemas/InfluxQLQuery'
|
|
||||||
application/vnd.flux:
|
application/vnd.flux:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
example: |
|
||||||
|
from(bucket: "example-bucket")
|
||||||
|
|> range(start: -5m)
|
||||||
|
|> filter(fn: (r) => r._measurement == "example-measurement")
|
||||||
description: Flux query or specification to execute
|
description: Flux query or specification to execute
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
|
@ -3922,7 +3924,7 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Query'
|
$ref: '#/components/schemas/Query'
|
||||||
description: Flux or InfluxQL query to analyze
|
description: Flux query to analyze
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
content:
|
content:
|
||||||
|
@ -3946,7 +3948,7 @@ paths:
|
||||||
description: Reference code unique to the error type
|
description: Reference code unique to the error type
|
||||||
schema:
|
schema:
|
||||||
type: integer
|
type: integer
|
||||||
summary: Analyze an InfluxQL or Flux query
|
summary: Analyze a Flux query
|
||||||
tags:
|
tags:
|
||||||
- Query
|
- Query
|
||||||
/api/v2/query/ast:
|
/api/v2/query/ast:
|
||||||
|
@ -8511,24 +8513,6 @@ components:
|
||||||
type:
|
type:
|
||||||
$ref: '#/components/schemas/NodeType'
|
$ref: '#/components/schemas/NodeType'
|
||||||
type: object
|
type: object
|
||||||
InfluxQLQuery:
|
|
||||||
description: Query influx using the InfluxQL language
|
|
||||||
properties:
|
|
||||||
bucket:
|
|
||||||
description: Bucket is to be used instead of the database and retention
|
|
||||||
policy specified in the InfluxQL query.
|
|
||||||
type: string
|
|
||||||
query:
|
|
||||||
description: InfluxQL query execute.
|
|
||||||
type: string
|
|
||||||
type:
|
|
||||||
description: The type of query. Must be "influxql".
|
|
||||||
enum:
|
|
||||||
- influxql
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- query
|
|
||||||
type: object
|
|
||||||
IntegerLiteral:
|
IntegerLiteral:
|
||||||
description: Represents integer numbers
|
description: Represents integer numbers
|
||||||
properties:
|
properties:
|
||||||
|
|
|
@ -3750,7 +3750,7 @@ paths:
|
||||||
- **API token** – _See [View tokens](https://docs.influxdata.com/influxdb/v2.0/security/tokens/view-tokens/)
|
- **API token** – _See [View tokens](https://docs.influxdata.com/influxdb/v2.0/security/tokens/view-tokens/)
|
||||||
for instructions on viewing your API token._
|
for instructions on viewing your API token._
|
||||||
- **InfluxDB URL** – _See [InfluxDB URLs](https://docs.influxdata.com/influxdb/v2.0/reference/urls/)_.
|
- **InfluxDB URL** – _See [InfluxDB URLs](https://docs.influxdata.com/influxdb/v2.0/reference/urls/)_.
|
||||||
- [Flux](https://docs.influxdata.com/influxdb/v2.0/reference/flux) or [InfluxQL](https://docs.influxdata.com/influxdb/v2.0/query-data/influxql/) query.
|
- **Flux query** – _See [Flux](https://docs.influxdata.com/flux/v0.x/)._
|
||||||
|
|
||||||
For more information and examples, see [Query with the InfluxDB API](https://docs.influxdata.com/influxdb/v2.0/query-data/execute-queries/influx-api/).
|
For more information and examples, see [Query with the InfluxDB API](https://docs.influxdata.com/influxdb/v2.0/query-data/execute-queries/influx-api/).
|
||||||
operationId: PostQuery
|
operationId: PostQuery
|
||||||
|
@ -3792,12 +3792,14 @@ paths:
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
oneOf:
|
$ref: '#/components/schemas/Query'
|
||||||
- $ref: '#/components/schemas/Query'
|
|
||||||
- $ref: '#/components/schemas/InfluxQLQuery'
|
|
||||||
application/vnd.flux:
|
application/vnd.flux:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
|
example: |
|
||||||
|
from(bucket: "example-bucket")
|
||||||
|
|> range(start: -5m)
|
||||||
|
|> filter(fn: (r) => r._measurement == "example-measurement")
|
||||||
description: Flux query or specification to execute
|
description: Flux query or specification to execute
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
|
@ -3866,7 +3868,7 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Query'
|
$ref: '#/components/schemas/Query'
|
||||||
description: Flux or InfluxQL query to analyze
|
description: Flux query to analyze
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
content:
|
content:
|
||||||
|
@ -3890,7 +3892,7 @@ paths:
|
||||||
description: Reference code unique to the error type
|
description: Reference code unique to the error type
|
||||||
schema:
|
schema:
|
||||||
type: integer
|
type: integer
|
||||||
summary: Analyze an InfluxQL or Flux query
|
summary: Analyze a Flux query
|
||||||
tags:
|
tags:
|
||||||
- Query
|
- Query
|
||||||
/api/v2/query/ast:
|
/api/v2/query/ast:
|
||||||
|
@ -9297,24 +9299,6 @@ components:
|
||||||
type:
|
type:
|
||||||
$ref: '#/components/schemas/NodeType'
|
$ref: '#/components/schemas/NodeType'
|
||||||
type: object
|
type: object
|
||||||
InfluxQLQuery:
|
|
||||||
description: Query influx using the InfluxQL language
|
|
||||||
properties:
|
|
||||||
bucket:
|
|
||||||
description: Bucket is to be used instead of the database and retention
|
|
||||||
policy specified in the InfluxQL query.
|
|
||||||
type: string
|
|
||||||
query:
|
|
||||||
description: InfluxQL query execute.
|
|
||||||
type: string
|
|
||||||
type:
|
|
||||||
description: The type of query. Must be "influxql".
|
|
||||||
enum:
|
|
||||||
- influxql
|
|
||||||
type: string
|
|
||||||
required:
|
|
||||||
- query
|
|
||||||
type: object
|
|
||||||
IntegerLiteral:
|
IntegerLiteral:
|
||||||
description: Represents integer numbers
|
description: Represents integer numbers
|
||||||
properties:
|
properties:
|
||||||
|
@ -11445,7 +11429,6 @@ components:
|
||||||
items:
|
items:
|
||||||
enum:
|
enum:
|
||||||
- flux
|
- flux
|
||||||
- influxql
|
|
||||||
type: string
|
type: string
|
||||||
readOnly: true
|
readOnly: true
|
||||||
type: array
|
type: array
|
||||||
|
|
Loading…
Reference in New Issue