@staticmethod
def _get_vhba_value(metric, data):
    """
        function that returns the data from the managed object
        :param metric:
        :param data:
        :return:
        """
    if metric == 'network.vhba.tx.rate':
        return float(float(data.bytes_tx_delta) / 60 * 8 / 1000000000)
    elif metric == 'network.vhba.rx.rate':
        return float(float(data.bytes_rx_delta) / 60 * 8 / 1000000000)
    elif metric == 'network.vhba.rx.drop':
        return float(data.dropped_rx_delta)
    elif metric == 'network.vhba.tx.drop':
        return float(data.dropped_tx_delta)
    elif metric == 'network.vhba.rx.error':
        return float(data.errors_rx_delta)
    elif metric == 'network.vhba.tx.error':
        return float(data.errors_tx_delta)
    else:
        return None
