Properties
NAME | TYPE | DESCRIPTION |
$id | string | Function ID. |
$createdAt | integer | Function creation date in Unix timestamp. |
$updatedAt | integer | Function update date in Unix timestamp. |
execute | array | Execution permissions. |
name | string | Function name. |
status | string | Function status. Possible values: `disabled`, `enabled` |
runtime | string | Function execution runtime. |
deployment | string | Function's active deployment ID. |
vars | object | Function environment variables. |
events | array | 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. |
Example
JSON
{
"$id": "5e5ea5c16897e",
"$createdAt": 1592981250,
"$updatedAt": 1592981250,
"execute": "role:member",
"name": "My Function",
"status": "enabled",
"runtime": "python-3.8",
"deployment": "5e5ea5c16897e",
"vars": {
"key": "value"
},
"events": "account.create",
"schedule": "5 4 * * *",
"scheduleNext": 1592981292,
"schedulePrevious": 1592981237,
"timeout": 1592981237
}
JSON
{
"_id": "5e5ea5c16897e",
"_createdAt": 1592981250,
"_updatedAt": 1592981250,
"execute": "role:member",
"name": "My Function",
"status": "enabled",
"runtime": "python-3.8",
"deployment": "5e5ea5c16897e",
"vars": {
"key": "value"
},
"events": "account.create",
"schedule": "5 4 * * *",
"scheduleNext": 1592981292,
"schedulePrevious": 1592981237,
"timeout": 1592981237
}