Exemple #1
0
    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)
Exemple #2
0
 def health(self):
     return Health.aggregate([m.health for m in self.metadatas])