Simulation events

更新时间:
复制 MD 格式

This topic describes how to use simulation events.

Background

You can create a simulation event based on a primary event. The system automatically copies the fields, variables, and the latest version of each policy from the primary event to the new simulation event. When an API operation is called, the system processes a single request using both the primary event and the simulation event. This allows you to compare the policy execution results of the two events for the same request parameters.

The execution results of a simulation event are for analysis and verification only; they are not sent as a response and do not affect the final decision.

Create a simulation event

  1. On the Event Management page, find the primary event you want to simulate, click Create Simulation Event, and enter a name.

image

  1. By default, a new simulation event is disabled. After you modify the policies for the simulation event, click Enable.

  2. To use new input parameters in a simulation event, you must add them to the primary event before creating the simulation event.

Modify simulation event policies

  1. On the Policy Management page, select the new simulation event to view or edit its associated policies.

  2. Create a policy: When creating a new policy, select the simulation event as the associated event.

  3. Modify a policy: Find the policy you want to modify and click Version > Create New Version. Note: A new policy version is a Draft by default. You must publish it for it to take effect at runtime.

image

Analyze and compare

For more information, see Analysis Center > Simulation Event Analysis.

Activate or disable a simulation event

  1. Activate: After analysis, if the simulation event's results meet your expectations, deploy it by clicking Switch Online. This action overwrites the primary event's policies with those from the simulation event.

image

  1. Disable: To stop the simulation event, click Disable. Once disabled, the simulation event will no longer process incoming requests for the primary event.