Float

此為預設的數值型態,為 IEEE-754 64-bit 的浮點數,並且 InfluxDB 支援科學記號的方式記錄

Integer

在數值的後方加上 i 指定其為整數型態,為 Signed 64-bit 整數。
notion image

UInteger

在數值的後方加上 u 指定其為 Unsigned 的整數型態,為 Unsigned 64-bit 整數。
notion image

String

字串,長度限制為 64KB

Bollean

True or False,支持以下名稱:
notion image
注意不可包含 " ,否則會被轉換為 string 型態

Unix timestamp

支持的精度:nanoseconds(ns)microseconds(us)milliseconds(ms)seconds(s),預設為 ns
notion image

引號(Quotes)

InfluxDB 支持單雙引號,具體如下:
notion image
  • Field valueString 必須也只能使用雙引號 " 包起來。
  • Limited 表示引號會被視為名稱的部分,範例:

    特殊字元與轉義

    Strings 型態中出現特殊字元時,需要使用 \ 進行轉義,以下特殊字元需要轉義:
    notion image

    註解

    寫在 # 後的皆為註解,直到換行 \n

    命名限制

    Measurement namestag keysfield keys 不能以 _ 為開頭,此開頭為 InfluxDB 系統使用。

    參考