简体   繁体   English

SoftLayer Api:如何获取当前消耗的带宽数据包流量数据?

[英]SoftLayer Api: How to get the currently consume of bandwidth packet traffic data?

I have a sl-vm which pay mode is monthly. 我有一个SL-VM,每月付款方式。 I have buy it a bandwidth packet 250G. 我已经购买了一个带宽250G的数据包。 The sl website shows this vm's bandwidth usage is 34.18MB, as shown in flowing Fig: sl网站显示该虚拟机的带宽使用为34.18MB,如下图所示: 在此处输入图片说明

While, I use Softlayer_Virtual_Guest:getBandwidthTotal to get this vm's bandwith and get the result 45500302 which is not equals to 34.18MB. 同时,我使用Softlayer_Virtual_Guest:getBandwidthTotal获取此虚拟机的带宽并获取结果45500302,该值不等于34.18MB。

Q1: Which bandwidth usage data is the real comsumption? Q1:真正的带宽消耗数据是什么? Q2: If the api I used is not correct, please show me the connect one. 问题2:如果我使用的api不正确,请向我显示连接之一。 Regard~ 谢谢〜

Please use the “IEEE notation: kilobyte = 1000 bytes”, it means that you need to do the following: 45500302/1000/1000 =45.5 . 请使用“ IEEE表示法:千字节= 1000字节”,这意味着您需要执行以下操作: 45500302/1000/1000 =45.5 There are some variations between UI and API values. UI和API值之间存在一些差异。

You can use this online tool: 您可以使用此在线工具:

http://www.matisse.net/bitcalc/?input_amount=45500302&input_units=bytes&notation=ieee http://www.matisse.net/bitcalc/?input_amount=45500302&input_units=bytes&notation=ieee

References: 参考文献:

Projected Data for Bandwidth in Softlayer 软层中带宽的投影数据

Bandwidth summary per server 每台服务器的带宽摘要

SoftLayer REST API get Bandwidth Data By Date SoftLayer REST API按日期获取带宽数据

Bandwidth summary per server 每台服务器的带宽摘要

I hope this information help you. 希望这些信息对您有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM