l.s.s.i.s.IScriptActivitySet(Interface) : interface documentation

Part of lp.services.scripts.interfaces.scriptactivity View In Hierarchy

No interface docstring
Method recordSuccess Record a successful script run.
Method getLastActivity Get the last activity record for the given script name.
def recordSuccess(name, date_started, date_completed, hostname=None):
Record a successful script run.
ParametersnameThe name of the script that ran successfully.
date_startedThe datetime when the script started.
date_completedThe datetime when the script finished.
hostnameThe name of the host the script ran on. If None, then use the hostname from socket.gethostname.
def getLastActivity(name):
Get the last activity record for the given script name.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.