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 time series data into InfluxDB
|
@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 - Specifies the destination organization for writes. Takes either the ID or Name interchangeably. If both `orgID` and `org` are specified, `org` takes precedence. (required)bucket - The destination bucket for writes. (required)body - Line protocol body (required)zapTraceSpan - OpenTracing span context (optional)contentEncoding - When present, its value indicates to the database that compression is applied to the line-protocol body. (optional, default to identity)contentType - Content-Type is used to indicate the format of the data sent to the server. (optional, default to text/plain; charset=utf-8)contentLength - Content-Length is an entity header is indicating the size of the entity-body, in bytes, sent to the database. If the length is greater than the database max body configuration option, a 413 response is sent. (optional)accept - Specifies the return content format. (optional, default to application/json)orgID - 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–2021 InfluxData, Inc.. All rights reserved.