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

« Previous Version 4 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


High Level Stats Summary


Request URI: /fcr:stats

Methods: GET


GET Retrieve summary level repository statistics including:

  • 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:

{ 
           "total.resource.count": 1000,           
           "binary.resource.count": 500, 
           "binary.resource.bytes": 5023498342, 
           "bytes.ingested.day": 1024000,
           "bytes.ingested.week": 1024000,
           "bytes.ingested.month": 1024000,
           "bytes.ingested.year": 1024000,
           "bytes.retrieved.day": 1024000,
           "bytes.retrieved.week": 1024000,
           "bytes.retrieved.month": 1024000,
           "bytes.retrieved.year": 1024000,
   
            ...
}

Status:

200





  • No labels