mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 18:20:00 -03:30
Host Metrics List API
This commit is contained in:
committed by
John Westcott IV
parent
bf98f62654
commit
ef4e77d78f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user