Updated on 2023-09-27 GMT+08:00

Creating Time Filters

Atomic metrics are standard definitions for computing logic. Time filters are standard definitions for conditional limits. To ensure that all statistical metrics are unified, standard, and unambiguous, time filters must be unique within a business domain and each filter can belong to a single source logic table. The computing logic is defined based on the fields of the source logic table model. A time filter may come from multiple logic tables that belong to different data domains. Therefore, a time filter may belong to multiple data domains as well.

Creating and Publishing a Time Filter

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

  2. (Optional) On the DataArts Architecture console, choose Configuration Center in the left navigation pane, click the Functions tab, and determine whether to enable Time-Limited Generation Using Dynamic Expressions (disabled by default).
    Figure 2 Functions
  3. On the DataArts Architecture page, choose Metrics > Technical Metrics in the left navigation pane. On the displayed page, click the Time Filters tab.
  4. On the Time Filters tab page, click Create.
  5. On the Create Time Filter page, set the parameters described in Table 1 and click Publish.
    Figure 3 Creating a time filter
    Table 1 Parameters for creating a time filter

    Parameter

    Description

    *Filter Name

    Time filter names must start with letters. Only letters, numbers, and underscores (_) are allowed.

    *Filter English name

    Only letters, digits, and underscores (_) are allowed.

    *Time Settings

    You can select Year, Month, Day, Hour, or Minute, and then select Quick option or Custom to set the time condition.

    If you select Custom, + and - form a time range, in which + indicates a later time and - indicates an earlier time. For example, if you want to set a time range from the past year to the next three years, set this parameter to -1 to +3 or +3 to -1.

    Description

    A description of the time filter to create. Up to 490 characters are supported.

  6. Then, click Publish to submit the application.
  7. Wait for the reviewer to approve the application.

    After the application is approved, the time filter is created.

Managing a Time Filter

  1. On the DataArts Architecture page, choose Metrics > Technical Metrics in the left navigation pane. On the displayed page, click the Time Filters tab.
    Figure 4 Time Filters tab page
  2. Manage your time filters as required. Refer to the following table for details.

    Operation

    Helpful Link

    Create

    Creating and Publishing a Time Filter

    Edit

    3

    Publish

    4

    View Publish History

    5

    Suspend

    6

    Delete

    7

  3. Edit a time filter.
    1. Click Edit to the right of the target time filter.
    2. On the page displayed, edit the time filter as required.
    3. Click Save to save the time filter information, or click Publish to publish the edited time filter.
  4. Publish a time filter.
    1. Click Publish to the right of the target time filter.
    2. In the Submit for Publication dialog box displayed, select a reviewer from the drop-down list box.
    3. Click OK.
  5. View the publish history.
    1. Select the target time filter in the list and choose More > View History.
    2. On the page displayed, you can view the publish history and version comparison information of the time filter.
  6. Suspend a time filter.
    1. Select the target time filter in the list and choose More > Suspend.
    2. In the Submit for Suspension dialog box displayed, select a reviewer from the drop-down list box.
    3. Click OK.

      Time filters cannot be suspended or deleted if they are referenced by any derivative metrics.

  7. Delete a time filter.
    1. Select the target time filter and click Delete above the list.
    2. In the dialog box displayed, confirm the information and click Yes.