/usr/lib/python2.6/site-packages/novaclient/v2
Edit: /usr/lib/python2.6/site-packages/novaclient/v2/usage.pyc (2327B)
Ñò
=vVc @ sL d Z d d k l Z d e i f d „ ƒ YZ d e i f d „ ƒ YZ d S( s
Usage interface.
iÿÿÿÿ( t baset Usagec B s e Z d Z d „ Z RS( sM
Usage contains information about a tenant's physical resource usage
c C s d S( Ns
( ( t self( ( s> /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/usage.pyt __repr__ s ( t __name__t
__module__t __doc__R ( ( ( s> /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/usage.pyR s t UsageManagerc B s) e Z d Z e Z e d „ Z d „ Z RS( s*
Manage :class:`Usage` resources.
c C s5 | i d | i ƒ | i ƒ t t | ƒ ƒ f d ƒ S( sO
Get usage for all tenants
:param start: :class:`datetime.datetime` Start date
:param end: :class:`datetime.datetime` End date
:param detailed: Whether to include information about each
instance whose usage is part of the report
:rtype: list of :class:`Usage`.
s3 /os-simple-tenant-usage?start=%s&end=%s&detailed=%st
tenant_usages( t _listt isoformatt intt bool( R t startt endt detailed( ( s> /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/usage.pyt list# s
%c C s) | i d | | i ƒ | i ƒ f d ƒ S( sı
Get usage for a specific tenant.
:param tenant_id: Tenant ID to fetch usage for
:param start: :class:`datetime.datetime` Start date
:param end: :class:`datetime.datetime` End date
:rtype: :class:`Usage`
s* /os-simple-tenant-usage/%s?start=%s&end=%st tenant_usage( t _getR
( R t tenant_idR
R ( ( s> /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/usage.pyt get2 s ( R R R R t resource_classt FalseR R ( ( ( s> /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/usage.pyR s N( R t
novaclientR t ResourceR t ManagerWithFindR ( ( ( s> /tmp/pip-build-cD3xZi/python-novaclient/novaclient/v2/usage.pyt s