from . import model
from .client import client
+ from .placement import parse as parse_placement
log = logging.getLogger(__name__)
"""
return self.data['status']['message']
+ @property
+ def tag(self):
+ return 'application-%s' % self.name
+
async def add_relation(self, local_relation, remote_relation):
"""Add a relation to another application.
result = await app_facade.AddUnits(
application=self.name,
- placement=to,
+ placement=[parse_placement(to)],
num_units=count,
)
"""
pass
+
+ async def get_metrics(self):
+ return await self.model.get_metrics(self.tag)