subscribe.json 774 字节
Newer Older
1 2 3 4 5 6 7
{
  "filetype":"subscribe",
  "cfgdir": "/etc/taos",
  "host": "127.0.0.1",
  "port": 6030,
  "user": "root",
  "password": "taosdata",
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
  "databases": "test",
  "specified_table_query": {
    "concurrent": 1,
    "mode": "sync",
    "interval": 1000,
    "restart": "yes",
    "keepProgress": "yes",
    "resubAfterConsume": 10,
    "sqls": [
      {
        "sql": "select avg(col1) from meters where col1 > 1;",
        "result": "./subscribe_res0.txt"
      }
    ]
  },
  "super_table_query": {
    "stblname": "meters",
    "threads": 1,
    "mode": "sync",
    "interval": 1000,
    "restart": "yes",
    "keepProgress": "yes",
    "sqls": [
      {
        "sql": "select col1 from xxxx where col1 > 10;",
        "result": "./subscribe_res1.txt"
      }
    ]
  }
37
}