Applications > Application Attributes > Function Attributes
When you click on a function listed on the Functions tab on the Application Attributes page or click on a function name on any of the cards displayed throughout the Console, the Function Attributes page displays.
The Function Attributes page consists of the following entities:
Upload Tab
The Upload tab on the Function Attributes page allows you to upload an already created WASM file.
If you need to create a file, click the Extension icon to download the EDJX Extension for VS Code and then use Rust or C++ to build a .wasm file.
Policies Tab
The Policies tab on the Function Attributes page allows you to assign or remove the access level for function execution.
The EDJX supported system policies are:
-
Files Full access: Read-write access to the EDJX object storage.
-
Files Read only: Read-only access to the EDJX object storage.
-
KV Full access: Read-write access to the EdjKV.
-
KV Read only: Read-only access to the EdjKV.
EdjKV is the EdjPlatform’s decentralized Key-Value datastore.
Key size is limited to 512 bytes, and value is limited to 512 KB.
Configured policies appear in the list/grid view.
Requests Tab
The Requests tab on the Function Attributes page allows you to search for and filter any function requests.
To view logs for a specific request, hover over the request, and then click the View Logs icon.
You will be redirected to the Logs tab, which displays all system-generated logs for that specific request.
Logs Tab
The Logs tab on the Function Attributes page displays all logs related to the functions within a specific application or specific application request.
You cannot use the Date Selector when you are viewing the Logs tab. You must use the Date range drop-down within the Logs tab so filter logs. |
The Logs tab consists of the following objects.
Object | Description |
---|---|
Search text field |
Allows you to search log IDs. |
Date range drop-down |
The logs only shows a max of 30 days prior to the current date. |
Log Count drop-down |
The tab can display a maximum of 5000 logs. |
Wrap Lines checkbox |
Wraps the lines to disable horizontal scrolling. |
Scroll to Top/Scroll to Bottom buttons |
Allows you to jump to the top or bottom of the logs. |
Download logs button |
Saves a logs.csv file to your local Downloads folder. |
Activity Tab
The Activity tab on the Function Attributes page allows you to view all actions performed across one function.
Click any of the actions to view the corresponding Details fly-in window.
The information in this window is read-only.
The Fly-in window displays the following objects.
Object | Description |
---|---|
Name with type |
Name of Function. |
Status |
The status of an action: successful (green) or unsuccessful (red). |
Activity |
Updated, Deleted, Created, or Deployed. |
Trigger |
Displays the function trigger. |
Timeout |
The timeout value set for the function. |
Memory Allocated |
The memory allocated, in bytes, for the function. |
Runtime |
The runtime of the function. |
Language |
The code language of the function. |
Policies |
The policy IDs. |
Actor Name |
User who initiated the activity. |
Actor ID |
System-generated identification for the user. |
Resource ID |
System-generated identification for the function. |
Function Attributes Panel and Summary Cards
The Function Attributes panel consists of the following objects.
The Save button becomes active when there are changes to MEMORY ALLOCATED or TIMEOUT.
Object | Description |
---|---|
TRIGGER |
Displays the function trigger. |
NAME |
The name of the function. |
URL |
Allows you to copy the URL of the deployed function. |
RUNTIME |
The runtime of the function. |
LANGUAGE |
The code language of the function. |
MEMORY ALLOCATED |
The memory allocated, in bytes, to the function. |
TIMEOUT |
The timeout value set for the function. |
Displays the number of HTTP requests. |