Class PointData
Point defines the values that will be written to the database. See Go Implementation.
Inheritance
Namespace: InfluxDB.Client.Writes
Assembly: InfluxDB.Client.dll
Syntax
public class PointData : IEquatable<PointData>
Fields
Precision
Declaration
public readonly WritePrecision Precision
Field Value
Type | Description |
---|---|
WritePrecision |
Methods
Equals(PointData)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(PointData other)
Parameters
Type | Name | Description |
---|---|---|
PointData | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current object is equal to the |
Equals(Object)
Determines whether the specified
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The |
Returns
Type | Description |
---|---|
System.Boolean |
|
Field(String, Boolean)
Add a field with a
Declaration
public PointData 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 | this |
Field(String, Byte)
Add a field with a
Declaration
public PointData 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 | this |
Field(String, Decimal)
Add a field with a
Declaration
public PointData 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 | this |
Field(String, Double)
Add a field with a
Declaration
public PointData 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 | this |
Field(String, Int64)
Add a field with a
Declaration
public PointData 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 | this |
Field(String, Object)
Add a field with an
Declaration
public PointData 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 | this |
Field(String, Single)
Add a field with a
Declaration
public PointData 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 | this |
Field(String, String)
Add a field with a
Declaration
public PointData 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 | this |
Field(String, UInt32)
Add a field with a
Declaration
public PointData 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 | this |
Field(String, UInt64)
Add a field with a
Declaration
public PointData 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 | this |
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
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 Measurement(string measurementName)
Parameters
Type | Name | Description |
---|---|---|
System.String | measurementName | the measurement name |
Returns
Type | Description |
---|---|
PointData | the new Point |
Tag(String, String)
Adds or replaces a tag value for a point.
Declaration
public PointData 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 | this |
Timestamp(DateTime, WritePrecision)
Updates the timestamp for the point represented by
Declaration
public PointData Timestamp(DateTime timestamp, WritePrecision timeUnit)
Parameters
Type | Name | Description |
---|---|---|
DateTime | timestamp | the timestamp |
WritePrecision | timeUnit | the timestamp precision |
Returns
Type | Description |
---|---|
PointData |
Timestamp(DateTimeOffset, WritePrecision)
Updates the timestamp for the point represented by
Declaration
public PointData Timestamp(DateTimeOffset timestamp, WritePrecision timeUnit)
Parameters
Type | Name | Description |
---|---|---|
DateTimeOffset | timestamp | the timestamp |
WritePrecision | timeUnit | the timestamp precision |
Returns
Type | Description |
---|---|
PointData |
Timestamp(Instant, WritePrecision)
Updates the timestamp for the point represented by
Declaration
public PointData Timestamp(Instant timestamp, WritePrecision timeUnit)
Parameters
Type | Name | Description |
---|---|---|
Instant | timestamp | the timestamp |
WritePrecision | timeUnit | the timestamp precision |
Returns
Type | Description |
---|---|
PointData |
Timestamp(Int64, WritePrecision)
Updates the timestamp for the point.
Declaration
public PointData Timestamp(long timestamp, WritePrecision timeUnit)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | timestamp | the timestamp |
WritePrecision | timeUnit | the timestamp precision |
Returns
Type | Description |
---|---|
PointData |
Timestamp(TimeSpan, WritePrecision)
Updates the timestamp for the point represented by
Declaration
public PointData Timestamp(TimeSpan timestamp, WritePrecision timeUnit)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | timestamp | the timestamp |
WritePrecision | timeUnit | the timestamp precision |
Returns
Type | Description |
---|---|
PointData |
ToLineProtocol(PointSettings)
The Line Protocol
Declaration
public string ToLineProtocol(PointSettings pointSettings = null)
Parameters
Type | Name | Description |
---|---|---|
PointSettings | pointSettings | with the default values |
Returns
Type | Description |
---|---|
System.String |
Operators
Equality(PointData, PointData)
Implements the operator ==.
Declaration
public static bool operator ==(PointData left, PointData right)
Parameters
Type | Name | Description |
---|---|---|
PointData | left | The left. |
PointData | right | The right. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |
Inequality(PointData, PointData)
Implements the operator !=.
Declaration
public static bool operator !=(PointData left, PointData right)
Parameters
Type | Name | Description |
---|---|---|
PointData | left | The left. |
PointData | right | The right. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |