Influx storage model
Factry Historian will write to different fields according to the selected datatype. As a result influx measurements will have a fixed datatype per value field:
Datatype | Input example | Values written |
---|---|---|
Number | 142 | value=142.0 |
Boolean | true | value=1.0 value_bool=true |
String | “abcdefg” | value=7.0 (length of the string) value_str=“abcdefg” |
Array of numbers | [ 1.0, 2.0, 3.0, 4.0 ] | value=4.0 (number of elements in the array) value_0=1.0 value_1=2.0 value_2=3.0 value_3=4.0 |
Array of strings | [ “a”, “b”, “c” ] | value=3.0 (number of elements in the array) value_str_0=“a” value_str_1 =“b” value_str_2=“c” |
Array of booleans | [ true, false ] | value=2.0 (number of elements in the array) value_bool_0=true value_bool_1=false |