@influxdata/influxdb3-client
    Preparing search index...

    Function writableDataToLineProtocol

    • Convert WritableData to an array of lines of Line Protocol). If the data is an array of Point objects, it will be converted to lines of Line Protocol. If the data is a single Point object, it will be converted to a single line of Line Protocol. If the data is an array of lines of Line Protocol, it will be returned as is.

      Parameters

      • data: WritableData

        data to write

      • OptionaldefaultTags: { [key: string]: string }

        the default tags to apply to all points.

      • OptionaltagOrder: string[]

        preferred order of tags in line protocol serialization. Tags listed here are written first, in the same order. The remaining tags are appended in lexicographical order. This helps control first-write column order in InfluxDB 3.

      • Optionalprecision: WritePrecision

        the writing precision. It is used as the time precision when serializing Point instances whose timestamp is a Date

      Returns string[]