InfluxDB Endpoint Properties
query (string)
The Flux query used for reading or subscribing to measurement data. This property is only applicable for read or subscribe endpoints.
Example: "from(bucket:\"my-bucket\") |> range(start: -1h) |> filter(fn: (r) => r._measurement == \"temperature\")"
interval (integer)
Time interval in milliseconds between consecutive queries. Defaults to 1000 milliseconds if not specified.
cronExpression (string)
Cron expression that defines the schedule for polling the endpoint. For syntax and examples, see the node-cron documentation.
Examples: "1,2,4,5 * * * *", "1-5 * * * *", "*/2 * * * *", "* * * January,September Sunday"
measurement (string)
Name of the measurement in InfluxDB where data points will be stored when writing. Can be overridden by specifying the measurement in the message data, but must be set in at least one location.
Example: "exhaust_temperature"
measurementPrefix (string)
Optional prefix to prepend to the measurement name. Useful for namespacing or grouping related measurements.
Example: "engine_"
fields (object)
An optional object made up of key-value pairs. These constant fields are merged with the fields from the message.
tags (object)
An optional object made up of key-value pairs. These constant tags are merged with the tags from the message.
Last updated
Was this helpful?

