0e031e21679f1a75c8ae5797bace16b96ce73175
2 def add_storage(self
, name
, constraints
=None):
3 """Add unit storage dynamically.
5 :param str name: Storage name, as specified by the charm
6 :param str constraints: Comma-separated list of constraints in the
12 def collect_metrics(self
):
13 """Collect metrics on this unit.
25 def get_resources(self
, details
=False):
26 """Return resources for this unit.
28 :param bool details: Include detailed info about resources used by each
34 def resolved(self
, retry
=False):
35 """Mark unit errors resolved.
37 :param bool retry: Re-execute failed hooks
43 """Run command on this unit.
49 """Run action on this unit.
55 """Transfer files to this unit.
60 def set_meter_status(self
):
61 """Set the meter status on this unit.
67 """Execute a command over SSH on this unit.
72 def status_history(self
):
73 """Get status history for this unit.