Interface IWriteApi
Namespace: InfluxDB.Client
Assembly: InfluxDB.Client.dll
Syntax
public interface IWriteApi : IDisposable
Methods
Flush()
Forces the client to flush all pending writes from the buffer to the InfluxDB via HTTP.
Declaration
void Flush()
WriteMeasurement<TM>(TM, WritePrecision, String, String)
Write a Measurement into specified bucket.
Declaration
void WriteMeasurement<TM>(TM measurement, WritePrecision precision = default(WritePrecision), string bucket = null, string org = null)
Parameters
Type | Name | Description |
---|---|---|
TM | measurement | specifies the Measurement to write into bucket |
WritePrecision | precision | specifies the precision for the unix timestamps within the body line-protocol; default Nanoseconds |
System.String | bucket | specifies the destination bucket for writes. If the bucket is not specified then is used config from Bucket. |
System.String | org | specifies the destination organization for writes. If the org is not specified then is used config from Org. |
Type Parameters
Name | Description |
---|---|
TM | measurement type |
WriteMeasurements<TM>(TM[], WritePrecision, String, String)
Write Measurements into specified bucket.
Declaration
void WriteMeasurements<TM>(TM[] measurements, WritePrecision precision = default(WritePrecision), string bucket = null, string org = null)
Parameters
Type | Name | Description |
---|---|---|
TM[] | measurements | specifies Measurements to write into bucket |
WritePrecision | precision | specifies the precision for the unix timestamps within the body line-protocol; default Nanoseconds |
System.String | bucket | specifies the destination bucket for writes. If the bucket is not specified then is used config from Bucket. |
System.String | org | specifies the destination organization for writes. If the org is not specified then is used config from Org. |
Type Parameters
Name | Description |
---|---|
TM | measurement type |
WriteMeasurements<TM>(List<TM>, WritePrecision, String, String)
Write Measurements into specified bucket.
Declaration
void WriteMeasurements<TM>(List<TM> measurements, WritePrecision precision = default(WritePrecision), string bucket = null, string org = null)
Parameters
Type | Name | Description |
---|---|---|
List<TM> | measurements | specifies Measurements to write into bucket |
WritePrecision | precision | specifies the precision for the unix timestamps within the body line-protocol; default Nanoseconds |
System.String | bucket | specifies the destination bucket for writes. If the bucket is not specified then is used config from Bucket. |
System.String | org | specifies the destination organization for writes. If the org is not specified then is used config from Org. |
Type Parameters
Name | Description |
---|---|
TM | measurement type |
WritePoint(PointData, String, String)
Write a Data point into specified bucket.
Declaration
void WritePoint(PointData point, string bucket = null, string org = null)
Parameters
Type | Name | Description |
---|---|---|
PointData | point | specifies the Data point to write into bucket |
System.String | bucket | specifies the destination bucket for writes. If the bucket is not specified then is used config from Bucket. |
System.String | org | specifies the destination organization for writes. If the org is not specified then is used config from Org. |
WritePoints(PointData[], String, String)
Write Data points into specified bucket.
Declaration
void WritePoints(PointData[] points, string bucket = null, string org = null)
Parameters
Type | Name | Description |
---|---|---|
PointData[] | points | specifies the Data points to write into bucket |
System.String | bucket | specifies the destination bucket for writes. If the bucket is not specified then is used config from Bucket. |
System.String | org | specifies the destination organization for writes. If the org is not specified then is used config from Org. |
WritePoints(List<PointData>, String, String)
Write Data points into specified bucket.
Declaration
void WritePoints(List<PointData> points, string bucket = null, string org = null)
Parameters
Type | Name | Description |
---|---|---|
List<PointData> | points | specifies the Data points to write into bucket |
System.String | bucket | specifies the destination bucket for writes. If the bucket is not specified then is used config from Bucket. |
System.String | org | specifies the destination organization for writes. If the org is not specified then is used config from Org. |
WriteRecord(String, WritePrecision, String, String)
Write Line Protocol record into specified bucket.
Declaration
void WriteRecord(string record, WritePrecision precision = default(WritePrecision), string bucket = null, string org = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | record | specifies the record in InfluxDB Line Protocol.
The |
WritePrecision | precision | specifies the precision for the unix timestamps within the body line-protocol; default Nanoseconds |
System.String | bucket | specifies the destination bucket for writes. If the bucket is not specified then is used config from Bucket. |
System.String | org | specifies the destination organization for writes. If the org is not specified then is used config from Org. |
WriteRecords(List<String>, WritePrecision, String, String)
Write Line Protocol records into specified bucket.
Declaration
void WriteRecords(List<string> records, WritePrecision precision = default(WritePrecision), string bucket = null, string org = null)
Parameters
Type | Name | Description |
---|---|---|
List<System.String> | records | specifies the record in InfluxDB Line Protocol |
WritePrecision | precision | specifies the precision for the unix timestamps within the body line-protocol; default Nanoseconds |
System.String | bucket | specifies the destination bucket for writes. If the bucket is not specified then is used config from Bucket. |
System.String | org | specifies the destination organization for writes. If the org is not specified then is used config from Org. |
WriteRecords(String[], WritePrecision, String, String)
Write Line Protocol records into specified bucket.
Declaration
void WriteRecords(string[] records, WritePrecision precision = default(WritePrecision), string bucket = null, string org = null)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | records | specifies the record in InfluxDB Line Protocol |
WritePrecision | precision | specifies the precision for the unix timestamps within the body line-protocol; default Nanoseconds |
System.String | bucket | specifies the destination bucket for writes. If the bucket is not specified then is used config from Bucket. |
System.String | org | specifies the destination organization for writes. If the org is not specified then is used config from Org. |