|
|
@ -114,9 +114,7 @@ class OrgResourceStatisticsCache(OrgRelatedCache):
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|
def compute_total_count_today_active_assets():
|
|
|
|
def compute_total_count_today_active_assets():
|
|
|
|
t = local_zero_hour()
|
|
|
|
t = local_zero_hour()
|
|
|
|
return Session.objects.filter(
|
|
|
|
return Session.objects.filter(date_start__gte=t).values('asset_id').distinct().count()
|
|
|
|
date_start__gte=t, is_success=False
|
|
|
|
|
|
|
|
).values('asset_id').distinct().count()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|
def compute_total_count_today_failed_sessions():
|
|
|
|
def compute_total_count_today_failed_sessions():
|
|
|
|