Skip to content

Instantly share code, notes, and snippets.

@zhuqling
Created October 23, 2018 01:36
Show Gist options
  • Save zhuqling/1a237a8984c6b24029f8ac17cc14e17b to your computer and use it in GitHub Desktop.
Save zhuqling/1a237a8984c6b24029f8ac17cc14e17b to your computer and use it in GitHub Desktop.
Druid.io 索引管理服务接口

Druid.io 索引管理服务接口

Schema

查询所有schema

GET /schema

Response: schema[]

  • dataSource string 数据源名称

数据源的schema

GET /schema/{dataSource}

  • dataSource string 数据源

Response: string

编辑数据源(新增/编辑)

POST /schema

  • body: string json格式,通过dataSource属性判断数据源是否已经存在,以决定是新增还是编辑

Response

  • result: true

Data

提交数据

POST /data

  • body file json.gz文件
  • dataSource string 数据源
  • intervals string 数据所在时间段,例:2017-01-19/2017-01-20,即为2017-1-19日的数据
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment