Page MenuHomeSoftware Heritage

No OneTemporary

diff --git a/swh/web/api/views/stat.py b/swh/web/api/views/stat.py
index e8a3f9c8..4b31a2d9 100644
--- a/swh/web/api/views/stat.py
+++ b/swh/web/api/views/stat.py
@@ -1,53 +1,47 @@
# Copyright (C) 2015-2018 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
from swh.web.common import service
from swh.web.api.apidoc import api_doc
from swh.web.api.apiurls import api_route
@api_route(r'/stat/counters/', 'api-stat-counters')
@api_doc('/stat/counters/', noargs=True)
def api_stats(request):
"""
.. http:get:: /api/1/stat/counters/
Get statistics about the content of the archive.
:>json number content: current number of content objects (aka files) in the archive
:>json number directory: current number of directory objects in the archive
- :>json number directory_entry_dir: current number of directory entries
- pointing to others directories in the archive
- :>json number directory_entry_file: current number of directory entries
- pointing to content objects in the archive
- :>json number directory_entry_rev: current number of directory entries
- pointing to revision objects (e.g. git submodules) in the archive
- :>json number entity: current number of entities (an entity is either
- a **group_of_entities**, a **group_of_persons**, a **project**, a **person**, an **organization**,
- or a **hosting** service) in the archive
:>json number origin: current number of software origins (an origin is a "place" where code
source can be found, e.g. a git repository, a tarball, ...) in the archive
+ :>json number origin_visit: current number of visits on software origins to fill the archive
:>json number person: current number of persons (code source authors or committers)
in the archive
:>json number release: current number of releases objects in the archive
:>json number revision: current number of revision objects (aka commits) in the archive
:>json number skipped_content: current number of content objects (aka files) which where
not inserted in the archive
+ :>json number snapshot: current number of snapshot objects (aka set of named branches)
+ in the archive
:reqheader Accept: the requested response content type,
either ``application/json`` (default) or ``application/yaml``
:resheader Content-Type: this depends on :http:header:`Accept` header of request
**Allowed HTTP Methods:** :http:method:`get`, :http:method:`head`, :http:method:`options`
:statuscode 200: no error
**Example:**
.. parsed-literal::
:swh_web_api:`stat/counters/`
""" # noqa
return service.stat_counters()

File Metadata

Mime Type
text/x-diff
Expires
Fri, Jul 4, 3:24 PM (6 d, 4 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3236117

Event Timeline