public interface QueryService
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<FluxSuggestions> |
getQuerySuggestions(String zapTraceSpan) |
retrofit2.Call<FluxSuggestion> |
getQuerySuggestionsName(String name,
String zapTraceSpan) |
retrofit2.Call<String> |
postQuery(String zapTraceSpan,
String acceptEncoding,
String contentType,
String org,
String orgID,
Query query)
Query InfluxDB
|
retrofit2.Call<AnalyzeQueryResponse> |
postQueryAnalyze(String zapTraceSpan,
String contentType,
Query query)
Analyze an InfluxQL or Flux query
|
retrofit2.Call<ASTResponse> |
postQueryAst(String zapTraceSpan,
String contentType,
LanguageRequest languageRequest)
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 InfluxDB
|
retrofit2.Call<String> |
postQueryString(String zapTraceSpan,
String acceptEncoding,
String contentType,
String org,
String orgID,
Query query)
Query InfluxDB
|
@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
- The Accept-Encoding request HTTP header advertises which content encoding, usually a compression algorithm, the client is able to understand. (optional, default to identity)contentType
- (optional)org
- Specifies the name of the organization executing the query. Takes either the ID or Name interchangeably. If both `orgID` and `org` are specified, `org` takes precedence. (optional)orgID
- Specifies the ID of the organization executing the query. If both `orgID` and `org` are specified, `org` takes precedence. (optional)query
- Flux query or specification to execute (optional)@POST(value="api/v2/query") 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
- The Accept-Encoding request HTTP header advertises which content encoding, usually a compression algorithm, the client is able to understand. (optional, default to identity)contentType
- (optional)org
- Specifies the name of the organization executing the query. Takes either the ID or Name interchangeably. If both `orgID` and `org` are specified, `org` takes precedence. (optional)orgID
- Specifies the ID of the organization executing the query. If both `orgID` and `org` are specified, `org` takes precedence. (optional)query
- Flux query or specification to execute (optional)@POST(value="api/v2/query") retrofit2.Call<String> postQueryString(@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
- The Accept-Encoding request HTTP header advertises which content encoding, usually a compression algorithm, the client is able to understand. (optional, default to identity)contentType
- (optional)org
- Specifies the name of the organization executing the query. Takes either the ID or Name interchangeably. If both `orgID` and `org` are specified, `org` takes precedence. (optional)orgID
- Specifies the ID of the organization executing the query. If both `orgID` and `org` are specified, `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 or InfluxQL 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–2020 InfluxData, Inc.. All rights reserved.