def health(self): """ Calculates the health of this stack from its hosts """ healths = [] for component in self.get_components(): healths.append(component.health) return Health.aggregate(healths)
def health(self): return Health.aggregate([m.health for m in self.metadatas])