Updated on 2024-08-07 GMT+08:00

Creating a Masking Rule

Scenarios

This topic describes how to create a masking rule.

Procedure

  1. Log in to the management console.
  2. Click Service List in the upper left corner and select Cloud Eye.
  3. In the navigation pane, choose Alarm Management > Alarm Masking.
  4. In the upper right corner of the page, click Create Masking Rule.
  5. On the displayed Create Masking Rule page, configure parameters.
    Figure 1 Create Masking Rule

    Table 1 Parameters for configuring a masking rule

    Parameter

    Description

    Name

    Specifies the masking rule name.

    Masked By

    Specifies by which you will mask alarms. There are three options: Resource, Policy, and Event.

    Cloud product

    This parameter is only available if Resource or Policy is selected for Masked By.

    Specifies the service name to which the masking rule is applied.

    Resource Level

    This parameter is only available if Resource or Policy is selected for Masked By.

    Select either Cloud product or Specific dimension.

    When you select Specific dimension, select a dimension.

    Resource

    Specifies the resource whose alarm notifications need to be masked.
    NOTE:
    • A maximum of 100 resources can be added at a time.
    • If Resource is selected for Masked By, select some resources.
    • If Policy is selected for Masked By, select an alarm rule, policies in it, and then resources. You can select All resources or Specific resources.
    • If Event is selected for Masked By and Specific resources is selected for Monitoring Scope, select resources for which alarms will be masked.

    Metric

    If Resource is selected for Masked By, select some metrics.

    NOTE:
    • A maximum of 50 metrics can be added at a time.
    • If you do not select any metrics, this masking rule will apply to all metrics.

    Select Rule

    If Policy is selected for Masked By, select an alarm rule.

    Select Policies

    If Policy is selected for Masked By, select alarm policies.

    NOTE:
    • You can select one or more alarm policies to mask alarms.
    • If an alarm policy has been configured in an alarm rule in which an alarm will be generated only when all alarm policies are met, the alarm policy cannot be selected.

    Event Source

    This parameter is only available if Event is selected for Masked By.

    Monitoring Scope

    This parameter is only available if Event is selected for Masked By. Monitoring Scope can be All resources or Specific resources based on the event source.

    Dimension

    If Specified resources is selected for Monitoring Scope, you need to select a dimension.

    Select Event

    You need to select an event only if Event is selected for Masked By. If no event is selected, this making rule will apply to all events.

    Alarm Masking Duration

    Specifies the time or duration when the masking rule takes effect.
    • Date and time: The masking rule takes effect within a specified time range.
    • Time: The masking rule takes effect in a fixed time range every day. You can also configure the effective date range when the masking rule takes effect. For example, if the effective date is 2022-12-01 to 2022-12-31 and the effective time is 08:00 to 20:00, the masking rule takes effect during this time window every day from December 1, 2022 to December 31, 2022.
    • Permanent: The masking rule will always take effect.
  6. Click Create.

If Resource is selected for Masked By, all alarm notifications of the resource in the service will be masked.