DataOperation

class DIRAC.AccountingSystem.Client.Types.DataOperation.DataOperation

Bases: DIRAC.AccountingSystem.Client.Types.BaseAccountingType.BaseAccountingType

__init__()

x.__init__(…) initializes x; see help(type(x)) for signature

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