We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb2cec0 commit 97faea1Copy full SHA for 97faea1
caso/extract/base.py
@@ -100,3 +100,15 @@ def _get_keystone_users(self, ks_client):
100
101
def vm_status(self, status):
102
return openstack_vm_statuses.get(status.lower(), 'unknown')
103
+
104
+ @abc.abstractmethod
105
+ def extract_for_tenant(self, tenant, extract_from):
106
+ """Extract records for a tenant from given date.
107
108
+ :param tenant: Tenant to extract records for.
109
+ :param extract_from: datetime.datetime object indicating the date to
110
+ extract records from
111
+ :returns: A dictionary of {"server_id": caso.record.Record"}
112
113
+ This method should be overriden in a subclass.
114
+ """
0 commit comments