Current Release

This documentation covers the current version of Fedora. Looking for another version? See all documentation.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Overview

The statistics API provides summary information relating to the contents and usage of the repository and its resources.  This feature is currently under development.


RESTful API


Summary


High Level Stats Summary


Request URI: /fcr:stats

Methods: GET


GET Retrieve summary level repository statistics including:

  • total resource count, 
  • binary resource count,
  • total  binary resource bytes,
  • bytes ingested in last day, week, month, year
  • bytes retrieved in the last day week, month, year

Request Headers:

N/A

Example:

curl   http://localhost:8080/rest/fcr:stats

Response:

{

   "head": { 
           "total.resource.count": 1000,           "binary.resource.count": 500, 
           "binary.resource.bytes": 5023498342, 
           ...
    }

}

Status:

200





  • No labels