diff --git a/app/config/collections.php b/app/config/collections.php
index 2f630e0ba1..ca8917013f 100644
--- a/app/config/collections.php
+++ b/app/config/collections.php
@@ -1395,6 +1395,15 @@ $collections = [
'required' => false,
'array' => false,
],
+ [
+ '$collection' => Database::SYSTEM_COLLECTION_RULES,
+ 'label' => 'Trigger',
+ 'key' => 'trigger',
+ 'type' => Database::SYSTEM_VAR_TYPE_TEXT,
+ 'default' => '',
+ 'required' => false,
+ 'array' => false,
+ ],
[
'$collection' => Database::SYSTEM_COLLECTION_RULES,
'label' => 'Exit Code',
diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php
index 11c30c4789..aac61d5a03 100644
--- a/app/controllers/api/functions.php
+++ b/app/controllers/api/functions.php
@@ -564,6 +564,7 @@ App::post('/v1/functions/:functionId/executions')
'dateCreated' => time(),
'functionId' => $function->getId(),
'status' => 'waiting', // waiting / processing / completed / failed
+ 'trigger' => 'http', // http / schedule / event
'exitCode' => 0,
'stdout' => '',
'stderr' => '',
@@ -581,7 +582,7 @@ App::post('/v1/functions/:functionId/executions')
'functionId' => $function->getId(),
'executionId' => $execution->getId(),
'functionTag' => $tag->getId(),
- 'functionTrigger' => 'API',
+ 'functionTrigger' => 'http',
]);
}
diff --git a/app/views/console/functions/function.phtml b/app/views/console/functions/function.phtml
index 3367c6d755..71826d6039 100644
--- a/app/views/console/functions/function.phtml
+++ b/app/views/console/functions/function.phtml
@@ -282,9 +282,10 @@ $timeout = $this->getParam('timeout', 900);
@@ -303,6 +304,9 @@ $timeout = $this->getParam('timeout', 900);
+
- Triggered
+ Created
Status
- Runtime
+ Trigger
+ Runtime