(self, resource_name: str)
return used / total if total else 0
Get the overall proportion of the given resource that is in use.

        :param resource_name: a resource recognized by Clusterman (e.g. 'cpus', 'mem', 'disk')
        :returns: the percentage allocated for the specified resource
Get the overall proportion of the given resource that is in use.
Get the overall proportion of the given resource that is in use .
def get_percent_resource_allocation(self, resource_name: str) -> float:
        """Get the overall proportion of the given resource that is in use.

        :param resource_name: a resource recognized by Clusterman (e.g. 'cpus', 'mem', 'disk')
        :returns: the percentage allocated for the specified resource
        """
        total = self.get_resource_total(resource_name)
        used = self.get_resource_allocation(resource_name)
        return used / total if total else 0
def get_percent_resource_allocation ( self , resource_name : str ) -> float : total = self . get_resource_total ( resource_name ) used = self . get_resource_allocation ( resource_name ) return used / total if total else 0