Skip to main content
Version: Streamsheets 2.4

INFLUX.STORE

star This is a Streamsheets Enterprise feature.

Performs a STORE query on your Influx database. You can use the Function Wizard for this function.

Syntax

=INFLUX.STORE(Producer, Measurement, Values-JSON [, Tags-JSON, Target, Duration, Instant, Timeout])

Arguments

NameDescription
ProducerProducer to use for querying. The database name is configured in the affiliated Connector.
MeasurementName of the measurement to store values to. Note: its fully qualified name will be written to target range, if provided.
ValuesA JSON with key/value pairs to store.
TagsOptional.A JSON with key/value pairs to tag stored values.
TargetOptional. INBOX(), OUTBOX("MsgID") or a cell range where the result will be placed. Make sure the cell range is big enough or not everything is displayed.
DurationOptional. Defines how long stored values should be kept. Duration is a number plus a time unit. Valid units are "ms" for milliseconds, "s" for second, "m" for minute, "h" for hour, "d" for day and "w" for week. To specifiy infinity use "INF". Minimum value is one hour. Default value is "INF".
InstantOptional. If set to true the store query is immediately performed. Note: use with care, since this can overload InfluxDB very quickly. Default is false.
TimeoutOptional. Defines Timeout to perform query.

Return Value

TRUE, if no error.

Examples

FunctionResultComment
=INFLUX.STORE(|Producer, "measures", { v1: "hello" },,D1:E1,"1h")TRUEStores "hello" under v1 to "measures". Its fully qualified name ("1h.measures") will be written to cell E1.
info

Designed for Influx version 1.x.