Python2.6 - 将数据加载到Influx数据库时出错

时间:2017-04-05 22:32:15

标签: python database insert

我使用python2.6将记录加载到Influx数据库中。这是我的涌入点:

influx_point = {
  "measurement": "%s"%measurement,
  "tags": {
        "domain": "%s"%domain,
        "host": "%s.%s"%(host,domain),
        "tag1": "",
        "tag2": ""
        },
  "time": timestamp,
  "fields": {
        "value": value
        }
  }

测量的Tyep是字符串。这是它返回的错误:

errore:  400: {"error":"field type conflict: input field \"value\" on measurement \"hsm.recall.succeeded\" is type float, already exists as type integer dropped=206"}

有人能解释我为什么吗?

0 个答案:

没有答案