(self, instance, counter_id, value)
return value
Given the counter_id, look up for the metrics metadata to check the vsphere
        type of the counter and apply pre-reporting transformation if needed.
Given the counter_id, look up for the metrics metadata to check the vsphere
        type of the counter and apply pre-reporting transformation if needed.
Given the counter_id look up for the metrics metadata to check the vsphere type of the counter and apply pre - reporting transformation if needed .
def _transform_value(self, instance, counter_id, value):
        """Given the counter_id, look up for the metrics metadata to check the vsphere
        type of the counter and apply pre-reporting transformation if needed.
        """
        i_key = self._instance_key(instance)
        try:
            metadata = self.metadata_cache.get_metadata(i_key, counter_id)
            if metadata["unit"] == "percent":
                return float(value) / 100
        except MetadataNotFoundError:
            pass

        # Defaults to return the value without transformation
        return value
def _transform_value ( self , instance , counter_id , value ) : i_key = self . _instance_key ( instance ) try : metadata = self . metadata_cache . get_metadata ( i_key , counter_id ) if metadata [ "unit" ] == "percent" : return float ( value ) / 100 except MetadataNotFoundError : pass # Defaults to return the value without transformation return value