【OPM】getInterfaceGraphs API使用补充

【OPM】getInterfaceGraphs API使用补充

目前getInterfaceGraphs API在手册中的示例和响应有些出入:

按示例格式输入,如:
实际得到的响应为:
{"Rx Utilization":[{"x":1688487291,"y":0},{"x":1688488191,"y":0},{"x":1688489097,"y":0},{"x":1688489994,"y":0},{"x":1688490891,"y":0},{"x":1688491796,"y":0},{"x":1688492691,"y":0},{"x":1688493591,"y":0},{"x":1688494491,"y":0},{"x":1688495391,"y":0},{"x":1688496291,"y":0},{"x":1688497191,"y":0},{"x":1688498106,"y":0},{"x":1688499002,"y":0},{"x":1688499905,"y":0},{"x":1688500806,"y":0},{"x":1688501702,"y":0},{"x":1688502602,"y":0},{"x":1688503502,"y":0},{"x":1688504403,"y":0},{"x":1688505302,"y":0},{"x":1688506203,"y":0},{"x":1688507102,"y":0},{"x":1688508016,"y":0},{"x":1688508906,"y":0},{"x":1688509806,"y":0},{"x":1688510706,"y":0},{"x":1688511632,"y":0},{"x":1688512517,"y":0},{"x":1688513417,"y":0},{"x":1688514317,"y":0},{"x":1688515217,"y":0},{"x":1688516119,"y":0},{"x":1688517017,"y":0},{"x":1688517919,"y":0},{"x":1688518835,"y":0},{"x":1688519730,"y":0},{"x":1688520617,"y":0},{"x":1688521517,"y":0.04},{"x":1688522417,"y":0.04},{"x":1688523317,"y":0.03},{"x":1688524219,"y":0.02},{"x":1688525117,"y":0.03},{"x":1688526019,"y":0.04},{"x":1688526917,"y":0.04},{"x":1688527817,"y":0.04},{"x":1688528723,"y":0.03},{"x":1688529617,"y":0.01},{"x":1688530517,"y":0.01},{"x":1688531417,"y":0.02},{"x":1688532317,"y":0.02},{"x":1688533217,"y":0.02}]}
如想获得示例响应,需要加入isFluidic=true,也就是:
可得到响应:
{"interfaceDetails":{"接口别名":"this is a test","所属设备":"ZOHO_H3C_SWITCh","接口索引":"4227626","电路ID":"-","接口描述":"Ethernet1/0/1","接口名":"Ethernet1/0/1"},"displayName":"Rx利用率","consolidatedValues":{"Rx Utilization":{"minCollectionTime":"1688487291023","currVal":"0.02","seriesName":"Rx利用率","exactMaxVal":0.04,"maxCollectionTime":"1688521517225","95thpercVal":"0.005","95thpercentileValue":"0.04","exactMinVal":0,"maxVal":"0.04","minVal":"0.0","95thpercRawVal":"0.005510204081632652","avgVal":"0.01","95thperc":"0.01"}},"seriesNames":["Rx Utilization"],"xyTitles":["时间","使用率(%)"],"graphData":[{"seriesname":"Rx利用率","data":[[1688487291023,0],[1688488191239,0],[1688489097473,0],[1688489994667,0],[1688490891026,0],[1688491796621,0],[1688492691065,0],[1688493591622,0],[1688494491068,0],[1688495391791,0],[1688496291079,0],[1688497191405,0],[1688498106177,0],[1688499002709,0],[1688499905024,0],[1688500806324,0],[1688501702673,0],[1688502602656,0],[1688503502758,0],[1688504403072,0],[1688505302689,0],[1688506203445,0],[1688507102644,0],[1688508016069,0],[1688508906448,0],[1688509806502,0],[1688510706444,0],[1688511632429,0],[1688512517265,0],[1688513417226,0],[1688514317238,0],[1688515217229,0],[1688516119831,0],[1688517017227,0],[1688517919838,0],[1688518835515,0],[1688519730796,0],[1688520617230,0],[1688521517225,0.04],[1688522417260,0.04],[1688523317248,0.03],[1688524219921,0.02],[1688525117231,0.03],[1688526019616,0.04],[1688526917266,0.04],[1688527817251,0.04],[1688528723279,0.03],[1688529617266,0.01],[1688530517246,0.01],[1688531417238,0.02],[1688532317499,0.02],[1688533217756,0.02]]}],"suffix":""}


    • Related Articles

    • SDP SaaS API学习汇总

      DataCenter API Domain URL Accounts Server URL API Endpoint China https://servicedeskplus.cn https://accounts.zoho.com.cn https://servicedeskplus.cn/api/v3/requests 授权领牌/认证代码 - 认证服务器创建的临时领牌,用于客户端认证 访问领牌,执行API操作,时限1小时 刷新领牌,重新获取访问领牌 ...
    • apm/opm 添加监视器 or 设备等常规api

      以apm为例,有些特殊情形下,监视器无法添加,无法删除等,但苦于没有及时有效的sql语句去操作,可以参考以下链接,从而排错,其他操作可查阅具体手册。 https://www.manageengine.cn/products/applications_manager/help/addmonitor-api.html opm也有丰富的api可操作设备,告警,组等供参考。 ...
    • 云版本认证API接口调用过程详解

      云版本认证API接口调用过程详解           云版本API接口调用认证较本地版更为复杂,参考如下文档进行云版本api接口调用。
    • 【OPM】如何查找API密钥

      1,点击右上角齿轮图标 2,点击REST API密钥 复制即可。 注意:注意事项
    • 请求管理API字段详细信息表

      表 属性名 类型 details 描述 id long(Read Only) Id of this request 请求在数据库中存储的唯一标识 subject String Subject of this request 主题 description HTML Desc Description of this request 描述 short_description String A short description of this request 短描述 request_type ...