:param int timeout: Time to wait before command is considered failed
:returns: A :class:`juju.action.Action` instance.
- Returns a tuple containing the stdout, stderr, and return code
- from the command.
-
"""
action = client.ActionFacade()
action.connect(self.connection)
False)
async def get_metrics(self):
+ """Get metrics for the unit.
+
+ :return: Dictionary of metrics for this unit.
+
+ """
metrics = await self.model.get_metrics(self.tag)
return metrics[self.name]