@RebornHuan
2017-05-25T05:42:54.000000Z
字数 48423
阅读 1546
接口说明
1.集群列表
请求路径
请求方式
GET
请求参数
无
返回参数
请求参数 请求类型 说明 status int 成功为0, 失败为其他值 data String json格式字符串, 具体返回 message String 如果不成功,返回的错误信息
返回示例
{"status": 0,"data": [{"entityStatus": "CONCERNING_HEALTH","version": "CDH5","displayName": "成都综合生产集群","name": "cluster","fullVersion": "5.7.1"},{"entityStatus": "GOOD_HEALTH","version": "CDH5","displayName": "成都公共服务集群","name": "cluster2","fullVersion": "5.7.1"},{"entityStatus": "GOOD_HEALTH","version": "CDH5","displayName": "成都准实时生产集群","name": "cluster3","fullVersion": "5.7.1"},{"entityStatus": "GOOD_HEALTH","version": "CDH5","displayName": "成都实时计算生产集群","name": "cluster4","fullVersion": "5.7.1"}]}
2.文件系统概况
请求路径
请求方式
GET
请求参数
无
返回参数
请求参数 请求类型 说明 status int 成功为0, 失败为其他值 data String json格式字符串, 具体返回 message String 如果不成功,返回的错误信息
返回示例
{"status": 0,"data": [{"value": "1.1PB","name": "dfs_capacity","unit": "PB"},{"value": "415.4TB","name": "dfs_capacity_used","unit": "TB"},{"value": "54.4TB","name": "dfs_capacity_used_non_hdfs","unit": "TB"}]}
2.HDFS top user
请求路径
请求方式
GET
请求参数
无
返回参数
请求参数 请求类型 说明 status int 成功为0, 失败为其他值 data String json格式字符串, 具体返回 message String 如果不成功,返回的错误信息
返回示例
{"status": 0,"data": [{"rawSize": 1728087258,"numFiles": 709,"user": "oozie","size": 576029086},{"rawSize": 32624520,"numFiles": 232,"user": "hive","size": 10874840},{"rawSize": 0,"numFiles": 1,"user": "ganjianling","size": 0},{"rawSize": 0,"numFiles": 2737,"user": "hue","size": 0},{"rawSize": 314580525,"numFiles": 19,"user": "hdfs","size": 104860175},{"rawSize": 0,"numFiles": 1,"user": "solr","size": 0},{"rawSize": 0,"numFiles": 1,"user": "griffin","size": 0},{"rawSize": 0,"numFiles": 3,"user": "mapred","size": 0},{"rawSize": 42018,"numFiles": 108,"user": "hbase","size": 14006},{"rawSize": 0,"numFiles": 3,"user": "yarn","size": 0},{"rawSize": 81882168,"numFiles": 1216,"user": "etl_user","size": 27294056},{"rawSize": 1728087258,"numFiles": 709,"user": "oozie","size": 576029086},{"rawSize": 32624520,"numFiles": 234,"user": "hive","size": 10874840},{"rawSize": 0,"numFiles": 1,"user": "ganjianling","size": 0},{"rawSize": 0,"numFiles": 2233,"user": "hue","size": 0},{"rawSize": 314580525,"numFiles": 19,"user": "hdfs","size": 104860175},{"rawSize": 0,"numFiles": 1,"user": "solr","size": 0},{"rawSize": 0,"numFiles": 1,"user": "griffin","size": 0},{"rawSize": 0,"numFiles": 3,"user": "mapred","size": 0},{"rawSize": 42018,"numFiles": 108,"user": "hbase","size": 14006},{"rawSize": 0,"numFiles": 3,"user": "yarn","size": 0},{"rawSize": 81903969,"numFiles": 1300,"user": "etl_user","size": 27301323}]}
2.impala top
请求路径
请求方式
GET
请求参数
无
返回参数
请求参数 请求类型 说明 status int 成功为0, 失败为其他值 data String json格式字符串, 具体返回 message String 如果不成功,返回的错误信息
返回示例
{"status": 0,"data": [{"category": "IMPALA_QUERY","query_duration": "2.02h","database": "ffan_dw","service_name": "impala","coordinator_host_id": "fd96a207-efac-4e93-9e9e-68f2f2bb86da","executing": "false","statement": "USE `ffan_dw`","user": "hejunyi","stats_missing": "false","time": "2017-04-24T08:27:53Z","entityName": "3d46fe73ae1ec6de:1899b7cc33a26b1"},{"category": "IMPALA_QUERY","query_duration": "9m","thread_cpu_time": "11347","database": "ffan_dw","service_name": "impala","coordinator_host_id": "1483cda3-05fa-45cc-824c-4dc307b5ce96","executing": "false","statement": "select \ncount(1)\nfrom\n ffan_dw.t_wd_bankacct","user": "ffan_oper_user","stats_missing": "false","time": "2017-04-24T08:48:16Z","entityName": "38406324fcdf460c:86dc2d87768702b4","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "1.91h","thread_cpu_time": "35182","database": "app_ffan","service_name": "impala","coordinator_host_id": "fd96a207-efac-4e93-9e9e-68f2f2bb86da","executing": "false","statement": "select count(t.id) 娲昏穬浼氬憳\nfrom (\nselect t2.id,count(distinct t1.dt) as date_cnt\nfrom ( select t.*, cast(t.uid as int)as id from sandbox_gip.ffan_zs_user_use_detail t ) t1\njoin staging_ff_csp.user t2\non t1.id=t2.id\nwhere (t1.uid<>'' or t1.user_id<>'')\nand t2.is_active=1\nand to_date(t1.dt)>='2017-01-01'\nand to_date(t1.dt)<'2017-04-24'\ngroup by t2.id\nhaving count(distinct t1.dt)>=2 ) t","user": "gip_tableau_user","stats_missing": "true","time": "2017-04-24T08:27:53Z","entityName": "e940007581ea8ff3:5576e9a2519aca95","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "1.07h","thread_cpu_time": "1649","database": "dwd_ffan","service_name": "impala","coordinator_host_id": "fd96a207-efac-4e93-9e9e-68f2f2bb86da","executing": "false","statement": "select * from basedata_category","user": "hejunyi","stats_missing": "true","time": "2017-04-24T08:27:53Z","entityName": "23401688e9d8f387:6a9a5556374506a0","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "51m","database": "default","service_name": "impala","coordinator_host_id": "75ed8a23-7ba2-4730-b0b2-99929ede0d0a","executing": "true","statement": "GET_TABLE_TYPES","user": "majiaojiao3","stats_missing": "false","time": "2017-04-24T09:09:25Z","entityName": "414639ed1ecb5d38:282420735e090e87"},{"category": "IMPALA_QUERY","query_duration": "1.38h","thread_cpu_time": "1695","database": "ffan_dw","service_name": "impala","coordinator_host_id": "fd96a207-efac-4e93-9e9e-68f2f2bb86da","executing": "false","statement": "select \n*\nfrom\n ffan_dw.trpt_bankacct\norder by \ndata_dt desc","user": "ffan_oper_user","stats_missing": "true","time": "2017-04-24T08:27:53Z","entityName": "1e462d219ff30aa0:63c6769acc5b9d84","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "10m","database": "default","service_name": "impala","coordinator_host_id": "e9be89ff-258a-414c-aaa7-21cb23f08b3c","executing": "false","statement": "GET_TABLE_TYPES","user": "etl_user","stats_missing": "false","time": "2017-04-24T08:43:15Z","entityName": "a8454cc71e2c419b:cb869f37aa6229f"},{"category": "IMPALA_QUERY","query_duration": "11m","thread_cpu_time": "7728","database": "ffan_dw","service_name": "impala","coordinator_host_id": "1483cda3-05fa-45cc-824c-4dc307b5ce96","executing": "false","statement": "(select jy1.*,hx1.* from\n(select substr(trans_time,12,2) as per_hour_1,store_id,count(order_no) from dws_ffan.s06_ffan_trade_order_sum where dt='20170420' and trade_type_name='娑堣垂' and product_id='' group by store_id,substr(trans_time,12,2)) jy1 \nleft join \n(select substr(use_time,12,2) as per_hour_2,use_store,count(order_no) from dwd_ffan.coupon_ec where dt='20170420' and status=4 and product_no='' group by substr(use_time,12,2),use_store) hx1 \non jy1.per_hour_1=hx1.per_hour_2 and jy1.store_id=hx1.use_store\n) \nunion\n(select jy2.*,hx2.* from\n(select substr(trans_time,12,2) as 'per_hour_1',store_id,count(order_no) from dws_ffan.s06_ffan_trade_order_sum where dt='20170420' and trade_type_name='娑堣垂' and product_id='' group by store_id,substr(trans_time,12,2)) jy2 \nright join \n(select substr(use_time,12,2) as 'per_hour_2',use_store,count(order_no) from dwd_ffan.coupon_ec where dt='20170420' and status=4 and product_no='' group by substr(use_time,12,2),use_store) hx2 \non jy2.per_hour_1=hx2.per_hour_2 and jy2.store_id=hx2.use_store\n)","user": "ffan_riskaudit_user","stats_missing": "true","time": "2017-04-24T08:36:12Z","entityName": "fd493687f11123b7:cd55d291a34d92b2","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "54m","database": "default","service_name": "impala","coordinator_host_id": "1483cda3-05fa-45cc-824c-4dc307b5ce96","executing": "true","statement": "GET_SCHEMAS","user": "ffan_oper_user","stats_missing": "false","time": "2017-04-24T09:09:25Z","entityName": "9446fdb82b6a0a51:821c9a3d27866da1"},{"category": "IMPALA_QUERY","query_duration": "2.25h","thread_cpu_time": "184933","database": "ffan_dw","service_name": "impala","coordinator_host_id": "fd96a207-efac-4e93-9e9e-68f2f2bb86da","executing": "false","statement": "select regexp_replace(regexp_replace(a1.store_name,'\\\\(.*\\\\)',''),'\\锛�.*\\锛�','') as store_brief,\n min(substr(regexp_replace(regexp_replace(a1.store_name,'\\\\(.*\\\\)',''),'\\锛�.*\\锛�',''),1,6))as store_init\n from dwd_ffan.basedata_store a1,ffan_dw.bi_new_ffan_trade_order_info_with_oa_and_cut a2\n where cast(a1.store_id as string)=a2.combine_store_id and a2.city_name='涓婃捣甯�' and a2.business_type_name='椁愰ギ'\ngroup by store_brief","user": "hejunyi","stats_missing": "true","time": "2017-04-24T08:27:52Z","entityName": "8843e04bca02b01e:c3d24bc13a6a9781","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "1.61h","thread_cpu_time": "53038","database": "ffan_dw","service_name": "impala","coordinator_host_id": "fd96a207-efac-4e93-9e9e-68f2f2bb86da","executing": "false","statement": "select isnull(sum(operate_cut_amount),0)+sum(use_discount)+sum(deduction_amt) from bi_new_ffan_trade_order_info_with_oa_and_cut\nwhere plaza_id='1100836'\nand dt>='20160101'\nand dt<='20170420'","user": "ffan_riskaudit_user","stats_missing": "true","time": "2017-04-24T08:27:53Z","entityName": "8b45538614e68698:40aef525d004f59f","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "5m","thread_cpu_time": "47566","database": "ffan_dw","service_name": "impala","coordinator_host_id": "1483cda3-05fa-45cc-824c-4dc307b5ce96","executing": "false","statement": "select hx.*,gz.* from \n(select use_store from dwd_ffan.coupon_ec where dt='20170421' and status=4) hx \nleft join\n(select storeid, count(distinct uid),case when risk_result_success like '%ZF-CF-couponCheck-differentLocationCity%' then '鏍搁攢鐜妭' end as'瑙﹀彂鐜妭' from risk_bigdata.prod_risk_log where\neventtime>='2017-04-21 00:00:00' and eventtime<='2017-04-24 00:00:00' and storeid !='~' and risk_result_success like '%ZF-CF-couponCheck-differentLocationCity%' group by storeid,substr(eventtime,1,10),case when risk_result_success like '%ZF-CF-couponCheck-differentLocationCity%' then '鏍搁攢鐜妭' end having count(distinct uid)>10) gz \non hx.use_store=gz.storeid","user": "ffan_riskaudit_user","stats_missing": "true","time": "2017-04-24T08:50:09Z","entityName": "4c4a93f73cde7509:1072d27373ca1faa","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "1.77h","thread_cpu_time": "729","database": "ffan_dw","service_name": "impala","coordinator_host_id": "fd96a207-efac-4e93-9e9e-68f2f2bb86da","executing": "false","statement": "select * from dim_event_level1","user": "ffan_oper_user","stats_missing": "true","time": "2017-04-24T08:27:53Z","entityName": "2b4c17cba509d9f7:62f271d6b506e896","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "2.21h","database": "ffan_dw","service_name": "impala","coordinator_host_id": "fd96a207-efac-4e93-9e9e-68f2f2bb86da","executing": "false","statement": "create table fact_ffantong_event_log\n(\ndatekey string,\nhourkey string,\nevent_id string,\napp_type string,\napp_version string,\ndevice_id string\n)\npartitioned by (dt string) \nrow format delimited fields terminated by '\\t'\nstored as textfile","user": "ffan_oper_user","stats_missing": "false","time": "2017-04-24T08:27:52Z","entityName": "d428bc66bdad971:5ea6ab28345e597"},{"category": "IMPALA_QUERY","query_duration": "35m","thread_cpu_time": "57915","database": "sub","service_name": "impala","coordinator_host_id": "fd96a207-efac-4e93-9e9e-68f2f2bb86da","executing": "false","statement": "select count(1) from staging_small_loan.acct_loan where to_date(regexp_replace(putoutdate, '/', '-')) < to_date('2017-04-22')","user": "etl_user","stats_missing": "true","time": "2017-04-24T08:27:52Z","entityName": "f444396f4d5780be:f14d770fd32db59a","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "7m","thread_cpu_time": "6242","database": "risk_bigdata","service_name": "impala","coordinator_host_id": "1483cda3-05fa-45cc-824c-4dc307b5ce96","executing": "false","statement": "(select jy1.*,hx1.* from\n(select substr(trans_time,12,2) as per_hour_1,store_id,count(order_no) from dws_ffan.s06_ffan_trade_order_sum where dt='20170420' and trade_type_name='娑堣垂' group by store_id,substr(trans_time,12,2)) jy1 \nleft join \n(select substr(use_time,12,2) as per_hour_2,use_store,count(order_no) from dwd_ffan.coupon_ec where dt='20170420' and status=4 and product_no='' group by substr(use_time,12,2),use_store) hx1 \non jy1.per_hour_1=hx1.per_hour_2 and jy1.store_id=hx1.use_store\n) \nunion\n(select jy2.*,hx2.* from\n(select substr(trans_time,12,2) as 'per_hour_1',store_id,count(order_no) from dws_ffan.s06_ffan_trade_order_sum where dt='20170420' and trade_type_name='娑堣垂' group by store_id,substr(trans_time,12,2)) jy2 \nright join \n(select substr(use_time,12,2) as 'per_hour_2',use_store,count(order_no) from dwd_ffan.coupon_ec where dt='20170420' and status=4 group by substr(use_time,12,2),use_store) hx2 \non jy2.per_hour_1=hx2.per_hour_2 and jy2.store_id=hx2.use_store\n)","user": "ffan_riskaudit_user","stats_missing": "true","time": "2017-04-24T08:26:26Z","entityName": "18430e1b1b2203e5:f9ea4fd4dce7ccbf","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "54m","thread_cpu_time": "6050982","database": "ffan_dw","service_name": "impala","coordinator_host_id": "1483cda3-05fa-45cc-824c-4dc307b5ce96","executing": "true","statement": "select a.dt,ceiling(geo_distance),datediff(logindate,mindate) as delta_date,count(distinct a.device_id)\nfrom\n(\nselect a.dt,concat_ws('-',substring(a.dt,1,4),substring(a.dt,5,2),substring(a.dt,7,2)) as mindate,a.device_id,min(geo_distance) as geo_distance from\n(select a.dt,datekey,device_id,geo_distance,row_number() over (partition by device_id order by event_time) rn\n from dws_ffan.app_event_log a\nwhere dt>='20170401'\nand datekey>='2017-04-01'\nand app_type='IOS'\nand device_id<>''\nand geo_position is not null\nand geo_position<>'') a\njoin\n(\nselect distinct dt,mindate,device_id from dim_app_alldevice where dt>='20170401'\n) b\non (a.device_id=b.device_id and a.dt=b.dt)\nwhere rn<=50\ngroup by dt,device_id) a\nleft outer join\n(\nselect distinct concat_ws('-',substring(dt,1,4),substring(dt,5,2),substring(dt,7,2)) as logindate,device_id from \ndws_ffan.app_event_log a\nwhere dt>='20170401'\nand app_type='IOS'\nand device_id<>''\n) b\non (a.device_id=b.device_id)\ngroup by a.dt,ceiling(geo_distance),datediff(logindate,mindate)\nhaving datediff(logindate,mindate) in (1,7)","user": "ffan_oper_user","stats_missing": "true","time": "2017-04-24T09:09:25Z","entityName": "5e46be18b11f4729:eada48da0ae588ba","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "17m","thread_cpu_time": "735","database": "ffan_dw","service_name": "impala","coordinator_host_id": "1483cda3-05fa-45cc-824c-4dc307b5ce96","executing": "true","statement": "select \n*\nfrom\n ffan_dw.t_cust_base_info","user": "ffan_oper_user","stats_missing": "true","time": "2017-04-24T09:09:25Z","entityName": "fd40208f080d9146:592906460ea6bbd","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "2.73h","thread_cpu_time": "85549","database": "risk_bigdata","service_name": "impala","coordinator_host_id": "fd96a207-efac-4e93-9e9e-68f2f2bb86da","executing": "false","statement": "select rule_route,count(uid) from prod_risk_log \nwhere (ip='' or substr(ip,1,6)='10.192')\nand rule_route not like '%result%'\ngroup by rule_route","user": "ffan_riskaudit_user","stats_missing": "true","time": "2017-04-24T08:27:52Z","entityName": "b742f2956d95fbfb:daf75b6818b85f97","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "39m","thread_cpu_time": "2646","database": "risk_bigdata","service_name": "impala","coordinator_host_id": "1483cda3-05fa-45cc-824c-4dc307b5ce96","executing": "true","statement": "select jy1.*,hx1.* from\n(select substr(trans_time,12,2) as per_hour_1,store_id,count(order_no) from dws_ffan.s06_ffan_trade_order_sum where dt='20170420' and trade_type_name='娑堣垂' group by store_id,substr(trans_time,12,2)) jy1 \nleft join \n(select substr(use_time,12,2) as per_hour_2,use_store,count(order_no) from dwd_ffan.coupon_ec where dt='20170420' and status=4 and product_no='' group by substr(use_time,12,2),use_store) hx1 \non jy1.per_hour_1=hx1.per_hour_2 and jy1.store_id=hx1.use_store","user": "ffan_riskaudit_user","stats_missing": "true","time": "2017-04-24T09:09:25Z","entityName": "1a4bbc87beefb3a2:c8ac83c612fa508e","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "32m","database": "sub","service_name": "impala","coordinator_host_id": "1483cda3-05fa-45cc-824c-4dc307b5ce96","executing": "true","statement": "invalidate metadata app_ffan.a06_ffan_business_department","user": "etl_user","stats_missing": "false","time": "2017-04-24T09:09:25Z","entityName": "7b41445636be9bbf:de39f68538cc23a5"},{"category": "IMPALA_QUERY","query_duration": "53m","thread_cpu_time": "1039","database": "dw_plaza","service_name": "impala","coordinator_host_id": "fd96a207-efac-4e93-9e9e-68f2f2bb86da","executing": "false","statement": "select * from dimstore limit 10","user": "analysis_app_user","stats_missing": "true","time": "2017-04-24T08:27:53Z","entityName": "1c425aa5e1107492:89ac073f289ace8a","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "37m","thread_cpu_time": "5269743","database": "ffan_dw","service_name": "impala","coordinator_host_id": "fd96a207-efac-4e93-9e9e-68f2f2bb86da","executing": "false","statement": "select a.dt,datediff(datekey,mindate),ceiling(geo_distance),count(distinct a.device_id)\nfrom\n(\nselect a.dt,datekey,mindate,a.device_id,min(geo_distance) as geo_distance from\n(select a.dt,datekey,device_id,geo_distance,row_number() over (partition by device_id order by event_time) rn\n from dws_ffan.app_event_log a\nwhere dt>='20170401'\nand datekey>='2017-04-01'\nand app_type='IOS'\nand device_id<>''\nand geo_position is not null\nand geo_position<>'') a\nleft outer join\n(\nselect distinct dt,mindate,device_id from dim_app_alldevice where dt>='20170401'\n) b\non (a.device_id=b.device_id)\nwhere rn<=50\ngroup by a.dt,datekey,mindate,device_id) a\ngroup by a.dt,datediff(datekey,mindate),ceiling(geo_distance)\nhaving datediff(datekey,mindate)>=0","user": "ffan_oper_user","stats_missing": "true","time": "2017-04-24T08:10:37Z","entityName": "5d48b4cb263a2000:d2c2c29b974bf1b3","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "36m","database": "default","service_name": "impala","coordinator_host_id": "e9be89ff-258a-414c-aaa7-21cb23f08b3c","executing": "false","statement": "GET_TABLE_TYPES","user": "majiaojiao3","stats_missing": "false","time": "2017-04-24T08:09:59Z","entityName": "724a6221f823ee5d:5b45c12fa51f87b1"},{"category": "IMPALA_QUERY","query_duration": "51m","thread_cpu_time": "26560141","database": "ffan_dw","service_name": "impala","coordinator_host_id": "fd96a207-efac-4e93-9e9e-68f2f2bb86da","executing": "false","statement": "select\ncount(distinct t1.m_puid) as event_puid_cnts,\ncount(distinct t1.a_puid) as bk_puid_cnts\nfrom \n(\nselect\nm.puid as m_puid,\na.puid as a_puid\nfrom dws_ffan.app_event_log b \nleft join dws_ffan.s06_ffan_member_stat_d_sum m\non b.user_id = m.member_id\nleft join ffan_dw.bi_tied_trade_belong a\non a.puid = b.puid\nwhere b.dt>='2017-01-03' and b.mem_mobile like '%1%' ) t1","user": "ffan_oper_user","stats_missing": "true","time": "2017-04-24T08:27:53Z","entityName": "d242401fc1b2a02f:5ef8faa01a7788c","pool": "default-pool"},{"category": "IMPALA_QUERY","query_duration": "56m","thread_cpu_time": "5515535","database": "ffan_dw","service_name": "impala","coordinator_host_id": "fd96a207-efac-4e93-9e9e-68f2f2bb86da","executing": "false","statement": "select a.dt,datediff(datekey,mindate),ceiling(geo_distance),count(distinct a.device_id)\nfrom\n(\nselect a.dt,datekey,mindate,a.device_id,min(geo_distance) as geo_distance from\n(select a.dt,datekey,device_id,geo_distance,row_number() over (partition by device_id order by event_time) rn\n from dws_ffan.app_event_log a\nwhere dt>='20170401'\nand datekey>='2017-04-01'\nand app_type='IOS'\nand device_id<>''\nand geo_position is not null\nand geo_position<>'') a\nleft outer join\n(\nselect distinct dt,mindate,device_id from dim_app_alldevice where dt>='20170401'\n) b\non (a.device_id=b.device_id)\nwhere rn<=50\ngroup by a.dt,datekey,mindate,device_id) a\ngroup by a.dt,datediff(datekey,mindate),ceiling(geo_distance)\nhaving datediff(datekey,mindate)>=0","user": "ffan_oper_user","stats_missing": "true","time": "2017-04-24T08:27:53Z","entityName": "3f40962029e5bc15:89b10ea0c2351c85","pool": "default-pool"}]}
2.hive top
请求路径
请求方式
GET
请求参数
无
返回参数
请求参数 请求类型 说明 status int 成功为0, 失败为其他值 data String json格式字符串, 具体返回 message String 如果不成功,返回的错误信息
返回示例
{"status": 0,"data": [{"category": "YARN_APPLICATION","name": "select a.dt,ceiling(geo_distance),da...(1,7)(Stage-7)","application_duration": "1m","entityName": "job_1492514699318_25500","time": "2017-04-24T08:15:26Z","user": "ffan_oper_user","service_name": "yarn","cpu_milliseconds": "18280090","pool": "root.ffan_oper_user"},{"category": "YARN_APPLICATION","name": "insert overwrite table s06_ffan_trade_o...dt(Stage-2)","application_duration": "4m","entityName": "job_1492514699318_24877","time": "2017-04-24T00:44:33Z","user": "etl_user","service_name": "yarn","cpu_milliseconds": "15114290","pool": "root.etl_user"},{"category": "YARN_APPLICATION","name": "create table fsx_ffan_daily_report_year_...t(Stage-2)","application_duration": "2m","entityName": "job_1492514699318_25124","time": "2017-04-24T02:47:07Z","user": "ffan_oper_user","service_name": "yarn","cpu_milliseconds": "872740","pool": "root.ffan_oper_user"},{"category": "YARN_APPLICATION","name": "SELECT count(distinct b.user_id)\nfrom...null(Stage-1)","application_duration": "30m","entityName": "job_1492514699318_25401","time": "2017-04-24T04:33:24Z","user": "liuxun14","service_name": "yarn","cpu_milliseconds": "258783880","pool": "root.liuxun14"},{"category": "YARN_APPLICATION","name": "insert overwrite tabl...=t1.combine_store_id(Stage-20)","application_duration": "1m","entityName": "job_1492514699318_25071","time": "2017-04-24T02:40:06Z","user": "ffan_oper_user","service_name": "yarn","cpu_milliseconds": "2130740","pool": "root.ffan_oper_user"},{"category": "YARN_APPLICATION","name": "select case when sysfrom = '99bill...sysfrom(Stage-1)","application_duration": "4m","entityName": "job_1492514699318_25118","time": "2017-04-24T02:48:38Z","user": "etl_user","service_name": "yarn","cpu_milliseconds": "6335040","pool": "root.etl_user"},{"category": "YARN_APPLICATION","name": "insert into table tmp...ll_loan.customer_tel(Stage-1)","application_duration": "5m","entityName": "job_1492514699318_25283","time": "2017-04-24T03:12:32Z","user": "etl_user","service_name": "yarn","cpu_milliseconds": "5312500","pool": "root.etl_user"},{"category": "YARN_APPLICATION","name": "create table fsx_ffan_daily_report_year_...t(Stage-1)","application_duration": "2m","entityName": "job_1492514699318_25079","time": "2017-04-24T02:44:01Z","user": "ffan_oper_user","service_name": "yarn","cpu_milliseconds": "3998570","pool": "root.ffan_oper_user"},{"category": "YARN_APPLICATION","name": "insert overwrite tabl...label=a14.date_label(Stage-24)","application_duration": "1m","entityName": "job_1492514699318_25422","time": "2017-04-24T06:04:23Z","user": "ffan_oper_user","service_name": "yarn","cpu_milliseconds": "7954830","pool": "root.ffan_oper_user"},{"category": "YARN_APPLICATION","name": "create table fsx_ffan_daily_report_y...rn2=1(Stage-1)","application_duration": "4m","entityName": "job_1492514699318_25206","time": "2017-04-24T02:58:04Z","user": "ffan_oper_user","service_name": "yarn","cpu_milliseconds": "121038970","pool": "root.ffan_oper_user"},{"category": "YARN_APPLICATION","name": "insert overwrite table s06_ffan_member_...dt(Stage-1)","application_duration": "7m","entityName": "job_1492514699318_24880","time": "2017-04-24T01:01:33Z","user": "etl_user","service_name": "yarn","cpu_milliseconds": "29452220","pool": "root.etl_user"},{"category": "YARN_APPLICATION","name": "insert overwrite table s06_ffan_member_...dt(Stage-2)","application_duration": "18m","entityName": "job_1492514699318_24882","time": "2017-04-24T01:20:24Z","user": "etl_user","service_name": "yarn","cpu_milliseconds": "22551970","pool": "root.etl_user"},{"category": "YARN_APPLICATION","name": "create table fsx_ffan_daily_report_y...rn2=1(Stage-2)","application_duration": "4m","entityName": "job_1492514699318_25224","time": "2017-04-24T03:03:13Z","user": "ffan_oper_user","service_name": "yarn","cpu_milliseconds": "43343410","pool": "root.ffan_oper_user"},{"category": "YARN_APPLICATION","name": "insert overwrite tabl...label=a14.date_label(Stage-7)","application_duration": "1m","entityName": "job_1492514699318_25092","time": "2017-04-24T02:43:53Z","user": "ffan_oper_user","service_name": "yarn","cpu_milliseconds": "13909480","pool": "root.ffan_oper_user"},{"category": "YARN_APPLICATION","name": "create table fsx_ffan...label=a14.date_label(Stage-14)","application_duration": "1m","entityName": "job_1492514699318_25159","time": "2017-04-24T02:49:40Z","user": "ffan_oper_user","service_name": "yarn","cpu_milliseconds": "9069810","pool": "root.ffan_oper_user"},{"category": "YARN_APPLICATION","name": "insert overwrite tabl...ll_c.cardextent_copy(Stage-1)","application_duration": "2m","entityName": "job_1492514699318_25501","time": "2017-04-24T08:16:42Z","user": "etl_user","service_name": "yarn","cpu_milliseconds": "1518070","pool": "root.etl_user"},{"category": "YARN_APPLICATION","name": "insert overwrite tabl..._edw.mobile_loc_copy(Stage-1)","application_duration": "2m","entityName": "job_1492514699318_25394","time": "2017-04-24T03:58:18Z","user": "etl_user","service_name": "yarn","cpu_milliseconds": "313330","pool": "root.etl_user"},{"category": "YARN_APPLICATION","name": "insert overwrite table d_membe...statis_date(Stage-2)","application_duration": "3m","entityName": "job_1492514699318_25273","time": "2017-04-24T03:08:46Z","user": "etl_user","service_name": "yarn","cpu_milliseconds": "7937500","pool": "root.etl_user"},{"category": "YARN_APPLICATION","name": "SELECT geo_plaza_id, geo_pl...geo_plaza_name(Stage-1)","application_duration": "29m","entityName": "job_1492514699318_25411","time": "2017-04-24T06:22:33Z","user": "liuxun14","service_name": "yarn","cpu_milliseconds": "247210340","pool": "root.liuxun14"},{"category": "YARN_APPLICATION","name": "insert overwrite tabl...label=a14.date_label(Stage-24)","application_duration": "2m","entityName": "job_1492514699318_25100","time": "2017-04-24T02:44:26Z","user": "ffan_oper_user","service_name": "yarn","cpu_milliseconds": "9189170","pool": "root.ffan_oper_user"},{"category": "YARN_APPLICATION","name": "select a.dt,ceiling(geo_distance),da...(1,7)(Stage-1)","application_duration": "2m","entityName": "job_1492514699318_25499","time": "2017-04-24T08:15:42Z","user": "ffan_oper_user","service_name": "yarn","cpu_milliseconds": "27830390","pool": "root.ffan_oper_user"},{"category": "YARN_APPLICATION","name": "insert overwrite tabl...serialno=t2.serialno(Stage-1)","application_duration": "1m","entityName": "job_1492514699318_25412","time": "2017-04-24T05:55:26Z","user": "etl_user","service_name": "yarn","cpu_milliseconds": "534560","pool": "root.etl_user"},{"category": "YARN_APPLICATION","name": "insert overwrite table s06_ffan_trade_o...dt(Stage-1)","application_duration": "4m","entityName": "job_1492514699318_24874","time": "2017-04-24T00:39:40Z","user": "etl_user","service_name": "yarn","cpu_milliseconds": "21515950","pool": "root.etl_user"},{"category": "YARN_APPLICATION","name": "select count(distinct..._trade_order_product(Stage-1)","application_duration": "3m","entityName": "job_1492514699318_24904","time": "2017-04-24T01:57:09Z","user": "analysis_app_user","service_name": "yarn","cpu_milliseconds": "1326010","pool": "root.analysis_app_user"},{"category": "YARN_APPLICATION","name": "create table fsx_ffan_daily_r...device_id\n)t(Stage-1)","application_duration": "2m","entityName": "job_1492514699318_25181","time": "2017-04-24T02:53:16Z","user": "ffan_oper_user","service_name": "yarn","cpu_milliseconds": "65326160","pool": "root.ffan_oper_user"},{"category": "YARN_APPLICATION","name": "SELECT plaza_id, plaza_name, mem_reg_c...sex(Stage-1)","application_duration": "36m","entityName": "job_1492514699318_24902","time": "2017-04-24T02:28:46Z","user": "liuxun14","service_name": "yarn","cpu_milliseconds": "268550370","pool": "root.liuxun14"},{"category": "YARN_APPLICATION","name": "insert overwrite table d_membe...statis_date(Stage-1)","application_duration": "3m","entityName": "job_1492514699318_25246","time": "2017-04-24T03:04:47Z","user": "etl_user","service_name": "yarn","cpu_milliseconds": "11929530","pool": "root.etl_user"},{"category": "YARN_APPLICATION","name": "select 's03' as biz_id, count(d...'20170424'(Stage-1)","application_duration": "4m","entityName": "job_1492514699318_24919","time": "2017-04-24T02:16:32Z","user": "etl_user","service_name": "yarn","cpu_milliseconds": "11812110","pool": "root.etl_user"}]}
2.hdfs 周增长 月增长 季增长统计
请求路径
/api/clusters/charts/hdfs/weekly
/api/clusters/charts/hdfs/monthly
/api/clusters/charts/hdfs/quarterly
请求方式
GET
请求参数
无
返回参数
请求参数 请求类型 说明 status int 成功为0, 失败为其他值 data String json格式字符串, 具体返回 message String 如果不成功,返回的错误信息
返回示例
周增长 多一个 remaining 用于说明字段填充
- col_1: 日期
- col_2: 已用容量(T)
- col_3: 上周容量(T)
- col_4: 增量(T)
- col_5: 周增长率(%)
{"status": 0,"data": {"remaining": "262.0","hdfs_used": [{"col_2": 417.3,"col_3": 409.5,"col_1": "2017-04-27","col_4": "7.8","col_5": "1.9"},{"col_2": 409.5,"col_3": 397.8,"col_1": "2017-04-20","col_4": "11.7","col_5": "2.9"},{"col_2": 397.8,"col_3": 392.0,"col_1": "2017-04-13","col_4": "5.8","col_5": "1.5"},{"col_2": 392.0,"col_3": 381.6,"col_1": "2017-04-06","col_4": "10.4","col_5": "2.7"}]}}
月增长
- col_1: 日期
- col_2: 已用容量(T)
- col_3: 上月容量(T)
- col_4: 增量(T)
- col_5: 月增长率(%)
{"status": 0,"data": {"hdfs_used": [{"col_2": 417.3,"col_3": 381.6,"col_1": "2017-04","col_4": "35.7","col_5": "9.4"},{"col_2": 381.6,"col_3": 337.8,"col_1": "2017-03","col_4": "43.8","col_5": "13.0"},{"col_2": 337.8,"col_3": 298.1,"col_1": "2017-02","col_4": "39.7","col_5": "13.3"},{"col_2": 298.1,"col_3": 286.1,"col_1": "2017-01","col_4": "12.0","col_5": "4.2"}]}}
季度增长
- col_1: 日期
- col_2: 已用容量(T)
- col_3: 上季容量(T)
- col_4: 增量(T)
- col_5: 季度增长率(%)
{"status": 0,"data": {"hdfs_used": [{"col_2": 381.6,"col_3": 286.1,"col_1": "2017-Q1","col_4": "95.5","col_5": "33.4"},{"col_2": 286.1,"col_3": 0.0,"col_1": "2016-Q4","col_4": "286.1","col_5": 0}]}}
2.群集 cpu mem net统计
请求路径
/api/clusters/charts/cluster/net
/api/clusters/charts/cluster/cpu
/api/clusters/charts/cluster/mem
请求方式
GET
请求参数
无
返回参数
请求参数 请求类型 说明 status int 成功为0, 失败为其他值 data String json格式字符串, 具体返回 message String 如果不成功,返回的错误信息
返回示例
cpu
{"status": 0,"data": {"cluster_used": [[["2017-05-02T10:00:00Z","2017-05-02T11:00:00Z","2017-05-02T12:00:00Z","2017-05-02T13:00:00Z","2017-05-02T14:00:00Z","2017-05-02T15:00:00Z","2017-05-02T16:00:00Z","2017-05-02T17:00:00Z","2017-05-02T18:00:00Z","2017-05-02T19:00:00Z","2017-05-02T20:00:00Z","2017-05-02T21:00:00Z","2017-05-02T22:00:00Z","2017-05-02T23:00:00Z","2017-05-03T00:00:00Z","2017-05-03T01:00:00Z","2017-05-03T02:00:00Z","2017-05-03T03:00:00Z","2017-05-03T04:00:00Z","2017-05-03T05:00:00Z","2017-05-03T06:00:00Z","2017-05-03T07:00:00Z","2017-05-03T08:00:00Z","2017-05-03T09:00:00Z","2017-05-03T10:00:00Z"],[100.0,99.9,88.7,31.8,38.6,93.5,100.0,100.0,99.1,100.0,99.9,40.5,32.2,26.3,22.5,30.6,40.2,39.0,19.0,21.7,70.0,30.9,24.5,99.2,99.9],"成都综合生产集群Max","-",1],[["2017-05-02T10:00:00Z","2017-05-02T11:00:00Z","2017-05-02T12:00:00Z","2017-05-02T13:00:00Z","2017-05-02T14:00:00Z","2017-05-02T15:00:00Z","2017-05-02T16:00:00Z","2017-05-02T17:00:00Z","2017-05-02T18:00:00Z","2017-05-02T19:00:00Z","2017-05-02T20:00:00Z","2017-05-02T21:00:00Z","2017-05-02T22:00:00Z","2017-05-02T23:00:00Z","2017-05-03T00:00:00Z","2017-05-03T01:00:00Z","2017-05-03T02:00:00Z","2017-05-03T03:00:00Z","2017-05-03T04:00:00Z","2017-05-03T05:00:00Z","2017-05-03T06:00:00Z","2017-05-03T07:00:00Z","2017-05-03T08:00:00Z","2017-05-03T09:00:00Z","2017-05-03T10:00:00Z"],[19.66199404761905,23.848720238095236,20.90066964285714,4.085684523809523,4.173392857142857,20.628035714285712,15.21059523809524,15.10247023809524,16.909732142857145,11.952351190476188,13.294464285714284,4.693095238095238,3.3662648809523805,2.976502976190476,2.886934523809524,4.435892857142857,4.857351190476191,6.821636904761905,2.487440476190476,2.3911011904761903,4.666726190476191,2.7322321428571428,3.144017857142857,10.733005952380953,22.21904761904762],"成都综合生产集群Avg","-",1],[["2017-05-02T10:00:00Z","2017-05-02T11:00:00Z","2017-05-02T12:00:00Z","2017-05-02T13:00:00Z","2017-05-02T14:00:00Z","2017-05-02T15:00:00Z","2017-05-02T16:00:00Z","2017-05-02T17:00:00Z","2017-05-02T18:00:00Z","2017-05-02T19:00:00Z","2017-05-02T20:00:00Z","2017-05-02T21:00:00Z","2017-05-02T22:00:00Z","2017-05-02T23:00:00Z","2017-05-03T00:00:00Z","2017-05-03T01:00:00Z","2017-05-03T02:00:00Z","2017-05-03T03:00:00Z","2017-05-03T04:00:00Z","2017-05-03T05:00:00Z","2017-05-03T06:00:00Z","2017-05-03T07:00:00Z","2017-05-03T08:00:00Z","2017-05-03T09:00:00Z","2017-05-03T10:00:00Z"],[2.3,2.3,7.2,2.5,2.2,2.2,2.2,2.3,2.4,2.4,2.2,2.0,2.0,2.0,1.9,2.2,2.2,2.3,1.9,1.9,2.1,1.9,2.2,2.2,2.0],"成都准实时生产集群Max",":",1],[["2017-05-02T10:00:00Z","2017-05-02T11:00:00Z","2017-05-02T12:00:00Z","2017-05-02T13:00:00Z","2017-05-02T14:00:00Z","2017-05-02T15:00:00Z","2017-05-02T16:00:00Z","2017-05-02T17:00:00Z","2017-05-02T18:00:00Z","2017-05-02T19:00:00Z","2017-05-02T20:00:00Z","2017-05-02T21:00:00Z","2017-05-02T22:00:00Z","2017-05-02T23:00:00Z","2017-05-03T00:00:00Z","2017-05-03T01:00:00Z","2017-05-03T02:00:00Z","2017-05-03T03:00:00Z","2017-05-03T04:00:00Z","2017-05-03T05:00:00Z","2017-05-03T06:00:00Z","2017-05-03T07:00:00Z","2017-05-03T08:00:00Z","2017-05-03T09:00:00Z","2017-05-03T10:00:00Z"],[0.9523333333333331,0.9683333333333334,1.0616666666666665,0.9633333333333332,0.9623333333333333,0.9609999999999999,0.963,0.9560000000000001,0.9619999999999999,0.9606666666666667,0.8856666666666665,0.8736666666666667,0.8549999999999998,0.8306666666666667,0.8280000000000001,0.8829999999999998,0.8223333333333332,0.848,0.8083333333333332,0.8096666666666666,0.8123333333333332,0.816,0.8366666666666667,0.8539999999999998,0.9186666666666664],"成都准实时生产集群Avg",":",1],[["2017-05-02T10:00:00Z","2017-05-02T11:00:00Z","2017-05-02T12:00:00Z","2017-05-02T13:00:00Z","2017-05-02T14:00:00Z","2017-05-02T15:00:00Z","2017-05-02T16:00:00Z","2017-05-02T17:00:00Z","2017-05-02T18:00:00Z","2017-05-02T19:00:00Z","2017-05-02T20:00:00Z","2017-05-02T21:00:00Z","2017-05-02T22:00:00Z","2017-05-02T23:00:00Z","2017-05-03T00:00:00Z","2017-05-03T01:00:00Z","2017-05-03T02:00:00Z","2017-05-03T03:00:00Z","2017-05-03T04:00:00Z","2017-05-03T05:00:00Z","2017-05-03T06:00:00Z","2017-05-03T07:00:00Z","2017-05-03T08:00:00Z","2017-05-03T09:00:00Z","2017-05-03T10:00:00Z"],[0.6,0.6,0.7,0.7,0.6,0.7,0.7,0.7,0.6,0.6,0.6,0.5,0.5,0.3,0.3,0.3,0.2,0.2,0.2,0.2,0.2,0.3,0.3,0.5,0.6],"成都公共服务集群Max","--",1],[["2017-05-02T10:00:00Z","2017-05-02T11:00:00Z","2017-05-02T12:00:00Z","2017-05-02T13:00:00Z","2017-05-02T14:00:00Z","2017-05-02T15:00:00Z","2017-05-02T16:00:00Z","2017-05-02T17:00:00Z","2017-05-02T18:00:00Z","2017-05-02T19:00:00Z","2017-05-02T20:00:00Z","2017-05-02T21:00:00Z","2017-05-02T22:00:00Z","2017-05-02T23:00:00Z","2017-05-03T00:00:00Z","2017-05-03T01:00:00Z","2017-05-03T02:00:00Z","2017-05-03T03:00:00Z","2017-05-03T04:00:00Z","2017-05-03T05:00:00Z","2017-05-03T06:00:00Z","2017-05-03T07:00:00Z","2017-05-03T08:00:00Z","2017-05-03T09:00:00Z","2017-05-03T10:00:00Z"],[0.205,0.221,0.22733333333333333,0.22566666666666663,0.2213333333333333,0.22566666666666663,0.22833333333333328,0.221,0.21266666666666664,0.206,0.20166666666666666,0.19933333333333333,0.1796666666666667,0.14533333333333334,0.12966666666666665,0.12300000000000001,0.12166666666666669,0.12200000000000003,0.12100000000000001,0.12100000000000001,0.12066666666666667,0.12233333333333336,0.14200000000000002,0.17333333333333334,0.20299999999999996],"成都公共服务集群Avg","--",1],[["2017-05-02T10:00:00Z","2017-05-02T11:00:00Z","2017-05-02T12:00:00Z","2017-05-02T13:00:00Z","2017-05-02T14:00:00Z","2017-05-02T15:00:00Z","2017-05-02T16:00:00Z","2017-05-02T17:00:00Z","2017-05-02T18:00:00Z","2017-05-02T19:00:00Z","2017-05-02T20:00:00Z","2017-05-02T21:00:00Z","2017-05-02T22:00:00Z","2017-05-02T23:00:00Z","2017-05-03T00:00:00Z","2017-05-03T01:00:00Z","2017-05-03T02:00:00Z","2017-05-03T03:00:00Z","2017-05-03T04:00:00Z","2017-05-03T05:00:00Z","2017-05-03T06:00:00Z","2017-05-03T07:00:00Z","2017-05-03T08:00:00Z","2017-05-03T09:00:00Z","2017-05-03T10:00:00Z"],[1.0,1.6,0.9,1.4,1.3,0.8,1.1,0.9,1.0,1.4,1.6,1.6,1.3,1.0,1.5,0.8,1.0,0.8,1.0,1.0,0.9,1.6,0.9,1.0,1.6],"成都实时计算生产集群Max","-.",1],[["2017-05-02T10:00:00Z","2017-05-02T11:00:00Z","2017-05-02T12:00:00Z","2017-05-02T13:00:00Z","2017-05-02T14:00:00Z","2017-05-02T15:00:00Z","2017-05-02T16:00:00Z","2017-05-02T17:00:00Z","2017-05-02T18:00:00Z","2017-05-02T19:00:00Z","2017-05-02T20:00:00Z","2017-05-02T21:00:00Z","2017-05-02T22:00:00Z","2017-05-02T23:00:00Z","2017-05-03T00:00:00Z","2017-05-03T01:00:00Z","2017-05-03T02:00:00Z","2017-05-03T03:00:00Z","2017-05-03T04:00:00Z","2017-05-03T05:00:00Z","2017-05-03T06:00:00Z","2017-05-03T07:00:00Z","2017-05-03T08:00:00Z","2017-05-03T09:00:00Z","2017-05-03T10:00:00Z"],[0.47907407407407404,0.4896296296296296,0.4844444444444444,0.48759259259259263,0.4838888888888889,0.48277777777777775,0.48407407407407405,0.48148148148148145,0.4807407407407408,0.4838888888888889,0.47833333333333333,0.477037037037037,0.47129629629629627,0.46203703703703697,0.457037037037037,0.44629629629629625,0.43870370370370365,0.44009259259259254,0.4366666666666667,0.44814814814814813,0.43574074074074065,0.4403703703703704,0.44296296296296295,0.45537037037037037,0.47351851851851856],"成都实时计算生产集群Avg","-.",1]],"unit": "percent"}}
mem
{"status": 0,"data": {"unit": "percent","cluster_used": [[["2017-05-02T10:00:00Z","2017-05-02T11:00:00Z","2017-05-02T12:00:00Z","2017-05-02T13:00:00Z","2017-05-02T14:00:00Z","2017-05-02T15:00:00Z","2017-05-02T16:00:00Z","2017-05-02T17:00:00Z","2017-05-02T18:00:00Z","2017-05-02T19:00:00Z","2017-05-02T20:00:00Z","2017-05-02T21:00:00Z","2017-05-02T22:00:00Z","2017-05-02T23:00:00Z","2017-05-03T00:00:00Z","2017-05-03T01:00:00Z","2017-05-03T02:00:00Z","2017-05-03T03:00:00Z","2017-05-03T04:00:00Z","2017-05-03T05:00:00Z","2017-05-03T06:00:00Z","2017-05-03T07:00:00Z","2017-05-03T08:00:00Z","2017-05-03T09:00:00Z","2017-05-03T10:00:00Z"],[41.559843696801806,40.74939119639767,42.464594768453985,39.56493686247834,39.38183851815913,41.83533907312381,42.186431173206515,41.77075746154489,43.15355341349245,40.2560884530201,40.612806301195974,40.17208168770475,39.26844761167942,39.27359007858946,39.3602648820336,40.77614811168014,41.16996122304082,40.48212962102194,39.64807519941649,39.69135922627997,39.93834507490008,39.676415463423425,39.7004160235416,40.424950648192464,43.71515398608337],"成都综合生产集群","-",1],[["2017-05-02T10:00:00Z","2017-05-02T11:00:00Z","2017-05-02T12:00:00Z","2017-05-02T13:00:00Z","2017-05-02T14:00:00Z","2017-05-02T15:00:00Z","2017-05-02T16:00:00Z","2017-05-02T17:00:00Z","2017-05-02T18:00:00Z","2017-05-02T19:00:00Z","2017-05-02T20:00:00Z","2017-05-02T21:00:00Z","2017-05-02T22:00:00Z","2017-05-02T23:00:00Z","2017-05-03T00:00:00Z","2017-05-03T01:00:00Z","2017-05-03T02:00:00Z","2017-05-03T03:00:00Z","2017-05-03T04:00:00Z","2017-05-03T05:00:00Z","2017-05-03T06:00:00Z","2017-05-03T07:00:00Z","2017-05-03T08:00:00Z","2017-05-03T09:00:00Z","2017-05-03T10:00:00Z"],[9.86611183573132,9.904480207624996,9.953193319987527,9.986292592591917,10.011676527432902,10.033484498481942,10.060269443329528,10.092363782382673,10.119958846349563,10.143233123186388,10.16599456851655,10.184254228552158,10.205282648341012,10.223769097598943,10.241142289720106,10.261607349938483,10.276952971915566,10.291465123763087,10.314899568084247,10.336819162428108,10.351877699574668,10.366226262766864,10.38204672910648,10.404104364663143,10.415037111304112],"成都准实时生产集群",":",1],[["2017-05-02T10:00:00Z","2017-05-02T11:00:00Z","2017-05-02T12:00:00Z","2017-05-02T13:00:00Z","2017-05-02T14:00:00Z","2017-05-02T15:00:00Z","2017-05-02T16:00:00Z","2017-05-02T17:00:00Z","2017-05-02T18:00:00Z","2017-05-02T19:00:00Z","2017-05-02T20:00:00Z","2017-05-02T21:00:00Z","2017-05-02T22:00:00Z","2017-05-02T23:00:00Z","2017-05-03T00:00:00Z","2017-05-03T01:00:00Z","2017-05-03T02:00:00Z","2017-05-03T03:00:00Z","2017-05-03T04:00:00Z","2017-05-03T05:00:00Z","2017-05-03T06:00:00Z","2017-05-03T07:00:00Z","2017-05-03T08:00:00Z","2017-05-03T09:00:00Z","2017-05-03T10:00:00Z"],[3.1013511755054584,3.101855899450318,3.1025153858361056,3.103106732211931,3.102225375799645,3.0999502970653414,3.095966717908926,3.0993849941009293,3.1027293102434976,3.103017882983254,3.1027545945193276,3.1048930187268184,3.1052454600736548,3.1054586354672713,3.1070698855602497,3.1062201395536557,3.1061228183718685,3.107513807805786,3.1082041555834894,3.1070364532291586,3.1074032574212325,3.1071100590153216,3.1052709670292558,3.1041326988919438,3.1040742150866016],"成都公共服务集群","--",1],[["2017-05-02T10:00:00Z","2017-05-02T11:00:00Z","2017-05-02T12:00:00Z","2017-05-02T13:00:00Z","2017-05-02T14:00:00Z","2017-05-02T15:00:00Z","2017-05-02T16:00:00Z","2017-05-02T17:00:00Z","2017-05-02T18:00:00Z","2017-05-02T19:00:00Z","2017-05-02T20:00:00Z","2017-05-02T21:00:00Z","2017-05-02T22:00:00Z","2017-05-02T23:00:00Z","2017-05-03T00:00:00Z","2017-05-03T01:00:00Z","2017-05-03T02:00:00Z","2017-05-03T03:00:00Z","2017-05-03T04:00:00Z","2017-05-03T05:00:00Z","2017-05-03T06:00:00Z","2017-05-03T07:00:00Z","2017-05-03T08:00:00Z","2017-05-03T09:00:00Z","2017-05-03T10:00:00Z"],[45.41277042582528,45.41989379416655,45.42122093747018,45.417227530086905,45.42400258453385,45.42591616288012,45.43529152096015,45.432878690074524,45.43503409527535,45.4366135696206,45.4394943710367,45.44152108869965,45.45026128647964,45.452896639683345,45.45568743292489,45.4621267020261,45.461923846942625,45.46279586878825,45.46414451530991,45.46501363557069,45.464187116873696,45.470131148419235,45.475681233587615,45.47919700411408,45.48149010526161],"成都实时计算生产集群","-.",1]]}}
net
{"status": 0,"data": {"unit": "bytes","cluster_used": [[["2017-05-02T10:00:00Z","2017-05-02T11:00:00Z","2017-05-02T12:00:00Z","2017-05-02T13:00:00Z","2017-05-02T14:00:00Z","2017-05-02T15:00:00Z","2017-05-02T16:00:00Z","2017-05-02T17:00:00Z","2017-05-02T18:00:00Z","2017-05-02T19:00:00Z","2017-05-02T20:00:00Z","2017-05-02T21:00:00Z","2017-05-02T22:00:00Z","2017-05-02T23:00:00Z","2017-05-03T00:00:00Z","2017-05-03T01:00:00Z","2017-05-03T02:00:00Z","2017-05-03T03:00:00Z","2017-05-03T04:00:00Z","2017-05-03T05:00:00Z","2017-05-03T06:00:00Z","2017-05-03T07:00:00Z","2017-05-03T08:00:00Z","2017-05-03T09:00:00Z","2017-05-03T10:00:00Z"],[740191106.9591706,732143762.3639017,1224186008.6012604,241129075.90490088,253334651.1863219,590726649.6702555,490179204.7556401,534008137.0566127,9006365452.514193,406317013.7863771,4578381126.880557,3774726781.29547,182529282.4383636,148620102.9592515,141276126.15879005,426812791.06152344,671517948.6560013,1213834049.0434918,133880561.3335966,107433298.17489806,194509740.4016746,121466058.17265344,141218260.32613984,582745614.7321746,1275510360.6271963],"成都综合生产集群","-",1],[["2017-05-02T10:00:00Z","2017-05-02T11:00:00Z","2017-05-02T12:00:00Z","2017-05-02T13:00:00Z","2017-05-02T14:00:00Z","2017-05-02T15:00:00Z","2017-05-02T16:00:00Z","2017-05-02T17:00:00Z","2017-05-02T18:00:00Z","2017-05-02T19:00:00Z","2017-05-02T20:00:00Z","2017-05-02T21:00:00Z","2017-05-02T22:00:00Z","2017-05-02T23:00:00Z","2017-05-03T00:00:00Z","2017-05-03T01:00:00Z","2017-05-03T02:00:00Z","2017-05-03T03:00:00Z","2017-05-03T04:00:00Z","2017-05-03T05:00:00Z","2017-05-03T06:00:00Z","2017-05-03T07:00:00Z","2017-05-03T08:00:00Z","2017-05-03T09:00:00Z","2017-05-03T10:00:00Z"],[24644200.151862096,29280136.238222804,30047306.8714382,30553392.654727235,29663989.85666666,32461749.02974468,31829281.047624804,29235222.17388889,26875146.68072659,26058503.420243893,24562733.368856475,21969234.360399805,18095981.260555554,8650366.330000002,5701471.570555556,5477194.959999999,5571601.788888888,4502953.812777777,3820882.881111112,3991926.75,3432615.6977777774,3971269.0327777774,6161031.252222222,12780610.482669722,24811113.96763854],"成都准实时生产集群",":",1],[["2017-05-02T10:00:00Z","2017-05-02T11:00:00Z","2017-05-02T12:00:00Z","2017-05-02T13:00:00Z","2017-05-02T14:00:00Z","2017-05-02T15:00:00Z","2017-05-02T16:00:00Z","2017-05-02T17:00:00Z","2017-05-02T18:00:00Z","2017-05-02T19:00:00Z","2017-05-02T20:00:00Z","2017-05-02T21:00:00Z","2017-05-02T22:00:00Z","2017-05-02T23:00:00Z","2017-05-03T00:00:00Z","2017-05-03T01:00:00Z","2017-05-03T02:00:00Z","2017-05-03T03:00:00Z","2017-05-03T04:00:00Z","2017-05-03T05:00:00Z","2017-05-03T06:00:00Z","2017-05-03T07:00:00Z","2017-05-03T08:00:00Z","2017-05-03T09:00:00Z","2017-05-03T10:00:00Z"],[5868917.336666667,6805888.212777778,7033584.116666666,7177579.659999999,7019785.335555555,7257586.698333333,7220715.21918737,6662752.977777777,6358251.01611111,5974696.253611112,5614469.3941466,4883432.344076132,3349789.178333334,1514398.851111111,1005678.5925286344,751628.5944990893,683388.0003354326,612623.9516887406,577094.3985633355,601257.7691676699,489821.4087297397,614250.6166666667,1155819.171111111,3080711.452222222,5986306.538728195],"成都公共服务集群","--",1],[["2017-05-02T10:00:00Z","2017-05-02T11:00:00Z","2017-05-02T12:00:00Z","2017-05-02T13:00:00Z","2017-05-02T14:00:00Z","2017-05-02T15:00:00Z","2017-05-02T16:00:00Z","2017-05-02T17:00:00Z","2017-05-02T18:00:00Z","2017-05-02T19:00:00Z","2017-05-02T20:00:00Z","2017-05-02T21:00:00Z","2017-05-02T22:00:00Z","2017-05-02T23:00:00Z","2017-05-03T00:00:00Z","2017-05-03T01:00:00Z","2017-05-03T02:00:00Z","2017-05-03T03:00:00Z","2017-05-03T04:00:00Z","2017-05-03T05:00:00Z","2017-05-03T06:00:00Z","2017-05-03T07:00:00Z","2017-05-03T08:00:00Z","2017-05-03T09:00:00Z","2017-05-03T10:00:00Z"],[2256709.234095427,2343184.355555556,2462284.1481485595,2195248.4630638137,2174596.2414394426,2213417.3536398998,2201958.87471844,2207822.7423259546,2136247.7498547435,2159316.2343708132,2096976.0488087737,2048819.5878801981,2010078.9540248837,1975589.4469444447,1960974.9838657342,1885929.6162300482,1826412.2681440057,1831622.458633648,1786836.9118909575,1863510.0227612609,1784996.215604489,1823078.1324613318,1876538.2913312342,1996154.3453757218,2242649.655],"成都实时计算生产集群","-.",1]]}}
用户接口
用户组列表
请求路径
请求方式
GET
请求参数
无
返回参数
请求参数 请求类型 说明 count int 总数 results String json格式字符串, 具体返回 next String 暂不用 previous String 暂不用
返回示例
{"count": 5,"next": null,"previous": null,"results": [{"id": 1,"url": "http://127.0.0.1:8000/api/users/staffGroups/1","name": "group_1","description": "group_1 test","create_user": "wanghuan","join_date": "2017-04-13T05:59:22.350092Z","staffs": "http://127.0.0.1:8000/api/users/staffGroups/group_1/staffs"},{"id": 2,"url": "http://127.0.0.1:8000/api/users/staffGroups/2","name": "group_2","description": "group_2","create_user": "","join_date": "2017-04-13T05:59:22.355804Z","staffs": "http://127.0.0.1:8000/api/users/staffGroups/group_2/staffs"},{"id": 3,"url": "http://127.0.0.1:8000/api/users/staffGroups/3","name": "group_3","description": "group_3","create_user": "","join_date": "2017-04-13T05:59:22.357126Z","staffs": "http://127.0.0.1:8000/api/users/staffGroups/group_3/staffs"},{"id": 4,"url": "http://127.0.0.1:8000/api/users/staffGroups/4","name": "group_4","description": "group_4","create_user": "","join_date": "2017-04-13T05:59:22.358386Z","staffs": "http://127.0.0.1:8000/api/users/staffGroups/group_4/staffs"},{"id": 5,"url": "http://127.0.0.1:8000/api/users/staffGroups/5","name": "group_add1","description": "group_add1","create_user": "wanghuan","join_date": "2017-04-13T07:36:34.525401Z","staffs": "http://127.0.0.1:8000/api/users/staffGroups/group_add1/staffs"}]}
创建用户组
请求路径
请求方式
POST
请求参数
请求参数 请求类型 说明 name String 用户组名称 description String 用户组描述 create_user String 创建人
查看用户组信息
请求路径
请求方式
GET
请求参数
无
返回参数
请求参数 请求类型 说明 id int 总数 url String name String 用户组名称 description String 用户组描述 create_user String 创建用户 join_date String 创建时间 staffs String 该用户组下用户列表url
返回示例
{"id": 1,"url": "http://127.0.0.1:8000/api/users/staffGroups/1","name": "group_1","description": "group_1 test","create_user": "wanghuan","join_date": "2017-04-13T05:59:22.350092Z","staffs": "http://127.0.0.1:8000/api/users/staffGroups/group_1/staffs"}
查看某个用户组用户列表
请求路径
请求方式
GET
请求参数
无
返回参数
请求参数 请求类型 说明 count int 总数 results String json格式字符串, 具体返回 next String 暂不用 previous String 暂不用
返回示例
{"count": 4,"next": null,"previous": null,"results": [{"id": 1,"group": {"id": 1,"url": "http://127.0.0.1:8000/api/users/staffGroups/1","name": "group_1","description": "group_1 test","create_user": "wanghuan","join_date": "2017-04-13T05:59:22.350092Z","staffs": "http://127.0.0.1:8000/api/users/staffGroups/group_1/staffs"},"name": "Bob","code": "Bob","email": "Bob@example.com","join_date": "2017-04-13T05:59:34.536475Z"},{"id": 5,"group": {"id": 1,"url": "http://127.0.0.1:8000/api/users/staffGroups/1","name": "group_1","description": "group_1 test","create_user": "wanghuan","join_date": "2017-04-13T05:59:22.350092Z","staffs": "http://127.0.0.1:8000/api/users/staffGroups/group_1/staffs"},"name": "123123","code": "123","email": "123123","join_date": "2017-04-13T08:14:43.861935Z"},{"id": 6,"group": {"id": 1,"url": "http://127.0.0.1:8000/api/users/staffGroups/1","name": "group_1","description": "group_1 test","create_user": "wanghuan","join_date": "2017-04-13T05:59:22.350092Z","staffs": "http://127.0.0.1:8000/api/users/staffGroups/group_1/staffs"},"name": "1341","code": "13413","email": "4134134134","join_date": "2017-04-13T08:17:40.189906Z"},{"id": 7,"group": {"id": 1,"url": "http://127.0.0.1:8000/api/users/staffGroups/1","name": "group_1","description": "group_1 test","create_user": "wanghuan","join_date": "2017-04-13T05:59:22.350092Z","staffs": "http://127.0.0.1:8000/api/users/staffGroups/group_1/staffs"},"name": "test1","code": "test","email": "123123","join_date": "2017-04-13T08:51:37.881727Z"}]}
创建看某个用户组用户
请求路径
请求方式
POST
请求参数
请求参数 请求类型 说明 name int 总数 code String 工号 String 邮箱