API概览

时序数据库相关接口

接口 描述 URI
Remove TSDB Locally 删除时序数据库记录 DELETE /tsdb/v1/tsdbs/{tsdbId}
Update TSDB Name 更新时序数据库名称 PUT /tsdb/v1/tsdbs/{tsdbId}/action/rename
TSDB List 查看时序数据库列表 GET /tsdb/v1/tsdbs
TSDB Page 分页查看时序数据库列表 GET /tsdb/v1/tsdbs/{pageNo}/{pageSize}
TSDB Info 查看时序数据库详细信息 GET /tsdb/v1/tsdbs/{tsdbId}
Tsdb Instance Number 查看时序数据库数量 GET /tsdb/v1/instance-num
Tsdb Statistics 查看时序数据库服务信息 GET /tsdb/v1/statistics
TSDB Param Config 查询时序数据库参数配置信息 GET /tsdb/v1/tsdbs/param/{tsdbId}/findParamConfig
TSDB Param Config Log 查询时序数据库参数配置修改记录 GET /tsdb/v1/tsdbs/param/{tsdbId}/changeLog
TSDB Change Param 更改时序数据库参数 POST /tsdb/v1/tsdbs/param/{tsdbId}/updateParam
Buy TSDB Instance 购买时序数据库实例 POST /tsdb/v1/bss/buy
TSDB Change Config 更改时序数据库配置 POST /tsdb/v1/bss/change
other service TSDB list 其他服务获取实例列表 GET /tsdb/v1/tsdbs/list/{mainAccount}

用户管理接口

接口 描述 URI
Add User 增加用户 POST /tsdb/v1/tsdbs/{tsdbId}/users
User List 查看用户列表 GET /tsdb/v1/tsdbs/{tsdbId}/users/{pageNo}/{pageSize}
Remove User 删除用户 DELETE /tsdb/v1/tsdbs/{tsdbId}/users/{userId}
Update User 修改用户密码或角色 PATCH /tsdb/v1/tsdbs/{tsdbId}/users

数据操作接口

接口 描述 URI
Import Sample Data 导入示例数据 POST /tsdb/v1/tsdbs/{tsdbId}/action/import-sample-data
Download Sample Data File 下载示例数据 GET /tsdb/v1/tsdbs/action/download-sample-data
Clean Data 数据清理 POST /tsdb/v1/tsdbs/{tsdbId}/action/clean
Add Auto Clean Job 增加自动清理任务 POST /tsdb/v1/tsdbs/{tsdbId}/action/auto-clean
Auto Clean Job Info 查询自动清理任务详情 GET /tsdb/v1/tsdbs/{tsdbId}/action/auto-clean
Update Auto Clean Job 修改自动清理任务 PUT /tsdb/v1/tsdbs/{tsdbId}/action/auto-clean
Remove Auto Clean Job 删除自动清理任务 DELETE /tsdb/v1/tsdbs/{tsdbId}/action/auto-clean

数据查询相关接口

接口 描述 URI
Query Data 查询业务数据并保存模板 POST /tsdb/v1/tsdbs/{tsdbId}/query
Monitor Data 查询监控数据 POST /tsdb/v1/tsdbs/{tsdbId}/monitor
InstanceUsage Data 查询实例使用信息 GET /tsdb/v1/tsdbs/{tsdbId}/monitor/storage
Template Page 分页查询模板列表 GET /tsdb/v1/tsdbs/{tsdbId}/templates/{pageNo}/{pageSize}
Template Info 查询单个模板详情 GET /tsdb/v1/tsdbs/{tsdbId}/templates/{templateId}
Remove Template 删除查询模板 DELETE /tsdb/v1/tsdbs/{tsdbId}/templates/{templateId}
Get Metrics 查询实例中指标列表 GET /tsdb/v1/tsdbs/{tsdbId}/templates/metric
Get Tags 查询指标中所有标签组 GET /tsdb/v1/tsdbs/{tsdbId}/templates/metric/{metricValue}
Get All Tag-Keys 查询指标中所有标签的键 GET /tsdb/v1/tsdbs/{tsdbId}/templates/metric/{metricValue}/tagK
Get All Tag-Values 查询标签键下的所有值 POST /tsdb/v1/tsdbs/{tsdbId}/templates/metric/{metricValue}/tagK/{tagK}

数据操作记录接口

接口 描述 URI
Task List 数据操作记录 GET /tsdb/v1/tsdbs/{tsdbId}/tasks/{pageNo}/{pageSize}

opentsdb接口

接口 描述 URI
Get Token 获取用户token POST /api/auth/token
Put Data 写入数据 POST /api/put
Query Data 查询数据 POST /api/query

tsdb-hbase-service接口

接口 描述 URI
Set disc Size 设置hbase表限制 GET /tsdb/hbase/disc/{size}
Get Table Space Limit Status 获取表限制信息 POST /tsdb/hbase/table/space/limit
Is Table Disk Fulled 判断表是否被写满 GET /tsdb/hbase/table/space/limit/status

ambari相关接口

接口 描述 URI
Get Ambari Info 获取Ambari监控信息 POST /tsdb/monitor/ambari

Tsdbapi监控相关接口

接口 描述 URI
Get Tsdb Monitor Info 获取实例监控信息 GET /tsdb/monitor/tsdb

monitor相关接口

接口 描述 URI
Get monitor Info 获取monitor监控信息 GET /tsdb/monitor/ambari

SOSS相关接口

接口 描述 URI
Get instance num of tsdbs by ownerId SOSS获取集群实例指标 GET /soss/tsdb/v1/metric/instance
Page query Tsdb Instance list SOSS分页获取实例列表 GET /soss/tsdb/v1/metric/instancelist/{pageNo}/{pageSize}
Query Tsdb Instance details SOSS获取实例详情 GET /soss/tsdb/v1/metric/{serviceId}

EIP相关接口

接口 描述 URI
GET node and eip info 获取节点和EIP GET /tsdb/v1/eip/{serviceId}/details
bind Eip 绑定EIP POST /tsdb/v1/eip/action/bind-eip
unbind Eip 解绑EIP POST /tsdb/v1/eip/action/unbind-eip

openAPI相关接口

接口 描述 URI
openApi create order openapi创建实例 POST /tsdb/v1/open-tsdbs
openApi unsubscribe order openapi退订实例 DELETE /tsdb/v1/open-tsdbs/unsubscribe

规格相关接口

接口 描述 URI
GET spec fo opentsdb 获取openTSDB实例规格 GET /tsdb/v1/tsdbs/spec/{clusterType}