Appwrite is now available as a DigitalOcean 1-click app! Click to install! 🚀
Docs

Execution Object

Properties

Name Type Description
$id string

Execution ID.

$createdAt string

Execution creation date in ISO 8601 format.

$updatedAt string

Execution upate date in ISO 8601 format.

$permissions string[]

Execution roles.

functionId string

Function ID.

trigger string

The trigger that caused the function to execute. Possible values can be: http, schedule, or event.

status string

The status of the function execution. Possible values can be: waiting, processing, completed, or failed.

statusCode integer

The script status code.

response string

The script response output string. Logs the last 4,000 characters of the execution response output.

stdout string

The script stdout output string. Logs the last 4,000 characters of the execution stdout output. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.

stderr string

The script stderr output string. Logs the last 4,000 characters of the execution stderr output. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.

duration number

The script execution duration in seconds.

Examples

JSON

{
    "$id": "5e5ea5c16897e",
    "$createdAt": "2020-10-15T06:38:00.000+00:00",
    "$updatedAt": "2020-10-15T06:38:00.000+00:00",
    "$permissions": [
        "any"
    ],
    "functionId": "5e5ea6g16897e",
    "trigger": "http",
    "status": "processing",
    "statusCode": 0,
    "response": "",
    "stdout": "",
    "stderr": "",
    "duration": 0.4
}