Skip to main content

Script Log Service

The script log resource records each run of a script, or of a function in a script, with its status and log. See Running in the Script Manager.

Script Log REST API​

The Script Log REST API is accessed through the following URL:

https://api.opendatadsl.com/api/scriptlog
MethodPathExampleDescription
GETGet the build information for this service
GET{release}v1List script runs (100 at a time)
GET{release}/{key}v1/6721f0c2a4b9e85d3c0f1a77Retrieve a script run
DELETE{release}/{key}v1/6721f0c2a4b9e85d3c0f1a77Delete a log entry
DELETE{release}?_bulk=true&_filter=...v1?_bulk=true&_filter={"status":"success"}Delete the log entries that match the filter

Automations can be set on script runs with the create action.

Entities​

Script run​

NameDescriptionType
scriptThe script idString
scriptVersionThe version of the script that ranInteger
scriptTypeThe script language, for example odsl or javascriptString
functionThe function that was run, if anyString
regionThe region that was run, if any, and its first line in regionLineString
statussuccess, warning or failedString
messageA summary of the run, or the errorString
triggerWhat ran the scriptString
logThe log messagesString[]
timestampWhen the script ranDateTime
invocationIdThe request that ran the scriptString
rootInvocationIdThe request that started the chain of runs, if this run was started by anotherString