Updated on 2024-04-03 GMT+08:00

Creating a Scenario

You can manage all scenarios that define the logical relationships between rules. Scenarios are stored in directories.

Prerequisites

You have created a home directory. To create a home directory, log in to the DataArts Studio console, click Access under a specific instance, choose More > DataArts Quality on the Workspaces tab page, choose Metric Monitoring > Business Scenario Management from the left navigation bar on the page displayed, and create a directory. Before creating a scenario for rules, select a directory to store the scenario. For details, see Figure 1.

Figure 1 Directory that stores a scenario
Table 1 Buttons in the navigation bar

No.

Description

1

Create Directory

2

Refresh Directory

3

Right-click All to create, rename, or delete a directory.

Creating a Scenario

  1. On the DataArts Studio console, locate an instance and click Access. On the displayed page, locate a workspace and click DataArts Quality.
    Figure 2 DataArts Quality

  1. Choose Metric Monitoring > Business Scenario Management from the left navigation bar.
  2. Click Create. In the dialog box displayed, set the parameters based on Table 2.
    Table 2 Scenario parameters

    Parameter

    Description

    Basic Configuration

    Scenario Name

    The name of a scenario, which contains 1 to 64 characters and only consists of letters, numbers, and underscores (_).

    Description

    Information to better identify a scenario. It cannot exceed 256 characters.

    Directory

    The directory that stores the scenario. You can select a created directory. Figure 1 shows the directory.

    Business Level

    The options are Warning, Minor, Major, and Critical. The business level determines the template for sending notification messages.

    Rule Group Configuration

    Define Rule Group

    Group of rules. Logical expressions are used between rules.

    Rule A

    You can select a rule from the drop-down list.

    You can also click to add multiple rules.

    Subscription Configuration

    Notification

    Set this to or to enable or disable the notification function.

    Notification Type

    The options are as follows:

    • Trigger alarms
    • Run successfully

    Topic

    Select a message notification topic.

    NOTE:

    Currently, only SMS and email are available for subscribing to topics.

  3. Click Next to go to the page where you can select a scheduling mode. Currently, Schedule once and Schedule periodically are supported. Set parameters for scheduling periodically by referring to Table 3.
    Table 3 Scheduling parameters

    Parameter

    Description

    Effective

    The period during which a scheduling task takes effect.

    Scheduling Cycle

    The frequency at which a scheduling task is executed. Related parameters are:

    • Minute
    • Hour
    • Day
    • Week

    Time Interval

    Interval for two consecutive scheduling tasks.

    Start from

    Start time and end time of the scheduling task