Event trigger mode
This tutorial uses graded inspections for cloud product alert events as an example. It guides you through creating a Mission, configuring event trigger rules, and viewing inspection reports.
What you'll accomplish
After you complete this quick start, you can:
Create a Mission that is automatically triggered by CloudMonitor 2.0 events and lets a digital employee plan and execute work autonomously.
Route events to separate Tasks for independent analysis based on event severity.
View automatically generated Task Reports and structured analysis findings.
Prerequisites
Before you begin, complete the following preparations:
Complete Getting started with Intelligent Conversation to learn basic STAROps operations, including configuring permissions and creating digital employees.
Configure permissions. If you configured permissions while completing the Intelligent Conversation quick start, skip this step. Otherwise, configure STAROps permissions for the current RAM user. For more information, see Step 1: Configure RAM user permissions.
Have an available digital employee. You can use either a built-in employee, which is available without creation, or a custom digital employee. If you have not created a digital employee, see Create a digital employee.
About RAM role permissions
Built-in employees use the RAM user permissions to run Intelligent Conversations and Missions. No additional RAM role configuration is required.
Custom digital employees use the
AliyunServiceRoleForSTAROpsservice role by default. This role has permission to access CloudMonitor and Simple Log Service data. If you use a custom RAM role, configure the required data-read permissions for that role. For more information, see Configure permissions.
Notes
This tutorial uses CloudMonitor 2.0 event subscriptions. The workspace must have alert events from the target cloud products and related observability data.
If your environment does not yet have observability data or alert events, first follow the basic workflow in Experience Missions directly.
This tutorial uses the core concepts of Mission, Task, and execution Blueprint. For more information, see Core concepts.
Important: Select the workspace where the events are located
Event triggering is based on CloudMonitor 2.0 event subscriptions. When creating a Mission, you must specify the CloudMonitor 2.0 workspace where the events are located. Otherwise, the Mission cannot subscribe to or receive the target events.
To identify the workspace:
Log on to the CloudMonitor 2.0 console.
In the left-side navigation pane, click Workspace.
In the workspace list, identify the target workspace name.
For example, if alert events are in the prod-workspace workspace, specify that the Mission applies to alert events in the prod-workspace workspace when you describe the objective.
Step 1: Create a Mission
Log on to the STAROps console.
In the left-side navigation pane, click Digital Employees, select a digital employee, and open its details page.
In the left-side navigation pane, click Missions to open the Mission management page.
Optionally, select an AI model at the bottom of the dialog box. Auto mode is selected by default. To select a different model, see Select a model.
Open the creation page:
If no Mission exists, the dialog box is displayed by default. Continue with step 6.
If Missions already exist, click + New Mission in the upper-right corner of the page.
Select a creation method:
Quick template: Select a template card to start creating a Mission.
Describe in the dialog box: Enter your O&M objective in the dialog box.
Expected result: The Mission creation page opens and displays the dialog box.
Step 2: Describe your objective
Use natural language in the dialog box to describe the event source and your O&M objective. For a cloud product alert event graded inspection, enter the following:
I need to create an event-triggered inspection task. Analyze events of different severity levels independently. I am interested in alert events from various cloud products in the prod-workspace workspace.
1. For high-risk alert events, perform an in-depth root cause analysis.
2. For non-high-risk alerts, assess the risk and determine whether manual intervention is required.After you enter the objective, the digital employee performs intent alignment by analyzing the objective, asking follow-up questions, and confirming its understanding. Provide the requested details until you agree on the objective.
The more specific the objective, the more accurate the AI-generated execution Blueprint. Include the following elements when you describe the objective:
Element | Description | Example |
What to do | Task type and objective | Event-triggered alert inspection |
Event source | Workspace and data source that receive events | Alert events from various cloud products in the |
Task breakdown | Separate Tasks to run for events | High-risk alert analysis Task and non-high-risk alert analysis Task |
Scope | Data scope handled by each Task | Send CRITICAL and WARNING events to high-risk analysis and INFO events to general alert assessment |
Output format | Artifact requirements | An analysis report sent to a specified email address |
Constraints | Special restrictions | Defer execution on weekends and statutory holidays |
Focus areas | Analysis dimensions to prioritize | Root cause analysis for high-risk issues and before-and-after comparisons |
Other scenario examples
Scenario 1: ECS instance alert inspection
Inspect ECS instance alert events in the prod-workspace workspace.
1. For alerts about abnormal system status or CPU utilization above 90%, perform an in-depth root cause analysis and provide remediation recommendations.
2. For alerts about disk utilization above 80%, assess whether capacity expansion is required.Scenario 2: RDS database alert inspection
Inspect RDS database alert events in the prod-workspace workspace.
1. For alerts about connection counts exceeding a threshold or increased slow queries, analyze performance bottlenecks.
2. For primary-secondary switchovers or backup failures, analyze the cause and provide recovery recommendations.Expected result: The digital employee begins intent alignment and asks follow-up questions.
Step 3: Confirm the execution Blueprint
After intent alignment is complete, the digital employee automatically generates an execution Blueprint that includes the following information:
Task list: The specific execution units into which the Mission is divided, such as a high-risk alert analysis Task and a non-high-risk alert analysis Task.
Scheduling method: An event trigger or a manual trigger. For example, a Task can be triggered when a CRITICAL alert occurs in the
prod-workspaceworkspace.Execution strategy: The data query scope, analysis dimensions, and report format. For example, query alert-event details, analyze root causes, and generate a Markdown report.
To confirm the Blueprint:
Read the Blueprint and verify that the Task list, event-subscription workspace, event-severity classification, and execution strategy meet your requirements.
If you need to make changes, enter them in the dialog box. For example, enter "Include INFO alerts in high-risk analysis." The AI updates the Blueprint.
When the Blueprint is correct, reply with "Confirm" or "Start execution" in the dialog box to start the Mission.
Expected result: The Mission starts and its status is Active.
Step 4: View the inspection report
After the Mission starts, the digital employee automatically analyzes events that occur in the workspace. When execution is complete, view the inspection report:
On the Mission management page, select the target Mission to open its details page.
Click the Report tab to view the generated Task Reports.
Click a report to view its details, including the execution summary, key findings, and verification conclusions.
Expected result: The Task Report list is displayed, and you can select a report to view its details.
To view the digital employee's reasoning process and tool-calling details, switch to the Execution tab next to the Report tab to view the complete output stream.
Event-triggered Task execution normally takes 5 to 10 minutes. If no report is generated after 30 minutes, check the Mission status, connector status, and event-subscription configuration.
Learn more
For more advanced Mission capabilities, see Missions.