




如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
OpenTSDBHTTPapi 1.root 功能:返回OpenTSDB界面 例子:request:http://localhost:4242 2.aggeregators(聚合器) 功能:返回一个openTSDB在仪表盘或者菜单中使用的聚合方法的列表。 例子:request:GEThttp://localhost:4242/api/aggregators result:[ "min", "sum", "max", "avg" ] 3.annotation(注解) 功能:储存(增加、删除、修改)OpenTSDB中具体的时间序列事件的注释,每个时间序列和时间戳只能有一条注释。 例子: GET方式:request:http://localhost:4242/api/annotation? tsuid=0001AA0000010000AC&ts=1351904581 response:[ { "tsuid":"0001AA0000010000AC", "start_time":1351904581, "end_time":0, "description":"Eventoccurred", "notes":"Thesewouldbedetailsabouttheevent, thedescriptionisjustasummary", "custom":{ "owner":"jdoe", "dept":"ops" } } ] POST方式:request:{ "tsuid":"0001AA0000010000AC", "start_time":1352082481, "description":"Eventoccurred", "notes":"Thesewouldbedetailsabouttheevent,the descriptionisjustasummary", "custom":{ "owner":"jdoe", "dept":"ops" } } response:[ { "tsuid":"0001AA0000010000AC", "start_time":1352082481, "description":"Eventoccurred", "notes":"Thesewouldbedetailsabouttheevent,the descriptionisjustasummary", "custom":{ "owner":"jdoe", "dept":"ops" } } ] delete一条注释: request:http://localhost:4242/annotation?tsuid=0001AA0000010000AC&ts=1352082482&delete=true response:{ "delete":"successful", "start_time":"1352082482", "tsuid":"0001AA0000010000AC" } 4.cache 功能:获取文件从存储空间的缓存中 例子: request:/api/cache?file=18c3679.png response:返回对应的文件 5.formatter 功能:返回TSD上可用的fomatter(格式程序)和实现了的方法 例子: request:GEThttp://localhost:4242/api/formatters response: { "collectdjson":[ "HTTPDataPut" ], "ascii":[ "HTTPDataGet", "TelnetDataPut", "TelnetStats", "TelnetVersion" ], "gnugraph":[ "HTTPDataGet" ], "json":[ "HTTPDataGet", "HTTPDataPut", "HTTPStats", "HTTPSearch", "HTTPGroupby", "HTTPSuggest", "HTTPVersion" ] } 6.logs 功能:查看或修改TSD内部的日志 例子: GET/logs?level=debugHTTP/1.1200OK Content-Type:text/plain Content-Length:42 SetthelogleveltoDEBUGon51loggers. 7.group 功能:返回时间序列的IDs等的列表 例子: (1)/api/group?group=host { "limit":25, "time":4175.115792, "results":{ "host1.my

xf****65
实名认证
内容提供者


最近下载