(
        self, market_filter: Optional[Collection[InstanceMarket]] = None
    )
return total_market_capacities
Return the total (fulfilled) capacities in the cluster across all resource groups

        :param market_filter: a set of :py:class:`.InstanceMarket` to filter by
        :returns: the total capacity in each of the specified markets
Return the total (fulfilled) capacities in the cluster across all resource groups
Return the total ( fulfilled ) capacities in the cluster across all resource groups
def get_market_capacities(
        self, market_filter: Optional[Collection[InstanceMarket]] = None
    ) -> Mapping[InstanceMarket, float]:
        """ Return the total (fulfilled) capacities in the cluster across all resource groups

        :param market_filter: a set of :py:class:`.InstanceMarket` to filter by
        :returns: the total capacity in each of the specified markets
        """
        total_market_capacities: MutableMapping[InstanceMarket, float] = defaultdict(float)
        for group in self.resource_groups.values():
            for market, capacity in group.market_capacities.items():
                if not market_filter or market in market_filter:
                    total_market_capacities[market] += capacity
        return total_market_capacities
def get_market_capacities ( self , market_filter : Optional [ Collection [ InstanceMarket ] ] = None ) -> Mapping [ InstanceMarket , float ] : total_market_capacities : MutableMapping [ InstanceMarket , float ] = defaultdict ( float ) for group in self . resource_groups . values ( ) : for market , capacity in group . market_capacities . items ( ) : if not market_filter or market in market_filter : total_market_capacities [ market ] += capacity return total_market_capacities