Create an empty PointValues.
Creates a copy of this object.
A new instance with same values.
Gets the boolean field value associated with the specified name. Throws if actual type of field with given name is not boolean. If the field is not present, returns undefined.
field name
The boolean field value or undefined.
GetFieldTypeMissmatchError Actual type of field doesn't match boolean type.
Get field of numeric type. Throws if actual type of field with given name is not given numeric type. If the field is not present, returns undefined.
field name
field numeric type
this
GetFieldTypeMissmatchError Actual type of field doesn't match provided numeric type.
Get field of string type. Throws if actual type of field with given name is not string. If the field is not present, returns undefined.
field name
field string type
this
GetFieldTypeMissmatchError Actual type of field doesn't match provided 'string' type.
Get field of boolean type. Throws if actual type of field with given name is not boolean. If the field is not present, returns undefined.
field name
field boolean type
this
GetFieldTypeMissmatchError Actual type of field doesn't match provided 'boolean' type.
Get field without type check. If the field is not present, returns undefined.
field name
this
Gets the type of field with given name, if it exists. If the field is not present, returns undefined.
field name
The field type or undefined.
Gets the float field value associated with the specified name. Throws if actual type of field with given name is not float. If the field is not present, returns undefined.
field name
The float field value or undefined.
GetFieldTypeMissmatchError Actual type of field doesn't match float type.
Gets the integer field value associated with the specified name. Throws if actual type of field with given name is not integer. If the field is not present, returns undefined.
field name
The integer field value or undefined.
GetFieldTypeMissmatchError Actual type of field doesn't match integer type.
Gets the string field value associated with the specified name. Throws if actual type of field with given name is not string. If the field is not present, returns undefined.
field name
The string field value or undefined.
GetFieldTypeMissmatchError Actual type of field doesn't match string type.
Gets the uint field value associated with the specified name. Throws if actual type of field with given name is not uint. If the field is not present, returns undefined.
field name
The uint field value or undefined.
GetFieldTypeMissmatchError Actual type of field doesn't match uint type.
Removes a field with the specified name if it exists; otherwise, it does nothing.
The name of the field to be removed.
this
Removes a tag with the specified name if it exists; otherwise, it does nothing.
The name of the tag to be removed.
this
Sets a boolean field.
field name
field value
this
Sets field based on provided type.
field name
field value
Optional
type: PointFieldTypefield type
this
Add fields according to their type. All numeric type is considered float
name-value map
this
Sets a number field.
field name
field value
this
Sets an integer field.
field name
field value
this
Sets point's measurement.
measurement name
this
Sets a string field.
field name
field value
this
Sets a tag. The caller has to ensure that both name and value are not empty and do not end with backslash.
tag name
tag value
this
Sets point timestamp. Timestamp can be specified as a Date (preferred), number, string or an undefined value. An undefined value instructs to assign a local timestamp using the client's clock. An empty string can be used to let the server assign the timestamp. A number value represents time as a count of time units since epoch, the exact time unit then depends on the precision of the API that writes the point.
Beware that the current time in nanoseconds can't precisely fit into a JS number,
which can hold at most 2^53 integer number. Nanosecond precision numbers are thus supplied as
a (base-10) string. An application can also use ES2020 BigInt to represent nanoseconds,
BigInt's toString()
returns the required high-precision string.
Note that InfluxDB requires the timestamp to fit into int64 data type.
point time
this
Sets an unsigned integer field.
field name
field value
this
Point defines values of a single measurement.