LogPolicyResultAction

LogPolicyResultAction

class DIRAC.ResourceStatusSystem.PolicySystem.Actions.LogPolicyResultAction.LogPolicyResultAction(name, decisionParams, enforcementResult, singlePolicyResults, clients=None)

Bases: DIRAC.ResourceStatusSystem.PolicySystem.Actions.BaseAction.BaseAction

Action that registers on the database a new entry per policy result in the list singlePolicyResults.

__init__(name, decisionParams, enforcementResult, singlePolicyResults, clients=None)

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

run()

Checks it has the parameters it needs and tries to addOrModify in the database.