Host Metrics List API

This commit is contained in:
Martin Slemr
2023-02-02 15:17:14 +01:00
committed by John Westcott IV
parent bf98f62654
commit ef4e77d78f
5 changed files with 61 additions and 0 deletions

View File

@@ -1548,6 +1548,13 @@ class HostRelatedSearchMixin(object):
return ret
class HostMetricList(ListAPIView):
always_allow_superuser = False
name = _("Host Metrics List")
model = models.HostMetric
serializer_class = serializers.HostMetricSerializer
class HostList(HostRelatedSearchMixin, ListCreateAPIView):
always_allow_superuser = False
model = models.Host