Mise à jour terminée. Pour connaître les apports de la version 13.8.4 par rapport à notre ancienne version vous pouvez lire les "Release Notes" suivantes :

Commit 4e8ed84d authored by sebastien letort's avatar sebastien letort

more docs about the api metrics view.

parent fccb101a
.. automodule:: api.v1.metrics
.. automodule:: api.v1.views
......@@ -54,10 +54,18 @@ class APIJobView(JobAuthMixin, View):
return JsonResponse({'error': 'Job not found'}, status=404)
# ~ class Metrics(View):
class Metrics(ApiAuthMixin, View):
"""Metrics view provides only a get access."""
def get(self, request, app_id, what):
"""Method used when accessing the Metrics Api.
:param request: the request object.
:param app_id: the id of the app we want metrics from.
:type app_id: integer
:param what: the kind of metrics we want.
:type what: keyword, key of metrics.d_actions
# WARN: here request.user is AnonymousUser, but as been recognised before, in ApiAuthMixin
o_user = get_request_user(request) # IMO doublon avec ApiAuthM
......@@ -6,3 +6,10 @@ metrics.py
.. automodule:: api.v1.metrics
The metrics function are accessed through django Metrics view.
.. autoclass:: api.v1.views.Metrics
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment