LogStatusAction

LogStatusAction

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

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

Action that registers on the database a new entry on the <element>Status table. It adds or modifies if the record exists on the table.

__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.