Scheduled Mission Trigger

Updated at:

Use this tutorial to create a scheduled Mission for a daily Kubernetes cluster inspection and view its inspection report. The tutorial takes approximately 15 to 20 minutes.

What you'll accomplish

  • Create a Mission and let the Digital Employee autonomously plan and execute it.

  • View the automatically generated Task Report and structured analysis findings.

Before you begin

  • Complete Getting started with Intelligent Conversations to understand the basic STAROps operations. If you have already configured RAM user permissions, skip that preparation step. Otherwise, follow Step 1: Configure RAM user permissions.

  • Complete Getting started with Intelligent Conversations for a console walkthrough, and have a built-in Digital Employee or a custom Digital Employee available. If you need to create a custom Digital Employee, complete Create a Digital Employee.

  • Connect the Workspace to observable data for the target Kubernetes cluster, such as Prometheus metrics and Simple Log Service logs. If you do not have a Kubernetes cluster, use an ECS instance inspection or RDS performance check instead.

  • Understand the Digital Employee permissions. A built-in Digital Employee uses your RAM user permissions for conversations and Missions and does not require an additional RAM role. A custom Digital Employee uses the default AliyunServiceRoleForSTAROps service role, which can access Cloud Monitor and Simple Log Service data. If you use a custom RAM role, grant that role the permissions required to read the target data.

  • Your account has Mission creation permissions. To configure permissions, see Permissions overview.

  • If your environment has no observable data, first complete the basic flow in Directly experience a Mission. For the Mission, Task, and Blueprint concepts, see Core concepts for getting started with Missions.

Step 1: Create a Mission

  1. Log on to the STAROps console.

  2. In the left-side navigation pane, click Digital Employees. Select the target Digital Employee to open its details page, and then click Missions to open the Missions management page.

    Note

    If no Mission exists, the page displays a dialog box by default. Use a quick template or enter a description in the dialog box to create the Mission. If a Mission already exists, continue with the next step.

  3. If a Mission already exists, click + New Mission in the upper-right corner to open the creation dialog box.

  4. At the bottom of the dialog box, optionally select an AI model. Auto is selected by default. For model selection options, see Select a model.

  5. Choose a creation method:

    • To use a quick template, select a template card that matches your objective.

    • To describe the objective in conversation, enter the O&M objective in the dialog box.

Expected result: The Mission creation dialog box displays an input box for your objective.

Step 2: Describe your objective

In the dialog box, describe your O&M objective in natural language. For a Kubernetes cluster inspection, enter the following:

Perform a Kubernetes cluster inspection at 2:00 AM every day. Focus on node resource utilization, Pod anomaly status, and alerts from the past 24 hours, and generate an inspection report.

After you submit the objective, the Digital Employee starts intent alignment. It analyzes the objective, asks clarifying questions, and confirms its understanding. Provide the requested information until you and the Digital Employee agree on the objective. The more specific the objective is, the more accurate the generated Blueprint. Include the following elements when you describe an objective:

Element

Description

Example

What to do

Task type.

Scheduled inspection.

Scope

Target resources.

Kubernetes cluster xxx.

Frequency

Trigger rule.

Every day at 2:00 AM.

Output format

Artifact requirements.

Inspection report delivered at 10:00 AM on business days.

Constraints

Special restrictions.

Defer on weekends and public holidays.

Focus areas

Key dimensions to monitor.

Root cause analysis for critical issues, before-and-after comparison.

You can also use either of the following objectives:

Resource utilization report

Generate a resource utilization report for the previous week at 9:00 AM every Monday. Include the Top 10 hosts by CPU, memory, and disk utilization, and list hosts with utilization above 80%.

Alert analysis report

Generate an alert analysis report for the current day at 10:00 PM every day. Include the alert count, alert severity distribution, Top 5 alert types, and root cause analysis for critical alerts.

Expected result: The Digital Employee begins intent alignment and asks for any required details.

Step 3: Confirm the execution Blueprint

After intent alignment is complete, the Digital Employee generates an execution Blueprint that includes the following information:

  • Task list: The specific execution units (Tasks) that the Mission is broken down into. For example, a Task can inspect a Kubernetes cluster at 2:00 AM every day.

  • Schedule: A scheduled trigger (Cron) or a manual trigger. For example, 0 2 * * * runs the Task at 2:00 AM every day.

  • Execution strategy: The data query scope, analysis dimensions, and report format. For example, query node resource utilization from the past 24 hours and generate a Markdown report.

Review the Blueprint and verify all of the following:

  1. The Task list matches the intended inspection work.

  2. The schedule is correct.

  3. The execution strategy satisfies the data scope, analysis, and reporting requirements.

If you need to change the Blueprint, enter the change in the dialog box. For example, enter Change the execution time to 3:00 AM. Review the updated Blueprint again. When the Blueprint is correct, reply Confirm or Start execution in the dialog box.

Expected result: The Mission starts and its status is Active. A scheduled Mission waits for its next trigger; this status does not mean that a report is generated immediately.

Step 4: View the inspection report

The Digital Employee executes the Mission according to the Blueprint. After an execution finishes, view the inspection report:

  1. Go to the Mission details page.

  2. Click the Report tab to view the generated Task Report list.

  3. Click a Task Report to view its details, including the execution summary, key findings, and verification conclusions.

To view the Digital Employee reasoning process and tool call details, switch to the adjacent Execution tab to view the complete output stream.

An execution typically requires 5 to 10 minutes after it begins. This duration does not include the wait for the next scheduled trigger. If no report is generated more than 30 minutes after execution begins, check the Task or Mission status and the connector status.

Learn more

After you complete this quick start, explore the following capabilities:

  • Add requirements: Enter a new requirement in the dialog box, such as Add an Ingress configuration check. The AI updates the Blueprint automatically. Review and confirm the new Blueprint before it takes effect.

  • Disable a Mission: On the Mission details page, turn off the Active toggle to pause Task scheduling.

  • Respond to AI requests: When the AI requires your decision, it sends a notification through the Message Center. Review the details and reply.

  • Explore Missions for additional Mission capabilities, including notification channels.