StorageOccupancy¶
StorageOccupancy records the Storage Elements occupancy over time
- class DIRAC.AccountingSystem.Client.Types.StorageOccupancy.StorageOccupancy¶
Bases:
BaseAccountingType
StorageOccupancy as extension of BaseAccountingType.
It is filled by the RSS Command FreeDiskSpace every time the command is executed (from Agent CacheFeederAgent)
- __init__()¶
constructor.
- checkRecord()¶
To be overwritten by child class
- checkType()¶
Check that everything is defined
- checkValues()¶
Check that all values are defined and valid
- commit()¶
Commit register to server
- delayedCommit()¶
Commit register to the server. Delayed commit allows to speed up the operation as more registers will be sent at once.
- getContents()¶
Get the contents
- getDataTimespan()¶
Get the data timespan for the time. Data older than dataTimespan will be deleted
- getDefinition()¶
Get a tuple containing type definition
- getValue(key)¶
- getValues()¶
Get a tuple containing report values
- registerToServer()¶
Register type in server
- remove()¶
Remove a register from server
- setEndTime(endTime=False)¶
Give a end time for the report By default use now
- setNowAsStartAndEndTime()¶
Set current time as start and end time of the report
- setStartTime(startTime=False)¶
Give a start time for the report By default use now
- setValueByKey(key, value)¶
Add value for key
- setValuesFromDict(dataDict)¶
Set values from key-value dictionary