WLCGAccountingHTTPJson

Defines the plugin to take storage space information given by WLCG Accounting Json https://twiki.cern.ch/twiki/bin/view/LCG/AccountingTaskForce#Storage_Space_Accounting https://twiki.cern.ch/twiki/pub/LCG/AccountingTaskForce/storage_service_v4.txt https://docs.google.com/document/d/1yzCvKpxsbcQC5K9MyvXc-vBF1HGPBk4vhjw3MEXoXf8

When this is used, the OccupancyLFN has to be the full HTTP(s) URL

class DIRAC.Resources.Storage.OccupancyPlugins.WLCGAccountingHTTPJson.WLCGAccountingHTTPJson(se)

Bases: DIRAC.Resources.Storage.OccupancyPlugins.WLCGAccountingJson.WLCGAccountingJson

class WLCGAccountingHTTPJson

Occupancy plugin to return the space information given by WLCG HTTP Accounting Json

__init__(se)

c’tor

Parameters

se – reference to the StorageElement object from which we are called

getOccupancy(**kwargs)

Returns the space information given by WLCG Accouting Json

Returns

S_OK with dict (keys: SpaceReservation, Total, Free)