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 |
---|---|
Write |
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 |
---|---|---|
Point |
other | An object to compare with this object. |
Returns
Type | Description |
---|---|
System. |
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. |
obj | The |
Returns
Type | Description |
---|---|
System. |
|
Field(String, Boolean)
Add a field with a
Declaration
public PointData Field(string name, bool value)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | the field name |
System. |
value | the field value |
Returns
Type | Description |
---|---|
Point |
this |
Field(String, Byte)
Add a field with a
Declaration
public PointData Field(string name, byte value)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | the field name |
System. |
value | the field value |
Returns
Type | Description |
---|---|
Point |
this |
Field(String, Decimal)
Add a field with a
Declaration
public PointData Field(string name, decimal value)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | the field name |
System. |
value | the field value |
Returns
Type | Description |
---|---|
Point |
this |
Field(String, Double)
Add a field with a
Declaration
public PointData Field(string name, double value)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | the field name |
System. |
value | the field value |
Returns
Type | Description |
---|---|
Point |
this |
Field(String, Int64)
Add a field with a
Declaration
public PointData Field(string name, long value)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | the field name |
System. |
value | the field value |
Returns
Type | Description |
---|---|
Point |
this |
Field(String, Object)
Add a field with an
Declaration
public PointData Field(string name, object value)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | the field name |
System. |
value | the field value |
Returns
Type | Description |
---|---|
Point |
this |
Field(String, Single)
Add a field with a
Declaration
public PointData Field(string name, float value)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | the field name |
System. |
value | the field value |
Returns
Type | Description |
---|---|
Point |
this |
Field(String, String)
Add a field with a
Declaration
public PointData Field(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | the field name |
System. |
value | the field value |
Returns
Type | Description |
---|---|
Point |
this |
Field(String, UInt32)
Add a field with a
Declaration
public PointData Field(string name, uint value)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | the field name |
System. |
value | the field value |
Returns
Type | Description |
---|---|
Point |
this |
Field(String, UInt64)
Add a field with a
Declaration
public PointData Field(string name, ulong value)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | the field name |
System. |
value | the field value |
Returns
Type | Description |
---|---|
Point |
this |
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
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. |
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. |
measurementName | the measurement name |
Returns
Type | Description |
---|---|
Point |
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. |
name | the tag name |
System. |
value | the tag value |
Returns
Type | Description |
---|---|
Point |
this |
Timestamp(DateTime, WritePrecision)
Updates the timestamp for the point represented by
Declaration
public PointData Timestamp(DateTime timestamp, WritePrecision timeUnit)
Parameters
Type | Name | Description |
---|---|---|
Date |
timestamp | the timestamp |
Write |
timeUnit | the timestamp precision |
Returns
Type | Description |
---|---|
Point |
Timestamp(DateTimeOffset, WritePrecision)
Updates the timestamp for the point represented by
Declaration
public PointData Timestamp(DateTimeOffset timestamp, WritePrecision timeUnit)
Parameters
Type | Name | Description |
---|---|---|
Date |
timestamp | the timestamp |
Write |
timeUnit | the timestamp precision |
Returns
Type | Description |
---|---|
Point |
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 |
Write |
timeUnit | the timestamp precision |
Returns
Type | Description |
---|---|
Point |
Timestamp(Int64, WritePrecision)
Updates the timestamp for the point.
Declaration
public PointData Timestamp(long timestamp, WritePrecision timeUnit)
Parameters
Type | Name | Description |
---|---|---|
System. |
timestamp | the timestamp |
Write |
timeUnit | the timestamp precision |
Returns
Type | Description |
---|---|
Point |
Timestamp(TimeSpan, WritePrecision)
Updates the timestamp for the point represented by
Declaration
public PointData Timestamp(TimeSpan timestamp, WritePrecision timeUnit)
Parameters
Type | Name | Description |
---|---|---|
Time |
timestamp | the timestamp |
Write |
timeUnit | the timestamp precision |
Returns
Type | Description |
---|---|
Point |
ToLineProtocol(PointSettings)
The Line Protocol
Declaration
public string ToLineProtocol(PointSettings pointSettings = null)
Parameters
Type | Name | Description |
---|---|---|
Point |
pointSettings | with the default values |
Returns
Type | Description |
---|---|
System. |
Operators
Equality(PointData, PointData)
Implements the operator ==.
Declaration
public static bool operator ==(PointData left, PointData right)
Parameters
Returns
Type | Description |
---|---|
System. |
The result of the operator. |
Inequality(PointData, PointData)
Implements the operator !=.
Declaration
public static bool operator !=(PointData left, PointData right)
Parameters
Returns
Type | Description |
---|---|
System. |
The result of the operator. |