Skip to content

Commit

Permalink
Add the number of cached events
Browse files Browse the repository at this point in the history
  • Loading branch information
U039b committed Sep 21, 2024
1 parent deaa0b2 commit 4f690a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions threatr/core/api/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def list(self, _):
for stat in Stat.get_all()
],
'cached_entities': Entity.objects.count(),
'cached_events': Event.objects.count(),
'cached_relations': EntityRelation.objects.count()
}
return JsonResponse(status_data, status=status.HTTP_200_OK, safe=False)
Expand Down

0 comments on commit 4f690a9

Please sign in to comment.