X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=juju%2Fmodel.py;h=7622178119efedc846dfa2dc8d2a8d3b58232248;hb=refs%2Ftags%2F0.1.1;hp=4a8bc039f470c5e2feffb0cbd5fa55c49d567cb0;hpb=2f274d7544ca51b8a958fa8d9beb48a471a17d39;p=osm%2FN2VC.git diff --git a/juju/model.py b/juju/model.py index 4a8bc03..7622178 100644 --- a/juju/model.py +++ b/juju/model.py @@ -74,6 +74,14 @@ class ModelObserver(object): await method(delta, old, new, model) async def on_change(self, delta, old, new, model): + """Generic model-change handler. + + :param delta: :class:`juju.client.overrides.Delta` + :param old: :class:`juju.model.ModelEntity` + :param new: :class:`juju.model.ModelEntity` + :param model: :class:`juju.model.Model` + + """ pass @@ -1264,6 +1272,8 @@ class Model(object): :param str \*tags: Tags of entities from which to retrieve metrics. No tags retrieves the metrics of all units in the model. + :return: Dictionary of unit_name:metrics + """ log.debug("Retrieving metrics for %s", ', '.join(tags) if tags else "all units")