{% extends "victorinterface/base.html"%} {% block css %} {{ block.super }} {% endblock css %} {% block sub_title %} {{ block.super }}

Victor Json Interface Documentation

{% endblock sub_title %} {% block body_content %} {{block.super}}
accessedBlocksStat
Method GET
Description Return a JSON with Sites and the list of blocks accessed in the last 5 weeks, with the corresponding statistics.
Arguments SiteName (e.g. T2_IT_Pisa or T2_IT_%)
tstart (default: 30 days ago)
tstop (default: today)
Examples 1. Retrieve the list for all the sites: accessedBlocksStat/?sitename=T%
2. Retrieve the list for a given site (e.g. T2_IT_Pisa): accessedBlocksStat/?sitename=T2_IT_Pisa
3. Retrieve the list for sites satisfying a regex (e.g. T2_UK_%) accessedBlocksStat/?sitename=T2_UK_%
popdbcombine
Method GET
Description Combines the information of the block popularity for a given site with the PhEDEx list of blocks in that site. The popularity of each block is obtained using the API accessedBlocksStat, and reflects the same time range.
Arguments SiteName (e.g. T2_IT_Pisa)
tstart (default: 30 days ago)
tstop (default: today)
Examples 1. Retrieve the list for a given site (e.g. T2_IT_Pisa): popdbcombine/?sitename=T2_IT_Pisa
2. Retrieve the list for a given site (e.g. T2_IT_Pisa) in a specified time window: popdbcombine/?sitename=T2_IT_Pisa&tstart=2012-02-10&tstop=2012-02-11
accessedBlocksStatLastAcc
Method GET
Description Return a JSON with Sites and the list of blocks with the number of days since the last access.
Arguments SiteName (e.g. T2_IT_Pisa or T2_IT_%)
tstart (default: 30 days ago)
tstop (default: today)
Examples 1. Retrieve the list for all the sites: accessedBlocksStatLastAcc/?sitename=T%
2. Retrieve the list for a given site (e.g. T2_IT_Pisa): accessedBlocksStatLastAcc/?sitename=T2_IT_Pisa
3. Retrieve the list for sites satisfying a regex (e.g. T2_UK_%) accessedBlocksStatLastAcc/?sitename=T2_UK_%
popdbcombineLastAcc
Method GET
Description Combines the information of the block last access for a given site with the PhEDEx list of blocks in that site. The number of days since last access of each block is obtained using the API accessedBlocksStatLastAcc. In case of missing block information from accessedBlocksStatLastAcc API (block hasn't been accessed since the start of Popularity's record), the value of lastdayacc is set to 999.
Arguments SiteName (e.g. T2_IT_Pisa)
tstart (default: 30 days ago)
tstop (default: today)
Examples 1. Retrieve the list for a given site (e.g. T2_IT_Pisa): popdbcombineLastAcc/?sitename=T2_IT_Pisa
2. Retrieve the list for a given site (e.g. T2_IT_Pisa) in a specified time window: popdbcombineLastAcc/?sitename=T2_IT_Pisa&tstart=2012-02-10&tstop=2012-02-11
accessedDirsStat
Method GET
Description Returns a JSON with the Site and the list of accessed directories under a certain top-level dir with corresponding access statistics (calculated since the beginnging of time).
Arguments SiteName (e.g. T2_CH_CERN) - name of the site for which to retrieve statistics. Mandatory, supports % wildcard.
TopDir (e.g. /store/group/alca_global) - name of the top-level LFN dir under which to retrieve statistics. Mandatory.
Output {SiteName: {DirName: {READMBYTES, LASTDAY, FIRSTDAY, NACC}}
SiteName - name of the site
DirName - name of each subdirectory under TopDir with non-zero access statistics
READMBYTES - total amount of data read from DirName, in MB
LASTDAY - most recent access time of a file in DirName, in seconds since epoch
FIRSTDAY - most remote access time of a file in DirName, in seconds since epoch
NACC - total number of accesses for all files in DirName
Examples 1. Retrieve the list for a given site (e.g. T2_CH_CERN) under a given dir: accessedDirsStat?sitename=T2_CH_CERN&topdir=/store/group/alca_global
{% endblock body_content%}