This article provides information on creating, deleting, testing, and monitoring functions.
In this article:
Follow these steps to create a function:
Instructions for adding an authentication varying depending on the service provider. For more information, see Adding an Authentication to a Function.
To delete a function from the code editor, follow these steps:
When you execute a function in the Test tab, the test payload shown is sent to the function. You can get test data from your website and save it to use as a test payload. For more information on getting test data from your website, see Writing Functions.
Use the following steps to test a function:
You can save a maximum of ten test payloads for testing a function. For information on getting test data from your website to use as a test payload, see Writing Functions.
Use the following steps to save a test payload:
You may need to delete a test payload if you have already saved the maximum of ten test payloads, and need to save another. Follow these steps to delete a test payload:
Use caution when deleting saved test payloads. There is no confirmation dialog.
After you have set the status of a function to On, you can view the following statistics about the function execution:
You can view statistics for these time frames:
Follow these steps to view function statistics:
Log files contain messages from the function, as well as any errors that occurred during execution. Use the following steps to see log files for the past 24 hours.
You can export logs for the following time frames:
Use the following steps to export logs:
There is a short delay while the logs are processed. Exported logs are stored for seven days after the export.
When the exported logs are ready to download, a badge is displayed on the Logs tab to that indicates the number of log files available for download, as shown below.
The following message is also displayed on the Functions Overview page:
Use the following steps to view the list of exported logs and download log files: