public interface QueryService
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<FluxSuggestions> |
getQuerySuggestions(String zapTraceSpan)
Retrieve query suggestions
|
retrofit2.Call<FluxSuggestion> |
getQuerySuggestionsName(String name,
String zapTraceSpan)
Retrieve query suggestions for a branching suggestion
|
retrofit2.Call<String> |
postQuery(String zapTraceSpan,
String acceptEncoding,
String contentType,
String org,
String orgID,
Query query)
Query data
Retrieves data from InfluxDB buckets.
|
retrofit2.Call<AnalyzeQueryResponse> |
postQueryAnalyze(String zapTraceSpan,
String contentType,
Query query)
Analyze a Flux query
|
retrofit2.Call<ASTResponse> |
postQueryAst(String zapTraceSpan,
String contentType,
LanguageRequest languageRequest)
Generate an Abstract Syntax Tree (AST) from a query
Analyzes flux query and generates a query specification.
|
retrofit2.Call<okhttp3.ResponseBody> |
postQueryResponseBody(String zapTraceSpan,
String acceptEncoding,
String contentType,
String org,
String orgID,
Query query)
Query data
Retrieves data from InfluxDB buckets.
|
@GET(value="api/v2/query/suggestions") retrofit2.Call<FluxSuggestions> getQuerySuggestions(@Header(value="Zap-Trace-Span") String zapTraceSpan)
zapTraceSpan - OpenTracing span context (optional)@GET(value="api/v2/query/suggestions/{name}")
retrofit2.Call<FluxSuggestion> getQuerySuggestionsName(@Path(value="name")
String name,
@Header(value="Zap-Trace-Span")
String zapTraceSpan)
name - The name of the branching suggestion. (required)zapTraceSpan - OpenTracing span context (optional)@Headers(value="Content-Type:application/json") @POST(value="api/v2/query") retrofit2.Call<String> postQuery(@Header(value="Zap-Trace-Span") String zapTraceSpan, @Header(value="Accept-Encoding") String acceptEncoding, @Header(value="Content-Type") String contentType, @Query(value="org") String org, @Query(value="orgID") String orgID, @Body Query query)
zapTraceSpan - OpenTracing span context (optional)acceptEncoding - Indicates the content encoding (usually a compression algorithm) that the client can understand. (optional, default to identity)contentType - (optional)org - Name of the organization executing the query. Accepts either the ID or Name. If you provide both `orgID` and `org`, `org` takes precedence. (optional)orgID - ID of the organization executing the query. If you provide both `orgID` and `org`, `org` takes precedence. (optional)query - Flux query or specification to execute (optional)@POST(value="api/v2/query")
@Streaming
retrofit2.Call<okhttp3.ResponseBody> postQueryResponseBody(@Header(value="Zap-Trace-Span")
String zapTraceSpan,
@Header(value="Accept-Encoding")
String acceptEncoding,
@Header(value="Content-Type")
String contentType,
@Query(value="org")
String org,
@Query(value="orgID")
String orgID,
@Body
Query query)
zapTraceSpan - OpenTracing span context (optional)acceptEncoding - Indicates the content encoding (usually a compression algorithm) that the client can understand. (optional, default to identity)contentType - (optional)org - Name of the organization executing the query. Accepts either the ID or Name. If you provide both `orgID` and `org`, `org` takes precedence. (optional)orgID - ID of the organization executing the query. If you provide both `orgID` and `org`, `org` takes precedence. (optional)query - Flux query or specification to execute (optional)@Headers(value="Content-Type:application/json") @POST(value="api/v2/query/analyze") retrofit2.Call<AnalyzeQueryResponse> postQueryAnalyze(@Header(value="Zap-Trace-Span") String zapTraceSpan, @Header(value="Content-Type") String contentType, @Body Query query)
zapTraceSpan - OpenTracing span context (optional)contentType - (optional)query - Flux query to analyze (optional)@Headers(value="Content-Type:application/json") @POST(value="api/v2/query/ast") retrofit2.Call<ASTResponse> postQueryAst(@Header(value="Zap-Trace-Span") String zapTraceSpan, @Header(value="Content-Type") String contentType, @Body LanguageRequest languageRequest)
zapTraceSpan - OpenTracing span context (optional)contentType - (optional)languageRequest - Analyzed Flux query to generate abstract syntax tree. (optional)Copyright © 2018–2023 InfluxData, Inc.. All rights reserved.