public interface WriteService
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<Void> |
postWrite(String org,
String bucket,
String body,
String zapTraceSpan,
String contentEncoding,
String contentType,
Integer contentLength,
String accept,
String orgID,
WritePrecision precision)
Write data
Writes data to a bucket.
|
io.reactivex.Single<retrofit2.Response<Void>> |
postWriteRx(String org,
String bucket,
String body,
String zapTraceSpan,
String contentEncoding,
String contentType,
Integer contentLength,
String accept,
String orgID,
WritePrecision precision)
Write data
Writes data to a bucket.
|
@Headers(value="Content-Type:text/plain") @POST(value="api/v2/write") retrofit2.Call<Void> postWrite(@Query(value="org") String org, @Query(value="bucket") String bucket, @Body String body, @Header(value="Zap-Trace-Span") String zapTraceSpan, @Header(value="Content-Encoding") String contentEncoding, @Header(value="Content-Type") String contentType, @Header(value="Content-Length") Integer contentLength, @Header(value="Accept") String accept, @Query(value="orgID") String orgID, @Query(value="precision") WritePrecision precision)
org - The parameter value specifies the destination organization for writes. The database writes all points in the batch to this organization. If you provide both `orgID` and `org` parameters, `org` takes precedence. (required)bucket - The destination bucket for writes. (required)body - Data in line protocol format. (required)zapTraceSpan - OpenTracing span context (optional)contentEncoding - The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. (optional, default to identity)contentType - The header value indicates the format of the data in the request body. (optional, default to text/plain; charset=utf-8)contentLength - The header value indicates the size of the entity-body, in bytes, sent to the database. If the length is greater than the database's `max body` configuration option, the server responds with status code `413`. (optional)accept - The header value specifies the response format. (optional, default to application/json)orgID - The parameter value specifies the ID of the destination organization for writes. If both `orgID` and `org` are specified, `org` takes precedence. (optional)precision - The precision for the unix timestamps within the body line-protocol. (optional, default to null)@POST(value="api/v2/write") io.reactivex.Single<retrofit2.Response<Void>> postWriteRx(@Query(value="org") String org, @Query(value="bucket") String bucket, @Body String body, @Header(value="Zap-Trace-Span") String zapTraceSpan, @Header(value="Content-Encoding") String contentEncoding, @Header(value="Content-Type") String contentType, @Header(value="Content-Length") Integer contentLength, @Header(value="Accept") String accept, @Query(value="orgID") String orgID, @Query(value="precision") WritePrecision precision)
org - The parameter value specifies the destination organization for writes. The database writes all points in the batch to this organization. If you provide both `orgID` and `org` parameters, `org` takes precedence. (required)bucket - The destination bucket for writes. (required)body - Data in line protocol format. (required)zapTraceSpan - OpenTracing span context (optional)contentEncoding - The value tells InfluxDB what compression is applied to the line protocol in the request payload. To make an API request with a GZIP payload, send `Content-Encoding: gzip` as a request header. (optional, default to identity)contentType - The header value indicates the format of the data in the request body. (optional, default to text/plain; charset=utf-8)contentLength - The header value indicates the size of the entity-body, in bytes, sent to the database. If the length is greater than the database's `max body` configuration option, the server responds with status code `413`. (optional)accept - The header value specifies the response format. (optional, default to application/json)orgID - The parameter value specifies the ID of the destination organization for writes. If both `orgID` and `org` are specified, `org` takes precedence. (optional)precision - The precision for the unix timestamps within the body line-protocol. (optional, default to null)Copyright © 2018–2022 InfluxData, Inc.. All rights reserved.