Function Compute allows you to use monitoring events as event sources. This topic describes how to use Cloud Monitor to trigger a function of Function Compute. After the configuration is complete, the specified Cloud Monitor event triggers the function. The function is automatically executed based on the custom rule.
If an Elastic Compute Service (ECS) instance is restarted due to system errors, O&M personnel or ECS users may perform verification or manually create a snapshot of the instance. In this example, you can trigger a function in Cloud Monitor to search for disks that are attached to an ECS instance and create snapshots for the disks after the ECS instance is restarted.