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 :
https://about.gitlab.com/releases/2021/02/11/security-release-gitlab-13-8-4-released/
https://about.gitlab.com/releases/2021/02/05/gitlab-13-8-3-released/

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

more docs about the api metrics view.

parent fccb101a
"""
.. automodule:: api.v1.metrics
:members:
.. automodule:: api.v1.views
:members:
"""
......@@ -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
try:
o_user = get_request_user(request) # IMO doublon avec ApiAuthM
......
......@@ -6,3 +6,10 @@ metrics.py
.. automodule:: api.v1.metrics
:members:
Accessories
===========
The metrics function are accessed through django Metrics view.
.. autoclass:: api.v1.views.Metrics
:members:
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