- Print
- PDF
Trigger
- Print
- PDF
Available in VPC
In the Trigger menu, you can create and manage triggers provided by Cloud Functions. You can also run the created triggers and monitor the result with graphs and tables.
The following describes how to use the Trigger screen, how to view trigger information, and how to create, edit, or delete triggers, as well as how to monitor the execution result for each trigger. For more information on how to execute created triggers, see Running action or trigger.
Trigger screen
The basics of using Trigger are as follows:
Field | Description |
---|---|
① Menu name | Name of the menu currently being viewed, number of triggers created |
② Basic features | Creating triggers, viewing Cloud Functions features and pricing plans, refreshing Trigger screen |
③ Trigger list | List of created triggers |
④ View and set trigger information | Viewing details of the selected trigger and additional setup |
View trigger list
Follow these steps to view your trigger list.
- From the Region menu on the NAVER Cloud Platform console, click and select the region you're using.
- From the Platform menu, click and select VPC.
- Click Services > Compute > Cloud Functions in order.
- Click the Trigger menu.
- Check the trigger list created in Triggers.
- : triggers connected with actions
- : triggers not connected with actions
- Click the trigger to view the desired information’s details.
- Click the Basic information tab menu to view necessary information.
- Basic trigger information
- Name: name of trigger
- Description: additional information on trigger
- Type: type of trigger
- Run options: additional settings related to running the trigger
- External connection address: view information of the URL that allows the trigger to be called remotely
- URL: information for the created external connection URL
- Deployment stage: information on the deployed stage
- Call method: request format supported for the trigger type (GET, POST, PUT, DELETE, and so on)
- [Copy] button: click to copy the URL and use it
- List of connected actions
- [Connect action] button: for more information, see Action
- [Disconnect action] button: for more information, see Action
- Action name: name of the connected action
- Action type: runtime information of the connected action
- Action description: additional information on the action connected to the trigger
- [Move] button: click to go to the basic information page of the connected action
- Basic trigger information
You can search for a desired trigger by entering search keywords in Triggers and then clicking the magnifying glass icon.
Trigger monitoring
Follow these steps to monitor results of triggers run during a viewing period and their details.
- From the Region menu on the NAVER Cloud Platform console, click and select the region you're using.
- From the Platform menu, click and select VPC.
- Click Services > Compute > Cloud Functions in order.
- Click the Trigger menu.
- Click the trigger you want to monitor in Triggers.
- Click the Monitoring tab menu.
- Click and select the period and base time you want to view.
- [Refresh] button: click to update and see the latest search result
- Check the search results.
- Graph
- Status: ratio of succeeded and failed actions during the viewing period
- Trigger call: number of trigger calls by time during the viewing period
- Table
- ID: unique ID for the trigger execution result
- Status: whether the trigger was successfully executed or not
- Start time: time when the trigger execution started
- View more: click the [View] button to see details of the execution result
- Graph
- Enter search keywords with the execution result as the filter to search for the relevant content.
- You can monitor the execution results of all the actions and triggers run during the viewing period in Dashboard. For more information on how to use Dashboard, see Dashboard.
Create triggers
Follow these steps to create a trigger.
- Access NAVER Cloud Platform console.
- From the Region menu, click and select the region you're using.
- From the Platform menu, click and select VPC.
- Click Services > Compute > Cloud Functions in order.
- Click the Trigger menu.
- Click the [Create trigger] button.
- Click and select a trigger to create from Select trigger type's Trigger type.
- Set up the content of the trigger to create.
- Basic trigger information: enter the trigger name and description, write default parameter code to be used in the trigger
- Generate external connection address: if the trigger type to be created is Basic or GitHub, configure the trigger for remote execution
- Set information for each trigger type to be created: depending on the type of trigger to be created, set up additional information necessary for trigger execution
- Connection information for each trigger type to be created: depending on the type of trigger to be created, set up connection information necessary for trigger execution
- Click the [Save and connect action] button.
- In the Packages/Actions menu of Connect action, click the action to be connected.
- Click the [Save] button.
You can also create a trigger without setting the action to be connected in Step 10.
Basic trigger information
Set up basic information required for creating a trigger. Descriptions of each item in Basic trigger information are as follows:
Name: enter the trigger's name by combining upper and lowercase letters, numbers, and special characters "_" and "-". However, a hyphen (-) can't be used as the first letter. The name must be unique and not a duplicate of another resource (package, action, trigger) name
Description: enter the description of the trigger to create
Default parameter: you can enter a default parameter in JSON format which can be applied to actions by default rather than delivering a parameter every time an action is run. The default parameters of an action have a lower priority compared to trigger parameters and runtime parameters delivered at a trigger execution time.
The following is an example code of default parameters in JSON format.
{
"name": "Ncloud",
"place": "Cloud Function"
}
Note that you cannot edit the trigger's name and type later.
Create external connection address
Set up an external connection address using NAVER Cloud Platform's API Gateway to enable remote execution of triggers. For more information on setup, see Create external connection address in Running action or trigger.
Set information for each trigger type to be created
Depending on the type of trigger to be created, set up additional information necessary for trigger execution. For more information on additional information setup, see the guide for each specific trigger type.
Connection information for each trigger type to be created
Depending on the type of trigger to be created, set up connection information necessary for trigger execution. For more information on connection information setup, see the guide for each specific trigger type.
Edit trigger
You can edit everything except the trigger's name and type. Follow these steps to edit them:
- From the Region menu on the NAVER Cloud Platform console, click and select the region you're using.
- From the Platform menu, click and select VPC.
- Click Services > Compute > Cloud Functions in order.
- Click the Trigger menu.
- Click the trigger you want to edit in Triggers.
- Click the Basic information tab menu and then click the [Edit] button.
- Edit the necessary information.
- Click the [Save] button.
Delete trigger
You can delete a trigger. If you delete the trigger, the resource and stage information of the external connection address connected to the trigger are deleted as well.
Please note that the deleted trigger cannot be restored. Follow these steps to delete a trigger.
- From the Region menu on the NAVER Cloud Platform console, click and select the region you're using.
- From the Platform menu, click and select VPC.
- Click Services > Compute > Cloud Functions in order.
- Click the Trigger menu.
- Click the trigger you want to delete in Triggers.
- Click the Basic information tab menu and then click the [Delete] button.
- Click the [Delete] button.