Class PointData.Builder
Inheritance
Namespace: InfluxDB.Client.Writes
Assembly: InfluxDB.Client.dll
Syntax
public sealed class Builder : object
Methods
Field(String, Boolean)
Add a field with a
Declaration
public PointData.Builder Field(string name, bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | the field name |
| System.Boolean | value | the field value |
Returns
| Type | Description |
|---|---|
| PointData.Builder | this |
Field(String, Byte)
Add a field with a
Declaration
public PointData.Builder Field(string name, byte value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | the field name |
| System.Byte | value | the field value |
Returns
| Type | Description |
|---|---|
| PointData.Builder | this |
Field(String, Decimal)
Add a field with a
Declaration
public PointData.Builder Field(string name, decimal value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | the field name |
| System.Decimal | value | the field value |
Returns
| Type | Description |
|---|---|
| PointData.Builder | this |
Field(String, Double)
Add a field with a
Declaration
public PointData.Builder Field(string name, double value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | the field name |
| System.Double | value | the field value |
Returns
| Type | Description |
|---|---|
| PointData.Builder | this |
Field(String, Int64)
Add a field with a
Declaration
public PointData.Builder Field(string name, long value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | the field name |
| System.Int64 | value | the field value |
Returns
| Type | Description |
|---|---|
| PointData.Builder | this |
Field(String, Object)
Add a field with an
Declaration
public PointData.Builder Field(string name, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | the field name |
| System.Object | value | the field value |
Returns
| Type | Description |
|---|---|
| PointData.Builder | this |
Field(String, Single)
Add a field with a
Declaration
public PointData.Builder Field(string name, float value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | the field name |
| System.Single | value | the field value |
Returns
| Type | Description |
|---|---|
| PointData.Builder | this |
Field(String, String)
Add a field with a
Declaration
public PointData.Builder Field(string name, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | the field name |
| System.String | value | the field value |
Returns
| Type | Description |
|---|---|
| PointData.Builder | this |
Field(String, UInt32)
Add a field with a
Declaration
public PointData.Builder Field(string name, uint value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | the field name |
| System.UInt32 | value | the field value |
Returns
| Type | Description |
|---|---|
| PointData.Builder | this |
Field(String, UInt64)
Add a field with a
Declaration
public PointData.Builder Field(string name, ulong value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | the field name |
| System.UInt64 | value | the field value |
Returns
| Type | Description |
|---|---|
| PointData.Builder | this |
HasFields()
Has point any fields?
Declaration
public bool HasFields()
Returns
| Type | Description |
|---|---|
| System.Boolean | true, if the point contains any fields, false otherwise. |
Measurement(String)
Create a new Point withe specified a measurement name.
Declaration
public static PointData.Builder Measurement(string measurementName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | measurementName | the measurement name |
Returns
| Type | Description |
|---|---|
| PointData.Builder | the new Point |
Tag(String, String)
Adds or replaces a tag value for a point.
Declaration
public PointData.Builder Tag(string name, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | the tag name |
| System.String | value | the tag value |
Returns
| Type | Description |
|---|---|
| PointData.Builder | this |
Timestamp(DateTime, WritePrecision)
Updates the timestamp for the point represented by
Declaration
public PointData.Builder Timestamp(DateTime timestamp, WritePrecision timeUnit)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | timestamp | the timestamp |
| WritePrecision | timeUnit | the timestamp precision |
Returns
| Type | Description |
|---|---|
| PointData.Builder |
Timestamp(DateTimeOffset, WritePrecision)
Updates the timestamp for the point represented by
Declaration
public PointData.Builder Timestamp(DateTimeOffset timestamp, WritePrecision timeUnit)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTimeOffset | timestamp | the timestamp |
| WritePrecision | timeUnit | the timestamp precision |
Returns
| Type | Description |
|---|---|
| PointData.Builder |
Timestamp(Instant, WritePrecision)
Updates the timestamp for the point represented by
Declaration
public PointData.Builder Timestamp(Instant timestamp, WritePrecision timeUnit)
Parameters
| Type | Name | Description |
|---|---|---|
| Instant | timestamp | the timestamp |
| WritePrecision | timeUnit | the timestamp precision |
Returns
| Type | Description |
|---|---|
| PointData.Builder |
Timestamp(Int64, WritePrecision)
Updates the timestamp for the point.
Declaration
public PointData.Builder Timestamp(long timestamp, WritePrecision timeUnit)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64 | timestamp | the timestamp |
| WritePrecision | timeUnit | the timestamp precision |
Returns
| Type | Description |
|---|---|
| PointData.Builder |
Timestamp(TimeSpan, WritePrecision)
Updates the timestamp for the point represented by
Declaration
public PointData.Builder Timestamp(TimeSpan timestamp, WritePrecision timeUnit)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | timestamp | the timestamp |
| WritePrecision | timeUnit | the timestamp precision |
Returns
| Type | Description |
|---|---|
| PointData.Builder |
ToPointData()
The PointData
Declaration
public PointData ToPointData()
Returns
| Type | Description |
|---|---|
| PointData |