Esempio n. 1
0
 def statistic_instance_error(self, req, tenant_id, start=None, end=None):
     """
     list all error instance include deleted,
     then statistic for operations.
     """
     success, error = self._statistic_instance_operation(req, tenant_id, start, end)
     error = list_filter.filter_instance_error(req, error)
     error = list_sort.sort_instance_error(req, error)
     ret = {"ErrorInstanceOperation": len(error), "FaultList": error}
     if start is not None:
         ret.update(start=start)
     if end is not None:
         ret.update(end=end)
     return ret