Function Object
Properties
Name | Type | Description |
$id | string | Function ID. |
execute | string[] | Execution permissions. |
name | string | Function name. |
dateCreated | integer | Function creation date in Unix timestamp. |
dateUpdated | integer | Function update date in Unix timestamp. |
status | string | Function status. Possible values: |
runtime | string | Function execution runtime. |
deployment | string | Function's active deployment ID. |
vars | object | Function environment variables. |
events | string[] | Function trigger events. |
schedule | string | Function execution schedult in CRON format. |
scheduleNext | integer | Function next scheduled execution date in Unix timestamp. |
schedulePrevious | integer | Function next scheduled execution date in Unix timestamp. |
timeout | integer | Function execution timeout in seconds. |
Examples
JSON
{
"$id": "5e5ea5c16897e",
"execute": [
"role:member"
],
"name": "My Function",
"dateCreated": 1592981250,
"dateUpdated": 1592981257,
"status": "enabled",
"runtime": "python-3.8",
"deployment": "5e5ea5c16897e",
"vars": {
"key": "value"
},
"events": [
"account.create"
],
"schedule": "5 4 * * *",
"scheduleNext": 1592981292,
"schedulePrevious": 1592981237,
"timeout": 1592981237
}