ranjith
(Ranjith Kumar)
September 23, 2016, 6:44am
1
I was wondering if there’s any way to get the upload and download speeds through the API, instead of NET TX and NET RX. I am using XML RPC to get through opennebula 5.0.2.
I guess it should be possible since sunstone displays the data. Let me know to where is the data is stored or how to get that data?
cmartin
(Carlos Martín)
September 23, 2016, 8:20am
2
Hi,
Unfortunately that data is not stored, the speed is calculated in sunstone from the TX and RX values.
1 Like
ranjith
(Ranjith Kumar)
September 27, 2016, 8:46am
3
Thank you for the reply. I just want to know how they are calculating net upload and download speed from TX and RX values? Is like this: by dividing the TX and RX values by 8
cmartin
(Carlos Martín)
September 29, 2016, 8:56am
4
The relevant code is here:
return false;
}
});
Sunstone.getDialog(CONFIRM_DIALOG_ID).reset();
Sunstone.getDialog(CONFIRM_DIALOG_ID).show();
return false;
});
}
}
function _onShow(context) {
var that = this;
if (OpenNebulaVM.isNICGraphsSupported(that.element)) {
OpenNebulaVM.monitor({
data: {
id: that.element.ID,
monitor: {
monitor_resources : "MONITORING/NETTX,MONITORING/NETRX"
}
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2017, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may */
/* not use this file except in compliance with the License. You may obtain */
/* a copy of the License at */
/* */
/* http://www.apache.org/licenses/LICENSE-2.0 */
/* */
/* Unless required by applicable law or agreed to in writing, software */
/* distributed under the License is distributed on an "AS IS" BASIS, */
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
/* See the License for the specific language governing permissions and */
/* limitations under the License. */
/* -------------------------------------------------------------------------- */
define(function(require) {
/*
DEPENDENCIES
*/
This file has been truncated. show original