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.
PointValues.GetFieldTypeMissmatchError Actual type of field doesn't match boolean type.
Get field of numeric type.
field name
field numeric type
this
Get field of string type.
field name
field string type
this
Get field of boolean type.
field name
field boolean type
this
Get field without type check.
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.
PointValues.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.
PointValues.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.
PointValues.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.
PointValues.GetFieldTypeMissmatchError Actual type of field doesn't match uint type.
Sets field based on provided type.
field name
field value
Optional
type: PointFieldTypefield type
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
Creates an InfluxDB protocol line out of this instance.
Optional
convertTimePrecision: WritePrecision | TimeConvertersettings control serialization of a point timestamp and can also add default tags,
nanosecond timestamp precision is used when no settings
or no settings.convertTime
is supplied.
Optional
defaultTags: { [key: string]: string }an InfluxDB protocol line out of this instance
Static
fromCreates new point from PointValues object. Can throw error if measurement missing.
point values object with measurement
new point from values
Static
measurement
Point defines values of a single measurement.